A real-time measurement method of
pupil diameters based on the
binocular stereo vision is provided. The method comprises: using Zhang Zhengyou's
dual target method for camera calibration to obtain a
rotation matrix, a translation matrix, a parameter matrix in the left industrial camera, and a parameter matrix in the right industrial camera; respectively
processing images captured by the left industrial camera and the right industrial camera to obtain true ellipses corresponding to the
pupil; drawing a straight line across the center of the true
ellipse of the
pupil obtained by the left industrial camera, wherein the straight line equation is intersected by the true
ellipse of the left industrial camera to obtain a first intersection point and a second intersection point; according to the principle of polar line constraint and order consistency, by using the first intersection point and the second intersection point, respectively solving a first matching point and a second matching point corresponding to the two intersection points on the true
ellipse obtained by the right industrial camera; and obtaining preliminary values of a plurality of pupil diameters corresponding to a plurality of straight lines with different slopes, and solving an average value to obtain a final result. The method provided by the present invention has high
measurement precision, does not require the worker to fix the working distance, and has great application value.