This study aimed to develop a method using computer vision techniques to accurately detect and delineate the proximal femur in radiographs of Legg–Calvé–Perthes disease (LCPD) patients. Currently, evaluating femoral head deformity, a crucial predictor of LCPD outcomes, relies on unreliable categorical and qualitative classifications. To address this limitation, we employed the pretrained object detection model YOLOv5 to detect the proximal femur on over 2000 radiographs, including images of shoulders and chests, to enhance robustness and generalizability. Subsequently, we utilized the U‐Net convolutional neural network architecture for image segmentation of the proximal femur in more than 800 manually annotated images of stage IV LCPD. The results demonstrate outstanding performance, with the object detection model achieving high accuracy (mean average precision of 0.99) and the segmentation model attaining an accuracy score of 91%, dice coefficient of 0.75, and binary IoU score of 0.85 on the held‐out test set. The proposed fully automatic proximal femur detection and segmentation system offers a promising approach to accurately detect and delineate the proximal femoral bone contour in radiographic images, which is essential for further image analysis in LCPD patients. Clinical significance: This study highlights the potential of computer vision techniques for enhancing the reliability of Legg–Calvé–Perthes disease staging and outcome prediction.