Abstract:AIM: To quantitatively measure ocular morphological parameters of guinea pig with Python technology. METHODS: Thirty-six eyeballs of eighteen 3-week-old guinea pigs were measured with keratometer and photographed to obtain the horizontal, coronal, and sagittal planes respectively. The corresponding photo pixels-actual length ratio was acquired by a proportional scale. The edge coordinates were identified artificially by ginput function. Circle and conic curve fitting were applied to fit the contour of the eyeball in the sagittal, coronal and horizontal view. The curvature, curvature radius, eccentricity, tilt angle, corneal diameter, and binocular separation angle were calculated according to the geometric principles. Next, the eyeballs were removed, canny edge detection was applied to identify the contour of eyeball in vitro. The results were compared between in vivo and in vitro. RESULTS: Regarding the corneal curvature and curvature radius on the horizontal and sagittal planes, no significant differences were observed among results in vivo, in vitro, and the keratometer. The horizontal and vertical binocular separation angles were 130.6°±6.39° and 129.8°±9.58° respectively. For the corneal curvature radius and eccentricity in vivo, significant differences were observed between horizontal and vertical planes. CONCLUSION: The Graphical interface window of Python makes up the deficiency of edge detection, which requires too much definition in Matlab. There are significant differences between guinea pig and human beings, such as exotropic eye position, oblique oval eyeball, and obvious discrepancy of binoculus. This study helps evaluate objectively the ocular morphological parameters of small experimental animals in emmetropization research.