An ophthalmic examination auxiliary device based on face and eye feature recognition

Through auxiliary equipment based on facial eye feature recognition, infrared cameras and image processing systems are used to identify pupil positions and simulate darkroom conditions, solving the problem of poor measurement results of eye examination equipment in ordinary environments and improving the accuracy and speed of examinations. Security is ensured.

CN116687340BActive Publication Date: 2024-10-29HUNAN HUOYAN MEDICAL TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202310756639.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-26
Publication Date
2024-10-29
Estimated Expiration
2043-06-26

AI Technical Summary

Technical Problem

When using eye examination equipment in ordinary environments, the measurement results are poor or the data accuracy is low, especially when a darkroom cannot be set up, especially for young children and complex environments where there are personal and equipment safety hazards.

Method used

Use auxiliary equipment based on facial eye feature recognition, including infrared cameras and image processing systems, to identify pupil positions through grayscale and binary processing, ellipse fitting and other algorithms, adjust the subject's line of sight, and use speakers and displays to The screen provides verbal and graphical instructions to simulate darkroom conditions and improve measurement accuracy.

Benefits of technology

It significantly improves the accuracy and speed of eye examinations, reduces the operator's work intensity, optimizes the examination process, and ensures the stability and safety of measurements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116687340B_ABST
    Figure CN116687340B_ABST
Patent Text Reader

Abstract

The invention discloses an ophthalmic examination auxiliary equipment based on face and eye feature recognition, comprising an examination auxiliary device, on which an infrared camera and an image processing system are arranged, wherein the infrared camera is used to capture a frontal image of an examinee; the image processing system performs grayscale and binarization processing on a portion of the face image to obtain a binarized image; after recognizing that the eye feature appears in a camera window of the auxiliary device, the pupil position in the eye is found; the major and minor axes, the center point, and the horizontal angle parameters of the pupil are obtained by calculating the fitted ellipse, the positions and directions of the two pupils are obtained, and it is judged whether the distances between the two pupils and the margins of the camera screen are symmetrical, and whether the connecting line of the two pupils is kept horizontal with the camera screen. The invention significantly improves the speed and accuracy of ophthalmic examination, reduces the workload of operators, improves measurement accuracy, and optimizes the ophthalmic examination process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of ophthalmic examination, and in particular to an ophthalmic examination auxiliary device based on human face and eye feature recognition. Background Art

[0002] The trend of myopia at younger ages and with higher severity is very prominent, which has attracted great attention from education and health departments. As an important technical means for preventing myopia, various instruments required for ophthalmic examination have been popularized in optical shops, optometry centers, and hospital clinics. These instruments include fundus cameras, optical biometers, ophthalmometers, OCT and other ophthalmic examination equipment.

[0003] The reason why humans can see images is mainly because the pupil of the human eye is transparent. The light entering the pupil stimulates the photoreceptor cells in the retina to form an image. The working principle of most ophthalmic examination equipment relies on this feature to measure and examine the eyeball data. The normal human pupil size is about 1.5mm~8mm. The pupil shrinks in bright light and dilates in darkness. Therefore, most medical institutions will arrange for examinations in special dark rooms when using ophthalmic examination equipment. In the dark room, try not to use high-brightness lights or use lower-brightness peripheral lighting to ensure that the examinee's pupil is as dilated as possible during the examination, and to ensure that more light can pass through the examination equipment during the examination.

[0004] Although darkrooms are of great help to ophthalmic examination equipment in obtaining more accurate data, darkroom examinations have high requirements for the examination environment and require special rooms and lighting designs. At the same time, due to the lack of lighting in darkrooms, users cannot easily observe the condition of the examinee in the darkroom. In cases where the examinee's cooperation is poor, such as young children, it is difficult to use a darkroom for examination. Finally, when there are many examination equipment in the same darkroom and the environment is complex, due to the lack of lighting, the examinee is prone to accidents in the darkroom, affecting personal or equipment safety. For the above reasons, many institutions currently give up using darkrooms when using ophthalmic examination equipment, and there are problems with poor measurement results or slightly lower data accuracy when conducting examinations in ordinary environments. Summary of the invention

[0005] The purpose of the present invention is to solve the problem that when using ophthalmic examination equipment, the darkroom is abandoned and the examination is performed in an ordinary environment, resulting in poor measurement results or slightly low data accuracy, and to propose an ophthalmic examination auxiliary equipment based on facial eye feature recognition.

[0006] The purpose of the present invention can be achieved through the following technical solutions:

[0007] An ophthalmological examination auxiliary device based on face and eye feature recognition includes an examination auxiliary device, the examination auxiliary device is provided with an infrared camera and an image processing system, and the infrared camera is communicatively connected with the image processing system;

[0008] An infrared camera for capturing a frontal image of the subject;

[0009] The specific working process of the image processing system is as follows:

[0010] Step 1: After grayscale and binarization processing of the image of part of the face, a binary image is obtained;

[0011] Step 2: When the recognized eye features appear in the camera window of the auxiliary device, the pupil position in the eye is found by recognizing the eye structure and calculating the line of sight;

[0012] Step 3: Use the fitted ellipse to calculate the major and minor axes, center point, and horizontal angle parameters of the pupil to obtain the position and direction of the two pupils. Determine whether the distances between the two pupils and the edge of the camera screen are symmetrical, and whether the connecting line of the two pupils is level with the camera screen. If it exceeds the allowable error, adjust the subject's line of sight.

[0013] As a further solution of the present invention: in step 1, based on the position of pixels in the image and the symmetrically distributed abstract shape features, it is determined whether the image currently captured by the infrared camera of the auxiliary device meets the characteristics of the human eye. If it meets the characteristics of the human eye, the next step of eye structure recognition and line of sight calculation is entered. If it does not meet the characteristics of the human eye, the subject is prompted to put the head in the appropriate position through the display screen and voice.

[0014] As a further solution of the present invention: in step 1, the image is sliced ​​and segmented, and the segmentation fineness ranges from 50*50 to 25*25 to obtain a denoised image of the eye position.

[0015] As a further solution of the present invention: in step 2, after obtaining the eye image, the pupil image edge is identified by using the Soble edge detection algorithm, and the Soble algorithm convolution algorithm formula is as follows: ;

[0016] A represents the original image, Gx and Gy represent the horizontal and vertical grayscale values ​​of each pixel in the image respectively, and the final grayscale value of the point is: .

[0017] As a further solution of the present invention: in step 2, after obtaining the image edge through the Soble algorithm, the image is segmented according to the line edge, the black pixels in the infrared grayscale image are taken out, and the pixels of the approximate ellipse part are selected according to the calculation to fit into an ellipse, and the least squares method is used to fit the ellipse. The fitted ellipse is the pupil of a normal human eye.

[0018] As a further solution of the present invention: the ellipse fitting process is as follows:

[0019] The equation of the fitted ellipse is set as: ;

[0020] The accuracy of the fit is determined by the sum of squares of the measurement errors. The smaller the error, the higher the accuracy. The error function is: ;

[0021] In order to obtain the minimum error, the partial derivatives of each coefficient are set to 0, the extreme points are obtained by calculation, and then the six values ​​of a, b, c, d, e, and f are solved. The formula is as follows:

[0022] ;

[0023] Use the formula to get the coefficient values ​​of a, b, c, d, e, and f, and then substitute them into the following parameter formula to find the coordinates of the center point of the ellipse, the length of the minor axis, the length of the major axis, and the axis angle. At the same time, the ellipse can be fitted. The parameter formula is as follows:

[0024] ;

[0025] Among them, a, b, c, d, e, f represent position parameters, x i and i Indicates image measurement points.

[0026] As a further solution of the present invention: a light blocking structure is arranged at the position of the examinee's head in the detection area of ​​the inspection auxiliary device to form a darkroom effect.

[0027] As a further solution of the present invention: the ophthalmic examination auxiliary equipment is also provided with a speaker and a display screen, and the speaker and the display screen are provided to respectively give language and graphic instructions to adjust the examination position of the examinee.

[0028] Beneficial effects of the present invention:

[0029] The ophthalmic examination auxiliary device of the present invention simulates darkroom conditions in complex environments or environments where it is not suitable to set up a darkroom, helping ophthalmic examination equipment to improve measurement accuracy and stability; and can significantly improve the speed and accuracy of ophthalmic examinations, reduce the workload of operators, improve measurement accuracy, and optimize the ophthalmic examination process. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The present invention will be further described below in conjunction with the accompanying drawings.

[0031] Figure 1 It is a schematic diagram of the structure of the inspection auxiliary device of the present invention in an ophthalmic inspection instrument;

[0032] Figure 2 It is a schematic diagram of the internal structure of the inspection auxiliary device of the present invention.

[0033] In the figure: 1. Ophthalmic examination instrument; 2. Infrared camera; 3. Speaker; 4. Display screen; 5. Inspection auxiliary device; 6. Light blocking structure. DETAILED DESCRIPTION

[0034] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0035] Example 1

[0036] See also Figure 1-2 As shown, the present invention is an ophthalmic examination auxiliary device based on face and eye feature recognition, including an ophthalmic examination instrument 1;

[0037] The ophthalmic examination instrument 1 is provided with a U-shaped examination auxiliary device 5, in which an infrared camera 2 and an image processing system are provided, and the infrared camera 2 is communicatively connected with the image processing system;

[0038] Infrared camera 2 is used to take a frontal image of the subject; the advantage of using infrared camera 2 is that it can prevent visible light from affecting the measurement effect of ophthalmic instruments, and at the same time, it can capture the required face image through infrared camera 2 to improve the recognition effect; considering the position of infrared camera 2 and equipment, the position of the face, due to the position and distance limitation of auxiliary equipment, the image cannot capture the full face image of the person, but can only capture a partial face image;

[0039] The image processing system processes the infrared image collected by the infrared camera 2, identifies the eyes of the subject, and tracks the shape of the iris to realize tracking and identification of the eye movement state;

[0040] The inspection auxiliary device 5 is provided with a light shield in the head placement area. By providing the light shield, the external light environment when the ophthalmic inspection instrument 1 is used for inspection can be controlled to simulate the darkroom environment, thereby minimizing the interference of external light on the ophthalmic inspection as much as possible, allowing the examinee's pupil to be enlarged as much as possible, thereby increasing the accuracy of the ophthalmic inspection equipment to collect and measure data;

[0041] The examination auxiliary device 5 is also provided with a speaker 3 and a display screen 4. The speaker 3 and the display screen 4 are respectively provided to give language and graphic instructions to adjust the examination position of the examinee. The display screen 4 is for patients with poor hearing. The display screen 4 displays the direction to be adjusted for the examinee to refer to. The display screen 4 uses a low-brightness display screen to reduce the interference of the light of the display screen 4 on the patient.

[0042] In addition, the auxiliary examination device also has Bluetooth and USB data interfaces, which can communicate with the ophthalmic equipment via Bluetooth or USB data cables. When the auxiliary examination device finds the most suitable measurement conditions, it controls the ophthalmic equipment to measure via Bluetooth or USB data cables, thus realizing automatic measurement and improving the measurement efficiency and success rate of the ophthalmic examination equipment.

[0043] The auxiliary examination equipment is also equipped with a remote control. When encountering some special patients, such as blind patients, severe cataract patients, etc., the eye structure of these patients is different from that of most people, which may cause the automatic recognition of eye tracking to fail or make errors, and the inspection guidance cannot be automatically completed. At this time, the operator can use the remote control to control the auxiliary examination equipment to play different prompt signals (voice and images) and manually track the eye position through the remote control to help the ophthalmic examination equipment measure the success rate.

[0044] Example 2

[0045] Based on the above embodiment 1, since the captured image is a partial image of the face, without features such as the mouth, ears, and face, the commonly used face recognition algorithm cannot work; therefore, the image processing system includes the following steps:

[0046] Step 1: After grayscale and binarization processing of the image of part of the human face, a binary image is obtained. According to the abstract shape features such as the position and symmetric distribution of pixels in the image, it is judged whether the image currently photographed by the infrared camera 2 of the auxiliary device meets the characteristics of the human eye. If it meets the characteristics of the human eye, the next step of eye structure recognition and line of sight calculation is entered. If it does not meet the characteristics of the human eye, the subject is prompted to put the head in a suitable position through the display screen 4 and voice;

[0047] Because of the difference in the structure of the human eye and the color of the facial skin, there will be relatively large numerical feature differences after the image is binarized; then the image is sliced ​​and segmented, and the segmentation fineness is adjusted from 50*50-25*25 according to the situation, so as to obtain the denoised image of the eye position and the denoised image;

[0048] Step 2: When the identified eye features appear in the camera window of the auxiliary device, further search for the pupil position in the eye;

[0049] Because the previous binary denoised image has been able to determine the approximate pixel position of the eyes in the image, and the eye image can be cut out separately;

[0050] The pupil position finding process is as follows:

[0051] Step 21: After obtaining the eye image, the pupil image edge is identified by the Soble edge detection algorithm. The Soble algorithm convolution algorithm formula is as follows:

[0052] ;

[0053] A represents the original image, Gx and Gy represent the horizontal and vertical grayscale values ​​of each pixel in the image respectively, and the final grayscale value of the point is: ;

[0054] Step 22: The focal length and screen area of ​​the device camera are known. After obtaining the image edge through the Soble algorithm, the image is segmented according to the line edge, the black pixels in the infrared grayscale image are taken out, and the pixels of the approximate ellipse part are selected according to the calculation to fit into an ellipse. The least squares method is used to fit the ellipse. The fitted ellipse is the pupil of a normal human eye.

[0055] The ellipse fitting process is as follows:

[0056] The equation of the fitted ellipse is set as: ;

[0057] The accuracy of the fit is determined by the sum of squares of the measurement errors. The smaller the error, the higher the accuracy. The error function is: ;

[0058] In order to obtain the minimum error, the partial derivatives of each coefficient are set to 0, the extreme points are obtained by calculation, and then the six values ​​of a, b, c, d, e, and f are solved. The formula is as follows:

[0059] ;

[0060] Use the formula to get the coefficient values ​​of a, b, c, d, e, and f, and then substitute them into the following parameter formula to find the coordinates of the center point of the ellipse, the length of the minor axis, the length of the major axis, and the axis angle. At the same time, the ellipse can be fitted. The parameter formula is as follows:

[0061] ;

[0062] Among them, a, b, c, d, e, f represent position parameters, x i and i represents the image measurement point;

[0063] Step 3: According to human physiological characteristics, it is believed that the center point of the pupil ellipse plane is roughly the line of sight. Because of the relationship between the pupil and the camera angle, the lengths of the major and minor axes of the pupil ellipse plane and the angles between the major and minor axes and the horizontal plane will change differently. The closer you look at the camera, the closer the major and minor axes are, and the more parallel they are to the horizontal plane.

[0064] The position and direction of the two pupils are obtained by calculating the major and minor axes, center point and horizontal angle parameters of the pupils through the fitted ellipse. Then, the symmetry of the face is used to determine whether the distances between the two pupils and the edge of the camera screen are symmetrical, and whether the connecting line of the two pupils is level with the camera screen. If the error exceeds the allowable error, which ranges from +60° to -60°, the subject is prompted to turn his head to the left or right through voice. If the subject's pupils do not look directly at the camera after the head is adjusted, the subject is guided to move his sight in the correct direction through the display device and voice at the same time.

[0065] Preferably, because the human eye recognition of the equipment is mainly based on image processing and shape feature calculation, the amount of calculation is not large, and the auxiliary equipment has high requirements for its own volume size and power consumption reduction, it is not suitable for general computing devices such as X86 or ARM to process. Therefore, the design uses FPGA (programmable gate array) chip as the main image processing and shape feature calculation module, and inputs the original image of the infrared camera into the FPGA computing chip. The FPGA chip processes and calculates the position of both eyes and the line of sight parameters. After the calculation is completed, the judgment result is transmitted to the display and voice module. The display module and the voice module output the corresponding graphics and voice according to the received signal. This processing uses the parallel processing characteristics of FPGA to meet the computing needs of the application scenario while greatly reducing the product size and power consumption.

[0066] Example 3

[0067] Based on the above-mentioned embodiment 2, the present invention is a working method of an ophthalmic examination auxiliary device based on face and eye feature recognition, comprising the following steps:

[0068] Step 1: First, the examinee places his head on the designated area of ​​the instrument according to the examination requirements. The auxiliary equipment's overall sensing device is triggered after sensing that the external light is blocked, and it is considered that an object has entered the detection area. At this time, the infrared camera 2 and a set of infrared lighting lights with a wavelength of 940nm that are invisible to the naked eye will be turned on. When the sensing device is not triggered, the camera, infrared lighting and recognition calculation will not be started;

[0069] Step 2: When the identified eye features appear in the camera window of the auxiliary device, further search for the pupil position in the eye;

[0070] Step 3: The position and direction of the two pupils are obtained by fitting the ellipse and calculating the major and minor axes, center point, and horizontal angle parameters of the pupils. Then, the symmetry of the face is used to determine whether the distances between the two pupils and the edge of the camera screen are symmetrical, and whether the connecting line of the two pupils is level with the camera screen. If the allowable error is exceeded, the subject is prompted to turn his head to the left or right through voice. After the subject's head is straightened, if the pupils of both eyes are not facing the camera, the display device and voice are used to guide the subject to move his eyes in the correct direction.

[0071] The working principle of the present invention is as follows: an infrared camera 2 and an image processing chip are integrated in the device. When the examinee places his head on the ophthalmic examination instrument 1, the sensing device on the upper part of the inspection auxiliary device 5 senses that the head is placed in a suitable position, and then the camera device is started. Because the dark room is simulated, the ordinary white light camera does not work or the image is poor, so the infrared camera 2 is used to take a frontal image of the examinee, and then the infrared image collected by the infrared camera 2 is processed by the image processing chip to identify the examinee's eyes and track the shape of the iris to achieve tracking and identification of the eye movement state.

[0072] The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the patent coverage of the present invention.

Claims

1. An ophthalmic examination auxiliary device based on face and eye feature recognition, characterized in that: The inspection auxiliary device comprises an infrared camera and an image processing system, and the infrared camera is communicatively connected with the image processing system; a light-blocking structure is arranged at the position of the head of the examinee in the detection area of ​​the inspection auxiliary device to form a darkroom effect; An infrared camera for capturing a frontal image of the subject; The specific working process of the image processing system is as follows: Step 1: After grayscale and binarization processing of the image of part of the face, a binary image is obtained; Step 2: After the eye features are identified and appear in the camera window of the auxiliary device, the pupil position in the eye is found by identifying the eye structure and calculating the line of sight; Step 3: By fitting the ellipse and calculating the major and minor axes, center point, and horizontal angle parameters of the pupil, the position and direction of the two pupils are obtained, and it is determined whether the distance between the two pupils and the edge of the camera screen is symmetrical, and whether the connecting line of the two pupils is level with the camera screen. If it exceeds the allowable error, adjust the subject's line of sight; In step 1, based on the position of pixels in the image and the symmetrically distributed abstract shape features, it is determined whether the image currently captured by the infrared camera of the auxiliary device meets the characteristics of the human eye. If it meets the characteristics of the human eye, the next step of eye structure recognition and line of sight calculation is entered. If it does not meet the characteristics of the human eye, the subject is prompted to put his head in a suitable position through the display screen and voice. In step 1, the image is sliced ​​and segmented with a segmentation fineness of 50*50-25*25 to obtain a denoised image of the eye position.

2. The ophthalmic examination auxiliary device based on face and eye feature recognition according to claim 1, characterized in that: In step 2, after obtaining the eye image, the pupil image edge is identified by the Soble edge detection algorithm. The Soble algorithm convolution algorithm formula is as follows: A represents the original image, Gx and Gy represent the horizontal and vertical grayscale values ​​of each pixel in the image respectively, and the final grayscale value of the point is:

3. The ophthalmic examination auxiliary device based on face and eye feature recognition according to claim 2, characterized in that: In step 2, after obtaining the image edge through the Soble algorithm, the image is segmented according to the line edge, the black pixels in the infrared grayscale image are taken out, and the pixels of the approximate ellipse part are selected according to the calculation to fit into an ellipse, and the least squares method is used to fit the ellipse. The fitted ellipse is the pupil of the normal human eye.

4. The ophthalmic examination auxiliary device based on face and eye feature recognition according to claim 3, characterized in that: The ellipse fitting process is as follows: The equation of the fitted ellipse is set as: F(x,y)=ax 2 +bxy+cy 2 +dx+ey+f=0; The accuracy of the fit is determined by the sum of squares of the measurement errors. The smaller the error, the higher the accuracy. The error function is: In order to obtain the minimum error, the partial derivatives of each coefficient are set to 0, the extreme points are obtained by calculation, and then the six values ​​of a, b, c, d, e, and f are solved. The formula is as follows: Use the formula to get the coefficient values ​​of a, b, c, d, e, and f, and then substitute them into the following parameter formula to find the coordinates of the center point of the ellipse, the length of the minor axis, the length of the major axis, and the axis angle. At the same time, the ellipse can be fitted. The parameter formula is as follows: Among them, a, b, c, d, e, f represent position parameters, x i and i Indicates image measurement points.

5. The ophthalmic examination auxiliary device based on face and eye feature recognition according to claim 1, characterized in that: The examination auxiliary device is also provided with a speaker and a display screen, and the examination position of the examinee is adjusted by providing language and graphic instructions respectively on the speaker and the display screen.

Citation Information

Patent Citations

  • Three-axis positioning device and method for ophthalmic examination instrument

    CN103082990A

  • Non-contact eye movement feature extraction device and method for infants

    CN110472546A

  • Binocular multispectral pupil light reflection quantitative measuring instrument

    CN110680275A

  • Method and device for adjusting eye display position, terminal and storage medium

    CN112839162A

  • Sight tracking method based on near-to-eye camera

    CN113342161A