Drowsiness detection method and system for determining the degree of eye opening and closure
First Claim
1. An eye detection method for detecting a degree of eye opening and closure of a testee, comprising:
- detecting a location of an eye pupil, a location of an inner eye corner and a location of an outer eye corner of an eye of the testee;
calculating an eye width according to the location of the inner eye corner and the location of the outer eye corner;
multiplying the eye width by a specific ratio smaller than 1 to obtain an eye height;
generating a rectangular region of interest with a center on the location of the eye pupil, a length equal to the eye width, and a width equal to the eye height; and
determining a ratio of the eye occupying a detection area in the region of interest, and determining the degree of eye opening and closure of the testee accordingly;
wherein the step of determining the ratio of the eye occupying the detection area in the region of interest and determining the degree of eye opening and closure of the testee accordingly comprises;
performing an image binarization on an eye image within the region of interest, to generate a binarized image having an eye region and a non-eye region;
performing a filling process on the binarized image to eliminate a noise in the eye region determined to be the non-eye region;
detecting an area of the eye region within the detection area after the filling process is accomplished; and
determining that the eye of the testee is closed when a number of times the ratio of the eye region occupying the detection area smaller than a threshold value is detected in a specific period of time reaches a specific number.
1 Assignment
0 Petitions
Accused Products
Abstract
An eye detection method for detecting a degree of eye opening and closure of a testee includes detecting a location of an eye pupil, a location of an inner eye corner and a location of an outer eye corner of an eye of the testee; calculating an eye width according to the location of the inner eye corner and the location of the outer eye corner; multiplying the eye width by a specific ratio to obtain an eye height; generating a region of interest with a center on the location of the eye pupil, a length equal to the eye width, and a width equal to the eye height; and determining a ratio of the eye occupying a detection area in the region of interest, and determining the degree of eye opening and closure of the testee accordingly.
-
Citations
17 Claims
-
1. An eye detection method for detecting a degree of eye opening and closure of a testee, comprising:
-
detecting a location of an eye pupil, a location of an inner eye corner and a location of an outer eye corner of an eye of the testee; calculating an eye width according to the location of the inner eye corner and the location of the outer eye corner; multiplying the eye width by a specific ratio smaller than 1 to obtain an eye height; generating a rectangular region of interest with a center on the location of the eye pupil, a length equal to the eye width, and a width equal to the eye height; and determining a ratio of the eye occupying a detection area in the region of interest, and determining the degree of eye opening and closure of the testee accordingly; wherein the step of determining the ratio of the eye occupying the detection area in the region of interest and determining the degree of eye opening and closure of the testee accordingly comprises; performing an image binarization on an eye image within the region of interest, to generate a binarized image having an eye region and a non-eye region; performing a filling process on the binarized image to eliminate a noise in the eye region determined to be the non-eye region; detecting an area of the eye region within the detection area after the filling process is accomplished; and determining that the eye of the testee is closed when a number of times the ratio of the eye region occupying the detection area smaller than a threshold value is detected in a specific period of time reaches a specific number. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. An eye detection system for detecting a degree of eye opening and closure of a testee, comprising:
-
a photography device, for detecting a location of an eye pupil, a location of an inner eye corner and a location of an outer eye corner of an eye of the testee; and a processor, coupled to the photography device, for performing the following steps; calculating an eye width according to the location of the inner eye corner and the location of the outer eye corner; multiplying the eye width by a specific ratio smaller than 1 to obtain an eye height; generating a rectangular region of interest with a center on the location of the eye pupil, a length equal to the eye width, and a width equal to the eye height; and determining a ratio of the eye occupying a detection area in the region of interest, and determining the degree of eye opening and closure of the testee accordingly; wherein the processor further performs the following steps to determine the ratio of the eye occupying the detection area in the region of interest and determine the degree of eye opening and closure of the testee accordingly; performing an image binarization on an eye image within the region of interest, to generate a binarized image having an eye region and a non-eye region; performing a filling process on the binarized image to eliminate a noise in the eye region determined to be the non-eye region; detecting an area of the eye region within the detection area after the filling process is accomplished; and determining that the eye of the testee is closed when a number of times the ratio of the eye region occupying the detection area smaller than a threshold value is detected in a specific period reaches a specific number. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
-
17. An eye detection method for detecting a degree of eye opening and closure of a testee, comprising:
-
performing an image binarization on an eye image within a region of interest, to generate a binarized image having an eye region and a non-eye region; performing a filling process on the binarized image to eliminate a noise in the eye region determined to be the non-eye region; detecting an area of the eye region within a detection area in the region of interest after the filling process is accomplished; and determining that the eye of the testee is closed when a number of times the ratio of the eye region occupying the detection area smaller than a threshold value is detected in a specific period of time reaches a specific number; wherein the filling process comprises; determining whether a middle point of a row of pixels in the region of interest is in the eye region or the non-eye region; scanning from a first middle point of a first row of pixels toward a direction of the eye width when the first middle point is in the non-eye region, and after scanning to the eye region, filling the non-eye region between the first middle point and the scanned eye region in the first row of pixels to be the eye region; and scanning from a second middle point of a second row of pixels toward the direction of the eye width when the second middle point is in the eye region, and after scanning to the non-eye region and then scanning to the eye region, filling the scanned non-eye region in the second row of pixels to be the eye region.
-
Specification