The application provides a dim environment closed-
eye detection method and
system, and belongs to the technical field of
computer vision detection.The dim environment closed-
eye detection method is characterized in that the following steps are included: setting a
lower threshold value and an upper threshold value, wherein the
lower threshold value and the upper threshold value are both positive numbers, and the
lower threshold value is smaller than the upper threshold value; receiving a video frame, calculating an EAR according to eye key point coordinate information; judging the EAR according to a
double threshold method, and when a plurality of continuous frames meet the set condition, the closed-
eye state is determined, wherein the execution method of the
double threshold method includes: judging the EAR value, if the EAR value is smaller than the lower threshold value, starting counting, and if the EAR value is smaller than the upper threshold value, the number of times is accumulated, if the EAR value is not smaller than the upper threshold value, stopping and resetting the counting, and when the number of times reaches the set
threshold number of times, the closed-
eye state is determined.The application has the beneficial effect that the closed-
eye state can be stably and accurately detected in a dim environment such as a mine, thereby providing support for a fatigue driving detection
system.