This paper presents a non-contact method for the detection of changes in sow vulva size in a group pen. The traditional approach to estrus detection is manually pressing down on the back of the sow to elicit standing responses; however, this method causes undue distress for sows not in estrus. When a sow is in estrus, the vulva is red and swollen due to the presence of endocrine. Monitoring changes in vulva size to detect estrus with as little impact on the sow as possible is the focus of this study. This is achieved using a single camera combined with a deep learning framework. Our approach comprises two steps: vulva detection and vulva size conversion. Images of sows of Yorkshire, Landrace, and Duroc breeds were collected in group housing, and the vulva was detected through artificial markers and the network architecture of YOLO v4. Based on the internal and external parameters of the camera, the detected size was converted into millimeters and the results of manual measurement and automatic calculation combined to calculate the size of the vulva. Analysis of the calculated size compared with manual measurement indicates that the object recognition rate of the system exceeds 97.06%, with a size error of only +1.70~-4.47mm and high calculation efficiency (>2.8 frames per second). Directions for future research include the automatic detection of pig width.