The present invention relates to the field of mobile terminal technologies, and more particularly, to an image exposure method for a mobile terminal based on eyeprint recognition and an image exposure system.
With the development of mobile communication and continuous improvement of living standards, use of various mobile terminals, such as mobile phones, is becoming increasingly popular, and mobile phones have become an indispensable means of communication in people's daily lives.
With the popularization of smart phones, many users utilize lock screen software to protect their privacy on their mobile phones, beautify their mobile phones, and reduce misoperation.
Eyeprint recognition lock screen software is lock screen software for protecting privacy on users' mobile phones. Each person's eye texture is different, and less likely to change greatly, in general. The eyeprint recognition lock screen software utilizes this principle to determine whether or not a user is an owner of the mobile phone by means of eyeprint analysis.
The use procedures of the eyeprint recognition lock screen software are as below: in using for the first time, the user must input his/her own eyeprint information, which is similar to face recognition lock screen software. Also an alternative unlock method needs to be inputted. This is because image recognition lock screen software has a certain probability of failure in unlocking the screen. An alternative unlock method such as a password or nine-grid pattern is preset so that the alternative unlock method is enabled once the eyeprint recognition is failed.
The principle of the eyeprint recognition lock screen software is as below: a plurality of eye images of the user are acquired by using a front-facing camera, then data processing is performed on these images to acquire the user's eyeprint information, and the eyeprint information is stored in the mobile phone locally. When the user unlocks the mobile phone, the eyeprint recognition software may turn on the front-facing camera to reacquire the user's eyeprint information, and then it is determined whether or not the user is the owner of the mobile phone by comparing the eyeprint recognition with the prestored eyeprint information.
The eyeprint recognition lock screen software utilizes a front-facing camera to acquire eye image information of the user, and then processes and analyzes the image data. Therefore, requirements for image quality from the front-facing camera are relatively higher.
However, different regions of the same image may have a problem of different exposure levels, resulting in the inability to obtain correct exposure configuration, the eye being too dark or too bright, poor image quality, lowered eyeprint recognition speed, and inconvenience of the user in unlocking.
Therefore, the prior art needs to be improved and developed.
The technical problem to be solved by the present invention, aiming at the foregoing disadvantages of the prior art, is to provide an image exposure method for a mobile terminal based on eyeprint recognition and an exposure system. It is intended to solve the disadvantages of failure of eyeprint recognition or slower eyeprint recognition speed due to underexposure or overexposure in the prior art, when eyeprint recognition is adopted in a user's mobile terminal.
In order to solve the technical problem, the present invention adopts the following technical solutions.
There is provided an image exposure method for a mobile terminal based on eyeprint recognition, including:
A: detecting whether eyeprint recognition unlocking is started or not;
B: if the eyeprint recognition unlocking is started, turning on the camera to acquire a user's face image and display by preview the acquired face image on a display screen;
C: processing the face image by using eyeprint recognition software to position an eyeball position of the face image;
D: acquiring a brightness parameter of the eyeball position according to the eyeball position;
E: querying a prestored exposure parameter corresponding to the brightness parameter according to the acquired brightness parameter, and adjusting the queried exposure parameter so that a brightness of an image exposed by using the adjusted exposure parameter is 128 gray-levels;
F: exposing the eyeball position according to the adjusted exposure parameter; and
G: matching an eyeprint image acquired after exposure with prestored eyeprint data, and unlocking the mobile terminal if the matching succeeds, or prompting a failure in unlocking if the matching fails.
Further, in Step E, a specific method for adjusting the queried exposure parameter includes: increasing signal amplification factor and exposure time if the brightness parameter is less than 128 gray-levels; and reducing the signal amplification factor and the exposure time if the brightness parameter is greater than 128 gray-levels.
The present invention further provides an image exposure method for a mobile terminal based on eyeprint recognition, including:
A: acquiring image data through a camera when it is detected that the mobile terminal turns on the eyeprint recognition;
B: positioning an eyeball position through image processing, and acquiring a brightness parameter of the eyeball position;
C: querying a prestored exposure parameter corresponding to the brightness parameter according to the acquired brightness parameter, adjusting the exposure parameter, and exposing the eyeball position according to the adjusted exposure parameter.
In the image exposure method for a mobile terminal based on eyeprint recognition, before the Step A, the method further includes:
S: acquiring in advance and storing a corresponding relation among a user's eyeprint data, a brightness parameter and an exposure parameter.
In the image exposure method for a mobile terminal based on eyeprint recognition, after the Step C, the method further includes:
D: verifying an image acquired after exposure with prestored eyeprint data to unlock the mobile terminal.
In the image exposure method for a mobile terminal based on eyeprint recognition, the Step C specifically includes:
C1: querying a prestored exposure parameter corresponding to the brightness parameter according to the acquired brightness parameter;
C2: decreasing or increasing exposure time and signal amplification factor according to the corresponding relation; and
C3: exposing the eyeball position according to the adjusted exposure parameter.
In any one of the foregoing image exposure methods for a mobile terminal based on eyeprint recognition,
the eyeball used during eyeprint recognition may be a left eye or/and a right eye.
The present invention further provides an image exposure system for a mobile terminal based on eyeprint recognition, including:
a detecting and acquiring module, configured to acquire image data through a camera when it is detected that the mobile terminal turns on the eyeprint recognition;
a positioning module, configured to position an eyeball position through image processing, and acquire a brightness parameter of the eyeball position;
an adjusting and exposing module, configured to query a prestored exposure parameter corresponding to the brightness parameter according to the acquired brightness parameter, adjust the exposure parameter, and expose the eyeball position according to the adjusted exposure parameter.
The image exposure system for a mobile terminal based on eyeprint recognition further includes:
a prestoring module, configured to acquire in advance and store a corresponding relation among a user's eyeprint data, a brightness parameter and an exposure parameter.
The image exposure system for a mobile terminal based on eyeprint recognition further includes:
a verifying and unlocking module, configured to verify an image acquired after exposure with prestored eyeprint data to unlock the mobile terminal.
In the image exposure system for a mobile terminal based on eyeprint recognition, the adjusting and exposing module includes:
a querying unit, configured to query a prestored exposure parameter corresponding to the brightness parameter according to the acquired brightness parameter;
an adjusting unit, configured to decrease or increase exposure time and signal amplification factor according to the corresponding relation; and
an exposing module, configured to expose the eyeball position according to the adjusted exposure parameter.
In any one of the foregoing image exposure systems for a mobile terminal based on eyeprint recognition, the eyeball used during eyeprint recognition may be a left eye or/and a right eye.
The present invention provides an image exposure method for a mobile terminal based on eyeprint recognition and an image exposure system, where the image exposure method includes: acquiring image data through a camera when it is detected that the mobile terminal turns on the eyeprint recognition; positioning an eyeball position through image processing, and acquiring a brightness parameter of the eyeball position; and according to the acquired brightness parameter, querying a prestored exposure parameter corresponding to the brightness parameter, adjusting the exposure parameter, and exposing the eyeball position according to the adjusted exposure parameter. According to the present invention, in the process of eyeprint recognition, a region exposure method is used for a user's eyeball exposure to control the exposure, so that the eyeprint recognition speed is improved, the unlocking is safer and more convenient, and convenience is provided for the user.
To make the objectives, technical solutions, and advantages of the present invention clearer, the following further describes in detail the present invention with reference to the accompanying drawings and embodiments. It is to be understood that the embodiments described herein are only intended to explain the present invention, and are not restrictive of the present invention.
As shown in
Step S100: Acquire image data through a camera when it is detected that the mobile terminal turns on the eyeprint recognition.
During a concrete implementation, the mobile terminal turns on the camera to acquire an image when the user starts the eyeprint recognition unlocking. Preferably, human face data is acquired by the front-facing camera and data is displayed by preview on a display screen of the mobile terminal.
Specifically, before the Step S100, the method further includes:
S1: Acquire in advance and store a corresponding relation among a user's eyeprint data, a brightness parameter and an exposure parameter.
During a concrete implementation, the user sets the method for unlocking the mobile terminal as the eyeprint recognition unlocking. Each human eye has two eyeprints, respectively positioned at two sides of an iris. An eyeprint may reveal a great deal of human physiological information such as blood vessels or veins, etc. This seemingly irrelevant data becomes precisely the important index for identifying the user. A smart mobile terminal may capture human eyeprint information.
When it is set as the eyeprint recognition unlocking, the mobile terminal captures the user's eyeprint data and stores the captured eyeprint data for subsequent eyeprint recognition. Here, the user's eyeprint data may be directly acquired through the camera of the mobile terminal, or be acquired by using a camera and stored in the mobile terminal. Preferably, the user's eyeprint data is directly acquired through the camera of the mobile terminal.
The concrete corresponding relation between the brightness parameter and the exposure parameter is measured and obtained by many experiments. Preferably, in the present invention, the Y value (namely, the brightness value) of an image in YUV Space is defined as 128 (a threshold value). When the Y value in the image is greater than or smaller than 128, the exposure parameters including exposure time and gain (namely, signal amplification factor) are adjusted so that the Y value is equal to 128.
A target brightness value is about 18 degree gray (gray-level 128). If the brightness of an image does not reach this brightness value, gain (signal amplification factor) and exposure time are increased so that the brightness of the image reaches this target value. Conversely, the gain and the exposure time are decreased if the brightness of the image is greater than the brightness value. A specific signal amplification factor may be 1, 2 and 3, etc. For example, it may be judged whether to increase or decrease the exposure time and whether to increase the signal amplification factor or not by means of the difference value between an existing brightness value and the target brightness value. For example, when the Y value (namely, gray-level) of the existing brightness is 12, the exposure time may be increased by 10 ms, and the signal amplification factor is tripled. Specifically, adjustment of the exposure time and the signal amplification factor is determined according to the needs.
Step S200: Position an eyeball position through image processing, and acquire a brightness parameter of the eyeball position.
During a concrete implementation, when the camera is turned on, the mobile terminal previews human face information. Eyeball position is positioned through image processing; there are many concrete methods for image processing in the prior art, which is not unnecessarily described herein. After positioning the eyeball position by using an image processing method, the mobile terminal also acquires the brightness parameter of the eyeball position.
Step S300: Query a prestored exposure parameter corresponding to the brightness parameter according to the acquired brightness parameter, adjust the exposure parameter, and expose the eyeball position according to the adjusted exposure parameter.
The Zone System refers to dividing the tone or gray scale of a black-and-white picture into ten “zones”: from the zero zone (the darkest part that can be manifested by a photo paper) to the tenth zone (the ground color of the photo paper-white). The fifth zone is medium gray, which may be acquired by exposure from a reading of a light meter. The fifth zone is a zone whose luminous reflectance is 18%.
A standard practice for acquiring correct exposure for the camera is to calculate the mean value of Y values of the current image in YUV Space. It is believed that correct exposure is obtained after various exposure parameters settings are adjusted (automatically or manually) so that the mean value falls near a target value. In the present invention, 18% gray is defined as a mean value. Generally, it is believed that indoor or outdoor landscapes have an average luminous reflectance of about 18%. However, as previously mentioned, a color mean value may be regarded as a medium gray tone. Hence, by shooting a gray card having a luminous reflectance of 18%, the exposure parameters are adjusted so that its color is close to medium-bright gray (the Y value is 128). Afterward, correct exposure may be automatically obtained for ordinary landscapes.
Therefore, after the brightness parameters of landscapes are acquired, exposure thereof is adjusted close to medium-bright gray to obtain the best exposure effect. During a concrete implementation, the Step S300 specifically includes:
S301: Query a prestored exposure parameter corresponding to the brightness parameter according to the acquired brightness parameter;
S302: Decrease or increase exposure time and gain according to the corresponding relation; and
S303: Expose the eyeball position according to the adjusted exposure parameter.
Because an image of blood vessels in the white part of the eyes is used for eyeprint recognition, the position of the eyes may be found according to an algorithm, and exposure is adjusted in reference to the white part of the eyes.
Excessive exposure may lose eyeprint information. Low exposure may guarantee acquisition of clearer eyeprint information, and the recognition rate may be increased.
After the Step S300, the method further includes:
Step S400: Verify an image acquired after exposure with prestored eyeprint data to unlock the mobile terminal. Specifically, an eyeprint image acquired after exposure is compared and verified with the prestored eyeprint data, the mobile terminal is unlocked if the matching succeeds, or a failure in unlocking is prompted if the matching fails.
The eyeball used during eyeprint recognition in the present invention may be a left eye or/and a right eye. During a concrete implementation, in a yin-yang face environment, exposure of the user's right and left eyes is different. Therefore, exposure control may be focused on one eye to acquire a high-quality image of the eye, and eye recognition is applied to the eye to accelerate the recognition speed. Also, eyeprint recognition may be applied to both right and left eyes. It does not specifically limit how many eyes are used for eyeprint recognition.
In a specific application embodiment of an image exposure method for a mobile terminal based on eyeprint recognition according to the present invention, as shown in
Step S10: Detect whether the mobile terminal starts the eyeprint recognition unlocking or not, then execute Step S20;
Step S20: The eyeprint recognition turns on the camera to start preview and acquire image data, then execute Step S30;
Step S30: the eyeprint recognition software processes the image, finds the position of eyes, and transmits position information to the hardware abstraction layer of the camera, then execute Step S40;
Step S40: the hardware abstraction layer of the camera performs exposure parameter calculation and configuration on the brightness of the position; execute Step S50 if the brightness is higher, or execute Step S60 if the brightness is lower; specifically, higher or lower brightness is relatively, where it is believed that the brightness is lower if a luminous reflectance of an object is less than 18%, and it is believed that the brightness is higher if the luminous reflectance of the object is greater than 18%.
Step S50: Reduce exposure time and gain, then execute Step S70;
Step S60: Increase the exposure time and the gain, then execute Step S70;
Step S70: The eyeprint recognition software acquires a better image for eyeprint recognition verification and unlocking, then execute Step S80;
Step S80: Turn off the camera, then execute Step S90; and
Step S90: End eyeprint recognition.
As seen from the foregoing embodiments, the present invention provides an image exposure method for a mobile terminal based on eyeprint recognition, in the process of eyeprint recognition, a human eyeball is acquired by image processing, and the exposure parameters of the camera are adjusted according to brightness data of the human eyeball position, and finally a high-quality eyeprint image is obtained for recognition verification, thereby improving the speed of eyeprint recognition and bringing convenience for the user.
Based on the foregoing embodiments, the present invention further provides a functional block diagram of an image exposure system for a mobile terminal based on eyeprint recognition according to a preferred embodiment of the present invention, as shown in
a detecting and acquiring module 510, configured to acquire image data through a camera when it is detected that the mobile terminal turns on the eyeprint recognition, specifically as mentioned above;
a positioning module 520, configured to position an eyeball position through image processing, and acquire a brightness parameter of the eyeball position, specifically as mentioned above; and
an adjusting and exposing module 530, configured to query a prestored exposure parameter corresponding to the brightness parameter according to the acquired brightness parameter, adjust the exposure parameter, and expose the eyeball position according to the adjusted exposure parameter, specifically as mentioned above.
The image exposure system for a mobile terminal based on eyeprint recognition further includes:
a prestoring module, configured to acquire in advance and store a corresponding relation among a user's eyeprint data, a brightness parameter and an exposure parameter, specifically as mentioned above.
The image exposure system for a mobile terminal based on eyeprint recognition further includes:
a verifying and unlocking module, configured to verify an image acquired after exposure with prestored eyeprint data to unlock the mobile terminal, specifically as mentioned above.
In the image exposure system for a mobile terminal based on eyeprint recognition, the adjusting and exposing module includes:
a querying unit, configured to query a prestored exposure parameter corresponding to the brightness parameter according to the acquired brightness parameter, specifically as mentioned above;
an adjusting unit, configured to decrease or increase exposure time and gain according to the corresponding relation, specifically as mentioned above; and
an exposing module, configured to expose the eyeball position according to the adjusted exposure parameter, specifically as mentioned above.
In any one of the foregoing image exposure systems for a mobile terminal based on eyeprint recognition, the eyeball used during eyeprint recognition may be a left eye or/and a right eye, specifically as mentioned above.
In conclusion, the present invention provides an image exposure method for a mobile terminal based on eyeprint recognition and an image exposure system, where the image exposure method includes: acquiring image data through a camera when it is detected that the mobile terminal turns on the eyeprint recognition; positioning an eyeball position through image processing, and acquiring a brightness parameter of the eyeball position; and according to the acquired brightness parameter, querying a prestored exposure parameter corresponding to the brightness parameter, adjusting the exposure parameter, and exposing the eyeball position according to the adjusted exposure parameter. According to the present invention, in the process of eyeprint recognition, a region exposure method is used for a user's eyeball exposure to control the exposure, so that the eyeprint recognition speed is improved, the unlocking is safer and more convenient, and convenience is provided for the user.
It is to be understood that application of the present invention is not limited to the foregoing examples, those of ordinary skill in the art may make improvements or transformations according to the foregoing description, and all these improvements and transformations should fall within the scope of protection of the appended claims of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
2015102286807 | May 2015 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2015/096654 | 5/7/2015 | WO | 00 |