A method and device for recognizing human eye state based on eye center point

By using grayscale and chromaticity models to screen eye pixels in the YCbCr color space, and combining the maximum inter-class variance method and connected domain numbering, the accuracy and robustness problems of eye state recognition in the existing technology are solved, and the Accurate judgment of eye opening and closing status.

CN112989874BActive Publication Date: 2024-09-10ARKMICRO TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201911278442.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-13
Publication Date
2024-09-10
Estimated Expiration
2039-12-13

AI Technical Summary

Technical Problem

Existing human eye state recognition methods have low detection accuracy for eyes whose shapes are not strictly elliptical or parabolic, and have poor robustness and practicability under lighting and occlusion conditions. Especially when the eye opening and closing are small, the error is large and it is difficult to converge to the actual state. edge.

Method used

Determine the target rectangular area based on the center point of the eye, use the grayscale and chromaticity models of the YCbCr color space to screen the eye pixels, combine the maximum inter-class variance method to calculate the optimal threshold, determine the coordinates of the eye corners and eyelids through the connected domain number, and determine the eye opening angle To determine the closed eye state and reduce the influence of contour points.

Benefits of technology

It improves the robustness and practicality of eye state recognition, can accurately distinguish eye pixels and skin pixels in the closed or slightly open state, reduces the impact on illumination and occlusion, and enhances the accuracy of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112989874B
    Figure CN112989874B
Patent Text Reader

Abstract

The present invention provides a human eye state recognition method based on the center point of the eye, the method comprising: determining the target rectangular area of ​​two eyes according to the center point of the eye; mapping the image in the target rectangular area to the YCbCr color space, and establishing an eye grayscale model and a chromaticity model; when the grayscale value of the center point of the eye in the grayscale model is greater than a preset threshold, the binary image of the eye pixel point is screened out through the chromaticity model; when the grayscale value of the center point of the pupil in the grayscale model is not greater than the preset threshold, the maximum inter-class variance method is used to calculate the optimal threshold, and the binary image of the eye pixel point is screened out from the target rectangular area image through the optimal threshold; the binary image obtained after screening is connected to the domain number to determine the left and right eye corner coordinates and the upper and lower eyelid point coordinates of the eye part; the left and right eye opening angles are determined according to the left and right eye corner coordinates and the upper and lower eyelid coordinates; when the eyes of the current frame meet the preset conditions, it is determined to be in a closed eye state. The method can be applied to fields such as automobile fatigue driving, and has high robustness and practicality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image vision processing technology, and in particular to a method and device for recognizing human eye state based on eye center points. Background Art

[0002] Eye state recognition is a widely used technology that can be used in human-computer interaction, driver fatigue driving, facial expression recognition, etc. At present, for the judgment of eye state, an eye geometric model can generally be constructed, such as determining the eye contour based on the template method, deformable template method, transformation projection and other methods. This type of method is based on the prior knowledge of the human eye and uses an ellipse or parabola as a model to describe the eye. However, this type of method has a low accuracy rate for eye detection that is not a strict ellipse or parabola. At the same time, when the eyes are blocked by light or hair, it cannot be guaranteed that they conform to this type of geometric model. For eye state recognition, the eye contour can also be detected by means of the Snake model and other methods. This type of method determines the initial active contour based on the connection between several control points, and then the nodes on the contour are pushed in the direction of minimum energy under the joint action of internal and external forces until they converge to the edge of the object. However, this method has a large error when the eye opening degree is small. At the same time, when the eyes are completely closed, it is difficult for the curve to converge to the actual edge. Existing methods for human eye state recognition have problems of poor robustness and practicality. Summary of the invention

[0003] In view of this, an embodiment of the present invention provides a method for recognizing a human eye state based on an eye center point, comprising:

[0004] Determine the target rectangular areas of the two eyes according to the center points of the eyes;

[0005] The image in the target rectangular area is mapped to the YCbCr color space, and the eye grayscale model and chromaticity model are established; wherein the chromaticity model EyeMapC(x, y) = (Cb(x, y) - Cr(x, y)) 2 , grayscale model Among them, g(x,y) represents a hemispherical structural unit;

[0006] Determine whether the grayscale value of the center point of the eye in the grayscale model is greater than a preset threshold. When the grayscale value of the center point of the eye in the grayscale model is greater than the preset threshold, filter out the binary image of the eye pixel point through the chromaticity model; when the grayscale value of the center point of the pupil in the grayscale model is not greater than the preset threshold, use the maximum inter-class variance method to calculate the optimal threshold, and filter out the binary image of the eye pixel point from the target rectangular area image through the optimal threshold;

[0007] The connected domains of the binary image obtained after screening are numbered, and the area belonging to the same connected domain as the center point of the eye is selected as the eye part, and the left and right edge points of the eye part are determined to be the left and right eye corner coordinates, and the highest and lowest edge points within the preset range of the left and right eye center coordinates are the upper and lower eyelid point coordinates;

[0008] Determine the left and right eye angles according to the left and right eye corner coordinates and the upper and lower eyelid coordinates; when the eye angle α of the current frame i ≤0.2(θ max -θ min ), it is judged as the closed eye state; where θ max and θ min It is the maximum and minimum values ​​of the eye angle collected in a certain period of time in the previous period.

[0009] Furthermore, when the distance between the two eye center points is d, the width and height of the target rectangular area are selected as 0.8d and 0.4d respectively.

[0010] Furthermore, it also includes: obtaining the coordinates of facial feature points, and assisting in determining the width and height of the target rectangular area according to the coordinates of the facial feature points; the coordinates of the two eye centers are [left.x, left.y], [right.x, right.y]; when the facial feature is the tip of the nose, its coordinates are [nose.x, nose.y], then the width of the target rectangular area high

[0011] Furthermore, the maximum inter-class variance method is used to calculate the optimal threshold, which specifically includes:

[0012] The image in the target rectangular area is divided into the target eye and the background skin;

[0013] The segmentation threshold of the target eye and background skin is recorded as T, the ratio of the target pixel number to the total pixel number is w0, the average grayscale mean is u0, the ratio of the background pixel number to the total pixel number is w1, and the average grayscale mean is u1;

[0014] Let g = w0w1(u0-u1) 2 , when g reaches its maximum value, the corresponding T value is the optimal threshold for segmentation.

[0015] Furthermore, the preset range is 2-5 pixel units.

[0016] The embodiment of the present invention further provides a human eye state recognition device based on the center point of the eye, comprising:

[0017] A target area determination module, used to determine the target rectangular areas of two eyes according to the center points of the eyes;

[0018] The eye diagram model building module is used to map the image in the target rectangular area to the YCbCr color space and build the eye grayscale model and chromaticity model; wherein the chromaticity model EyeMapC(x, y) = (Cb(x, y) - Cr(x, y)) 2 , grayscale model Among them, g(x,y) represents a hemispherical structural unit;

[0019] A judgment and screening module is used to judge whether the grayscale value of the center point of the eye in the grayscale model is greater than a preset threshold. When the grayscale value of the center point of the eye in the grayscale model is greater than the preset threshold, a binary image of the eye pixel is screened out through a chromaticity model; when the grayscale value of the center point of the pupil in the grayscale model is not greater than the preset threshold, an optimal threshold is calculated using the maximum inter-class variance method, and a binary image of the eye pixel is screened out from the target rectangular area image through the optimal threshold;

[0020] The eye corner and eyelid determination module is used to number the connected domains of the binary image obtained after screening, select the area belonging to the same connected domain as the eye center point as the eye part, determine the left and right edge points of the eye part as the left and right eye corner coordinates, and the highest and lowest edge points within the preset range of the left and right eye center coordinates as the upper and lower eyelid point coordinates;

[0021] An eye opening angle determination module is used to determine the left and right eye opening angles according to the left and right eye corner coordinates and the upper and lower eyelid coordinates;

[0022] The eye state judgment module is used to determine the eye angle α of the current frame. i ≤0.2(θ max -θ min ), it is judged as the closed eye state; where θ max and θ min It is the maximum and minimum values ​​of the eye angle collected during a certain period of time in the previous period.

[0023] Furthermore, when the distance between the two eye center points is d, the width and height of the target rectangular area are selected as 0.8d and 0.4d respectively.

[0024] Furthermore, it also includes: obtaining the coordinates of facial feature points, and assisting in determining the width and height of the target rectangular area according to the coordinates of the facial feature points; the coordinates of the two eye centers are [left.x, left.y], [right.x, right.y]; when the facial feature is the tip of the nose, its coordinates are [nose.x, nose.y], then the width of the target rectangular area high

[0025]

[0026] Furthermore, the maximum inter-class variance method is used to calculate the optimal threshold, which specifically includes:

[0027] The image in the target rectangular area is divided into the target eye and the background skin;

[0028] The segmentation threshold of the target eye and background skin is recorded as T, the ratio of the target pixel number to the total pixel number is w0, the average grayscale mean is u0, the ratio of the background pixel number to the total pixel number is w1, and the average grayscale mean is u1;

[0029] Let g = w0w1(u0-u1) 2 , when g reaches its maximum value, the corresponding T value is the optimal threshold for segmentation.

[0030] Furthermore, the preset range is 2-5 pixel units.

[0031] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for recognizing the state of a human eye based on the center point of the eye is implemented.

[0032] An embodiment of the present invention also provides a terminal device, including: a memory and a processor; the memory is used to store a computer program; the processor is used to execute the steps of the above-mentioned human eye state recognition method based on the eye center point when running the computer program.

[0033] The human eye state recognition method based on the center point of the eye provided by the present invention roughly delineates the rectangular area of ​​the eye based on the position of the center point of the eye, can better determine the position of the eye, and reduce the influence of eyebrows, outer frames of glasses, etc. as much as possible. At the same time, the binary image of the eye pixel points screened out by the maximum inter-class variance method can ensure that when the eyes are in a closed or slightly open state, the difference with the surrounding skin pixel points is large, and the eye pixel points can be better distinguished from the skin pixel points. This method does not need to find the complete outer contour of the eye, but only needs to determine the coordinates of the left and right eye corners and the upper and lower eyelids, which can reduce the influence of many contour points. The human eye state recognition method based on the center point of the eye has good robustness and practicality. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1A schematic diagram of a flow chart of a method for recognizing human eye state based on eye center points provided by an embodiment of the present invention;

[0036] Figure 2 A schematic diagram of eye angle provided by an embodiment of the present invention;

[0037] Figure 3 A schematic diagram of the composition of a human eye state recognition device based on the eye center point provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0038] 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.

[0039] Figure 1 The figure is a flow chart of a method for recognizing human eye state based on the center point of the eye provided by an embodiment of the present invention. The method comprises the following steps:

[0040] S101, determining target rectangular areas of two eyes according to the center points of the eyes.

[0041] The center point of the eye is the center point of the pupil. By roughly delineating the rectangular area of ​​the eye from the image, the influence of eyebrows and glasses frames on eye state detection can be minimized.

[0042] The geometric position of the eyes is determined based on feature points such as the eye center point. For eye center point detection, it can be determined by AdaBoost, Hough circle transform, MTCNN and other methods. The target rectangular area can also obtain more facial feature point coordinates based on the skin color model to assist in geometric positioning. For example: two eye center point coordinates [left.x, left.y], [right.x, right.y] and nose tip coordinates [nose.x, nose.y] are detected. The width and height of the eye area are determined based on the feature point coordinate values. Among them,

[0043]

[0044]

[0045] The target rectangular areas of the two eyes can also be determined only by the two eye centers. When the distance between the two eye centers is d, the width and height of the target rectangular area are selected as 0.8d and 0.4d respectively.

[0046] The eye rectangle area defined by geometric positioning includes the left and right eyes respectively, while removing the influence of eyebrows above the eyes as much as possible. For the video, the left and right eye areas are selected to avoid interference with the detection due to the crossbeam of glasses on the nose.

[0047] S102, mapping the image in the target rectangular area to the YCbCr color space, and establishing an eye grayscale model and a chromaticity model; wherein the chromaticity model EyeEapC(x, y) = (Cb(x, y) - Cr(x, y)) 2 , grayscale model Wherein, g(x,y) represents a hemispherical structural unit.

[0048] For eye pixels, in the YCbCr color components, the Cb component is relatively high and the Cr component is relatively low. In the brightness component Y, the grayscale values ​​of the eyeball and eyelid are low, and the white of the eye is high in grayscale. Therefore, a model can be established for screening.

[0049] EyeMapC(x,y)=(Cb(x,y)-Cr(x,y)) 2

[0050]

[0051] Among them, EyeMapC is a chromaticity model, EyeMapL is a grayscale model, g(x,y) represents a hemispherical structural unit, It uses hemispherical structural units to expand the Y value space. It uses hemispherical structural units to perform corrosion operations on the Y value space.

[0052] S103, determine whether the grayscale value of the center point of the eye in the grayscale model is greater than a preset threshold. When the grayscale value of the center point of the eye in the grayscale model is greater than the preset threshold, filter out the binary image of the eye pixel through the chromaticity model; when the grayscale value of the center point of the pupil in the grayscale model is not greater than the preset threshold, calculate the optimal threshold using the maximum inter-class variance method, and filter out the binary image of the eye pixel from the target rectangular area image through the optimal threshold.

[0053] For eye detection, when the eyes are basically open or not closed to a high degree, the grayscale model of the eyes can detect the pupil part well, and then the color model can be used to get the accurate position of the eyes. When the eyes are basically closed or the opening is too small, it is difficult for the eye color model to clearly obtain the eye part. After the grayscale model is established for the left and right eye regions, a preset threshold is set for judgment. The preset threshold is selected based on actual experience. When the coordinates of the center point of the eye can be detected in the grayscale model, the left and right eye regions are detected by the color model of the eye. A threshold is set for the color model. The pixels greater than the threshold are the eye part, and the others are background skin pixels. When the center point of the eye is judged as a non-eye part in the grayscale model, it means that the eye is too small, and the color model is not used to further detect the eye part, and the maximum inter-class variance method is selected for screening. When the eyes are closed or slightly open, the difference with the skin pixels around the eyes is large. Through adaptive threshold segmentation, the eye pixels can be better distinguished from the skin pixels.

[0054] The optimal threshold is calculated using the maximum inter-class variance method, including:

[0055] The image within the target rectangular area is divided into the target eye and the background skin.

[0056] The segmentation threshold of the target eye and background skin is denoted as T, the ratio of the target pixel number to the total pixel number is w0, the average grayscale mean is u0, the ratio of the background pixel number to the total pixel number is w1, and the average grayscale mean is u1.

[0057] The average gray value of the entire image is u = w0*u0+w1*u1. The maximum inter-class variance is g = w0*(u-u0) 2 +w1*(u-u1) 2 =w0w1(u0-u1) 2 When g reaches its maximum value, the corresponding T value is the optimal threshold for segmentation.

[0058] S104, numbering the connected domains of the binary image obtained after screening, selecting the area belonging to the same connected domain as the center point of the eye as the eye part, determining the left and right edge points of the eye part as the left and right eye corner coordinates, and determining the highest and lowest edge points within the preset range of the left and right eye center coordinates as the upper and lower eyelid point coordinates.

[0059] The preset range is generally 2-5 pixel units.

[0060] S105: Determine the left and right eye opening angles α according to the left and right eye corner coordinates and the upper and lower eyelid coordinates. i ;like Figure 2 As shown in the figure, it is a schematic diagram of the eye angle. When the eye angle α of the current frame i ≤0.2(θ max -θmin ), it is judged as closed eye state; when the eye opening angle α of the current frame i >0.2(θ max -θ min ), it is judged as the eyes open state; where θ max and θ min The maximum and minimum values ​​of the eye angle collected in a certain period of time in the early stage. For example, the state of each frame in the first minute of the collected video can be taken as the standard, and the maximum value of the eye angle θ can be obtained by statistics. max and the minimum value θ min .

[0061] Figure 3 The embodiment of the present invention further provides a human eye state recognition device based on the center point of the eye, comprising:

[0062] A target area determination module, used to determine the target rectangular areas of two eyes according to the center points of the eyes;

[0063] The eye diagram model building module is used to map the image in the target rectangular area to the YCbCr color space and build the eye grayscale model and chromaticity model; wherein the chromaticity model EyeMapC(x, y) = (Cb(x, y) - Cr(x, y)) 2 , grayscale model Among them, g(x,y) represents a hemispherical structural unit;

[0064] A judgment and screening module is used to judge whether the grayscale value of the center point of the eye in the grayscale model is greater than a preset threshold. When the grayscale value of the center point of the eye in the grayscale model is greater than the preset threshold, a binary image of the eye pixel is screened out through a chromaticity model; when the grayscale value of the center point of the pupil in the grayscale model is not greater than the preset threshold, an optimal threshold is calculated using the maximum inter-class variance method, and a binary image of the eye pixel is screened out from the target rectangular area image through the optimal threshold;

[0065] The eye corner and eyelid determination module is used to number the connected domains of the binary image obtained after screening, select the area belonging to the same connected domain as the eye center point as the eye part, determine the left and right edge points of the eye part as the left and right eye corner coordinates, and the highest and lowest edge points within the preset range of the left and right eye center coordinates as the upper and lower eyelid point coordinates;

[0066] An eye opening angle determination module is used to determine the left and right eye opening angles according to the left and right eye corner coordinates and the upper and lower eyelid coordinates;

[0067] The eye state judgment module is used to determine the eye angle α of the current frame. i ≤0.2(θ max -θ min), it is judged as the closed eye state; where θ max and θ min It is the maximum and minimum values ​​of the eye angle collected during a certain period of time in the previous period.

[0068] It should be noted that: when the human eye state recognition device based on the eye center point provided in the above embodiment is calibrated, only the division of the above program modules is used as an example. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the human eye state recognition device based on the eye center point provided in the above embodiment and the human eye state recognition method embodiment based on the eye center point belong to the same concept. The specific implementation process is detailed in the method embodiment. The beneficial effects are the same as the method embodiment, and will not be repeated here.

[0069] The embodiment of the present invention further provides a computer device, including: a memory and a processor. The memory is used to store a computer program. When the processor is used to run the computer program, the steps of the human eye state recognition method based on the eye center point of the present invention are executed.

[0070] The embodiment of the present invention also provides a computer storage medium, which is a computer-readable storage medium, on which a computer program is stored, and the above-mentioned computer program can be executed by a processor of a computer device to complete the steps of the human eye state recognition method based on the center point of the eye. The computer-readable storage medium can be a magnetic random access memory (FRAM, ferromagnetic random access memory), a read-only memory (ROM, Read Only Memory), a programmable read-only memory (PROM, Programmable Read-Only Memory), an erasable programmable read-only memory (EPROM, Erasable Programmable Read-Only Memory), an electrically erasable programmable read-only memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), a flash memory (Flash Memory), a magnetic surface memory, an optical disk, or a read-only optical disk (CD-ROM, Compact Disc Read-Only Memory) and other memories.

[0071] In the several embodiments provided by the present invention, it should be understood that the disclosed methods and intelligent devices can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0072] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment.

[0073] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for recognizing human eye state based on the center point of the eye, characterized in that: include: Determine the target rectangular areas of the two eyes according to the center points of the eyes; The image in the target rectangular area is mapped to the YCbCr color space, and the eye grayscale model and chromaticity model are established; wherein the chromaticity model EveMapC(x, y) = (Cb(x, y) - Cr(x, y)) 2 , grayscale model Among them, g(x,y) represents a hemispherical structural unit; Determine whether the grayscale value of the center point of the eye in the grayscale model is greater than a preset threshold. When the grayscale value of the center point of the eye in the grayscale model is greater than the preset threshold, filter out the binary image of the eye pixel point through the chromaticity model; when the grayscale value of the center point of the pupil in the grayscale model is not greater than the preset threshold, use the maximum inter-class variance method to calculate the optimal threshold, and filter out the binary image of the eye pixel point from the target rectangular area image through the optimal threshold; The connected domains of the binary image obtained after screening are numbered, and the area belonging to the same connected domain as the center point of the eye is selected as the eye part, and the left and right edge points of the eye part are determined to be the left and right eye corner coordinates, and the highest and lowest edge points within the preset range of the left and right eye center coordinates are the upper and lower eyelid point coordinates; Determine the left and right eye angles according to the left and right eye corner coordinates and the upper and lower eyelid coordinates; when the eye angle α of the current frame i ≤0.2(θ max -θ min ), it is judged as the closed eye state; where θ max and θ min It is the maximum and minimum values ​​of the eye angle collected in a certain period of time in the previous period.

2. The method according to claim 1, characterized in that When the distance between the two eye centers is d, the width and height of the target rectangular area are selected as 0.8d and 0.4d respectively.

3. The method according to claim 1, characterized in that Also includes: Obtain the coordinates of facial feature points, and determine the width and height of the target rectangular area based on the coordinates of the facial feature points; the coordinates of the two eye centers are [left.x, left.y], [right.x, right.y]; when the facial feature is the tip of the nose, its coordinates are [nose.x, nose.y], then the width of the target rectangular area high 4. The method according to claim 1, characterized in that: The optimal threshold is calculated using the maximum inter-class variance method, including: The image in the target rectangular area is divided into the target eye and the background skin; The segmentation threshold of the target eye and background skin is recorded as T, the ratio of the target pixel number to the total pixel number is w0, the average grayscale mean is u0, the ratio of the background pixel number to the total pixel number is w1, and the average grayscale mean is u1; Let g = w0w1(u0-u1) 2 , when g reaches its maximum value, the corresponding T value is the optimal threshold for segmentation.

5. The method according to claim 1, characterized in that The preset range is 2-5 pixel units.

6. A human eye state recognition device based on the center point of the eye, characterized in that: include: A target area determination module, used to determine the target rectangular areas of two eyes according to the center points of the eyes; The eye diagram model building module is used to map the image in the target rectangular area to the YCbCr color space and build the eye grayscale model and chromaticity model; wherein the chromaticity model EyeMapC(x, y) = (Cb(x, y) - Cr(x, y)) 2 , grayscale model Among them, g(x,y) represents a hemispherical structural unit; A judgment and screening module is used to judge whether the grayscale value of the center point of the eye in the grayscale model is greater than a preset threshold. When the grayscale value of the center point of the eye in the grayscale model is greater than the preset threshold, a binary image of the eye pixel is screened out through a chromaticity model; when the grayscale value of the center point of the pupil in the grayscale model is not greater than the preset threshold, an optimal threshold is calculated using the maximum inter-class variance method, and a binary image of the eye pixel is screened out from the target rectangular area image through the optimal threshold; The eye corner and eyelid determination module is used to number the connected domains of the binary image obtained after screening, select the area belonging to the same connected domain as the eye center point as the eye part, determine the left and right edge points of the eye part as the left and right eye corner coordinates, and the highest and lowest edge points within the preset range of the left and right eye center coordinates as the upper and lower eyelid point coordinates; An eye opening angle determination module is used to determine the left and right eye opening angles according to the left and right eye corner coordinates and the upper and lower eyelid coordinates; The eye state judgment module is used to determine the eye angle α of the current frame. i ≤0.2(θ max -θ min ), it is judged as the closed eye state; where θ max and θ min It is the maximum and minimum values ​​of the eye angle collected during a certain period of time in the previous period.

7. The device according to claim 6, characterized in that When the distance between the two eye centers is d, the width and height of the target rectangular area are selected as 0.8d and 0.4d respectively.

8. The device according to claim 6, characterized in that Also includes: Obtain the coordinates of facial feature points, and determine the width and height of the target rectangular area based on the coordinates of the facial feature points; the coordinates of the two eye centers are [left.x, left.y], [right.x, right.y]; when the facial feature is the tip of the nose, its coordinates are [nose.x, nose.y], then the width of the target rectangular area high 9. The device according to claim 6, characterized in that The optimal threshold is calculated using the maximum inter-class variance method, including: The image in the target rectangular area is divided into the target eye and the background skin; The segmentation threshold of the target eye and background skin is recorded as T, the ratio of the target pixel number to the total pixel number is w0, the average grayscale mean is u0, the ratio of the background pixel number to the total pixel number is w1, and the average grayscale mean is u1; Let g = w0w1(u0-u1) 2 , when g reaches its maximum value, the corresponding T value is the optimal threshold for segmentation.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for recognizing the state of a human eye based on the center point of the eye as claimed in any one of claims 1 to 5 is implemented.