CN107341469B - Control method, electronic device, and computer-readable storage medium - Google Patents

Control method, electronic device, and computer-readable storage medium Download PDF

Info

Publication number
CN107341469B
CN107341469B CN201710527792.1A CN201710527792A CN107341469B CN 107341469 B CN107341469 B CN 107341469B CN 201710527792 A CN201710527792 A CN 201710527792A CN 107341469 B CN107341469 B CN 107341469B
Authority
CN
China
Prior art keywords
iris
infrared light
power
electronic device
light source
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710527792.1A
Other languages
Chinese (zh)
Other versions
CN107341469A (en
Inventor
林尚波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710527792.1A priority Critical patent/CN107341469B/en
Publication of CN107341469A publication Critical patent/CN107341469A/en
Application granted granted Critical
Publication of CN107341469B publication Critical patent/CN107341469B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/18Eye characteristics, e.g. of the iris
    • G06V40/19Sensors therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/10Image acquisition
    • G06V10/12Details of acquisition arrangements; Constructional details thereof
    • G06V10/14Optical characteristics of the device performing the acquisition or on the illumination arrangements
    • G06V10/141Control of illumination
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/10Image acquisition
    • G06V10/12Details of acquisition arrangements; Constructional details thereof
    • G06V10/14Optical characteristics of the device performing the acquisition or on the illumination arrangements
    • G06V10/147Details of sensors, e.g. sensor lenses

Abstract

The invention discloses a control method for an electronic device, wherein the electronic device comprises an iris recognition module, and the iris recognition module comprises an infrared light source and an infrared camera. The control method comprises the following steps: controlling an infrared light source to emit infrared light at a first power; controlling an infrared camera to acquire an image; processing the image to identify iris information; and controlling the infrared light source to emit infrared light at a second power when the iris information meets the preset condition, wherein the second power is greater than the first power. In addition, the invention also discloses an electronic device and a computer readable storage medium. The control method, the electronic device and the computer readable storage medium of the invention adjust the power of the infrared light source according to the image collected by the infrared camera, thereby reducing the electric quantity consumption of the infrared light source and avoiding the infrared light source from heating.

Description

Control method, electronic device, and computer-readable storage medium
Technical Field
The present invention relates to electronic devices, and more particularly, to a control method, an electronic device, and a computer-readable storage medium.
Background
Generally, iris recognition needs an infrared light source to assist an infrared camera to acquire a clear iris image, but the infrared light source has high energy consumption, generates heat seriously during working and is not suitable for being started for a long time.
Disclosure of Invention
The embodiment of the invention provides a control method, an electronic device and a computer readable storage medium.
The control method is used for an electronic device, the electronic device comprises an iris recognition module, the iris recognition module comprises an infrared light source and an infrared camera, and the control method comprises the following steps:
controlling the infrared light source to emit infrared light at a first power;
controlling the infrared camera to acquire an image;
processing the image to identify iris information; and
and when the iris information meets the preset condition, controlling the infrared light source to emit infrared light at a second power, wherein the second power is greater than the first power.
An electronic apparatus according to an embodiment of the present invention includes:
the iris identification module comprises an infrared light source and an infrared camera; and
a processor to:
controlling the infrared light source to emit infrared light at a first power;
controlling the infrared camera to acquire an image;
processing the image to identify iris information; and
and when the iris information accords with a preset condition, controlling the infrared light source to emit infrared light with second power, wherein the second power is greater than the first power.
An electronic apparatus according to an embodiment of the present invention includes:
an iris recognition module;
one or more processors;
a memory; and
one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the programs for executing the instructions of the control method.
A computer-readable storage medium of an embodiment of the present invention includes a computer program for use in conjunction with an electronic device, the computer program being executable by a processor to perform the control method.
An electronic apparatus according to an embodiment of the present invention includes:
the infrared camera is used for acquiring an iris image;
the infrared light source is used for emitting infrared light with first power to supplement light for the infrared camera; and
a processor to:
and when the iris image reaches a preset condition, driving the infrared light source to emit infrared light at a second power which is greater than the first power so as to perform iris recognition.
According to the control method, the electronic device and the computer readable storage medium, the power of the infrared light source is adjusted according to the image acquired by the infrared camera, so that the electric quantity consumption of the infrared light source is reduced, and the infrared light source is prevented from heating.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a schematic flow chart of a control method according to an embodiment of the present invention;
FIG. 2 is a schematic plan view of an electronic device according to an embodiment of the invention;
FIG. 3 is another schematic flow chart diagram of a control method of an embodiment of the present invention;
FIG. 4 is a further schematic flow chart of a control method according to an embodiment of the present invention;
FIG. 5 is another schematic plan view of an electronic device according to an embodiment of the invention;
FIG. 6 is a schematic plan view of an electronic device according to an embodiment of the invention;
FIG. 7 is a schematic view of the infrared light source and infrared camera of an embodiment of the present invention;
FIG. 8 is yet another flow chart diagram of a control method of an embodiment of the present invention;
FIG. 9 is yet another flow chart diagram of a control method of an embodiment of the present invention;
FIG. 10 is yet another flow chart diagram of a control method of an embodiment of the present invention;
FIG. 11 is yet another flow chart diagram of a control method in accordance with an embodiment of the present invention;
FIG. 12 is yet another schematic plan view of an electronic device according to an embodiment of the invention;
FIG. 13 is a schematic diagram of a connection between an electronic device and a computer readable storage medium according to an embodiment of the present invention.
Description of the main element symbols:
electronic device 100, iris recognition module 20, infrared light source 22, infrared camera 24, processor 30, acceleration sensor 40, housing 60, front surface 62, memory 70, computer-readable storage medium 800.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
Referring to fig. 1 and fig. 2 together, the control method according to the embodiment of the invention can be applied to an electronic device 100. The electronic device 100 includes an iris recognition module 20, and the iris recognition module 20 includes an infrared light source 22 and an infrared camera 24. The control method comprises the following steps:
s31: controlling the infrared light source 22 to emit infrared light at a first power;
s32: controlling the infrared camera 24 to collect images;
s33: processing the image to identify iris information; and
s35: and controlling the infrared light source 22 to emit infrared light at a second power when the iris information meets the preset condition, wherein the second power is greater than the first power.
Referring to fig. 2 again, the electronic device 100 according to the embodiment of the invention includes an iris recognition module 20 and a processor 30. The iris recognition module 20 includes an infrared light source 22 and an infrared camera 24. The processor 30 is configured to:
controlling the infrared light source 22 to emit infrared light at a first power;
controlling the infrared camera 24 to collect images;
processing the image to identify iris information; and
and controlling the infrared light source 22 to emit infrared light at a second power when the iris information meets the preset condition, wherein the second power is greater than the first power.
That is, the control method of the embodiment of the present invention may be implemented by the electronic apparatus 100 of the embodiment of the present invention, wherein the steps S31, S32, S33, S34 and S35 may be implemented by the processor 30.
The electronic device 100 of the present embodiment includes an infrared light source 22, an infrared camera 24, and a processor 30. The infrared camera 24 is used for collecting iris images, and the infrared light source 22 is used for emitting infrared light with first power to supplement light for the infrared camera 24. The processor 30 is configured to drive the infrared light source 22 to emit infrared light at a second power greater than the first power for iris recognition when the iris image reaches a preset condition.
The control method and the electronic device 100 according to the embodiment of the present invention adjust the power of the infrared light source 22 according to the image collected by the infrared camera 24, thereby reducing the power consumption of the infrared light source 22 and avoiding the infrared light source 22 from generating heat.
In certain embodiments, infrared light source 22 refers to a light source capable of producing infrared radiation (infrared light), which is a range of electromagnetic radiation having wavelengths greater than the wavelength of red light.
In some embodiments, the iris information may include information of the iris region and/or information of the iris position, that is, the iris information may include information of the iris region, information of the iris position, information of the iris region, and information of the iris position. The preset condition may be a suitable iris distance. Therefore, the iris distance can be acquired by utilizing the iris information, and whether the iris information meets the preset condition or not can be judged according to whether the iris distance is proper or not.
Specifically, the information of the iris region may include information of an area of the iris region, and when the area of the iris region is appropriate, it is determined that the iris distance is appropriate, that is, it is determined that the iris information meets a preset condition; and judging that the iris distance is not appropriate when the area of the iris area is not appropriate, namely determining that the iris information does not conform to the preset condition. The information of the iris position may refer to a position relationship between the iris and the electronic device 100 or the iris recognition module 20, and the iris distance may be obtained through the position relationship between the iris and the electronic device 100 (such as the iris recognition module 20), so as to obtain the iris distance according to the iris position information, and determine whether the iris information meets a preset condition according to the iris distance.
In some embodiments, the iris distance may refer to a distance between an iris region (or eye) of the user and the electronic device 100 (e.g., the iris recognition module 20). It is understood that when there is only one iris region, i.e. the image includes only one iris region corresponding to one eye, the iris distance may refer to the distance between the iris region or the eye and the electronic device 100; when there are a plurality of iris regions, that is, when there are a plurality of iris regions corresponding to a plurality of eyes, the iris distance may be an average value of distances between the plurality of iris regions and the electronic device 100, a minimum value of the distances between the plurality of iris regions and the electronic device 100, or a maximum value of the distances between the plurality of iris regions and the electronic device 100, and is not particularly limited herein.
It can be understood that, in the process of identifying the iris by the electronic device 100, when the distance between the irises is too large, the iris area of the image acquired by the electronic device 100 is too small, which may result in that the texture information of the iris cannot be extracted and thus the iris identification cannot be performed; when the iris distance is too small, texture information of the iris included in the image may be incomplete, resulting in failure to perform iris recognition. Therefore, the power of the infrared light source 22 can be adjusted from the first power to the second power when the iris distance is timely switched, that is, when the iris information meets the preset condition, so that the infrared light source 22 emitting infrared light with the second power is used for displaying the texture information of the iris, and the infrared camera 24 is used for imaging to obtain the iris image. When the iris distance is not appropriate, i.e., the iris information is not in condition, the infrared light source 22 is kept emitting infrared light at the first power to avoid unnecessary power consumption and heating problems for the electronic device 100.
It can be understood that, in the embodiment of the present invention, the image is used to identify the iris information to determine whether the iris information meets the preset condition according to the iris information, and the requirement on the quality (such as color, resolution, etc.) of the image is not high, so that the infrared light source 22 with the first power can be used to assist the infrared camera 24 to acquire the image (gray image), so as to acquire the iris information by using the image acquired by the infrared camera 24, and then determine whether the iris information meets the preset condition according to the iris information, such as acquiring the iris distance according to the iris information, and then determine whether the iris distance is proper.
In some embodiments, the iris distance may range from 10 cm to 30 cm, i.e., when the iris distance is between 10 cm and 30 cm, the iris distance is deemed appropriate; when the iris distance is less than or equal to 10 cm or more than or equal to 30 cm, the iris distance is not appropriate.
In some embodiments, the electronic device 100 comprises a cell phone, a laptop, a tablet, a smart watch, or smart glasses. In the embodiment of the present invention, the electronic device 100 is a mobile phone.
Referring to fig. 3, in some embodiments, the control method includes the following steps:
s36: judging whether an iris identification request is received or not;
s37: when receiving the iris recognition request, the process proceeds to step S31; and
s38: and returns to step S36 when the iris recognition request is not received.
Referring again to fig. 2, in some embodiments, the processor 30 is configured to:
judging whether an iris identification request is received or not;
entering a step of controlling the infrared light source 22 to emit infrared light at a first power upon receipt of the iris recognition request; and
and returning to the step of judging whether the iris identification request is received or not when the iris identification request is not received.
That is, steps S36, S37, and S38 may be implemented by the processor 30.
In this way, the steps or processes related to iris recognition can be executed only when the iris recognition request is received, thereby reducing the power consumption of the electronic device 100.
Specifically, the processor 30 first determines whether the electronic device 100 receives an iris recognition request, and executes relevant steps or procedures for iris recognition when receiving the iris recognition request; when the iris recognition request is not received, the electronic device 100 does not execute the steps or procedures related to the iris recognition, but continuously determines whether the iris recognition request is received, thereby preventing the electronic device 100 from executing the steps or procedures related to the iris recognition all the time, further reducing the power consumption of the electronic device 100, and improving the cruising ability of the electronic device 100.
Referring to fig. 4 and 5 together, in some embodiments, the electronic device 100 includes an acceleration sensor 40. Step S36 includes the following steps:
s362: processing an output signal of the acceleration sensor 40 to determine whether the electronic device 100 is operating in a predetermined manner; and
s364: it is determined that an iris recognition request is received while the electronic device 100 operates in a predetermined manner.
Referring again to fig. 5, in some embodiments, the electronic device 100 includes an acceleration sensor 40. The processor 30 is configured to:
processing an output signal of the acceleration sensor 40 to determine whether the electronic device 100 is operating in a predetermined manner; and
it is determined that an iris recognition request is received while the electronic device 100 operates in a predetermined manner.
That is, steps S362 and S364 may be implemented by the processor 30.
In this way, whether the electronic device 100 receives the iris recognition request can be determined by the acceleration sensor 40, so that the operation procedure of the user is simplified, and the user can use the electronic device 100 conveniently.
Specifically, the acceleration sensor 40 may be configured to detect an acceleration of the electronic device 100, and the processor 30 obtains an output signal of the acceleration sensor 40 (e.g., the acceleration detected by the acceleration sensor 40) to obtain an operation mode of the electronic device 100, determines whether the electronic device 100 is operated in a predetermined manner, and determines that an iris recognition request is received when the electronic device 100 is operated in the predetermined manner. In one embodiment, the predetermined manner is a left-right translation two passes within 2 seconds, the acceleration sensor 40 detects the acceleration of the electronic device 100, and when the direction in which the acceleration of the electronic device 100 is detected is left, left to right, right to left, left to right within 2 seconds, it is determined that the electronic device 100 is operating in the predetermined manner, thereby determining that the electronic device 100 has received the iris recognition request. It should be noted that the processor 30 may determine the motion trajectory of the electronic device 100 by processing the acceleration of the electronic device 100 acquired by the acceleration sensor 40, and the predetermined manner may also refer to a predetermined motion trajectory, such as an arc, a circle, a V, and the like. For example, when the user picks up the electronic apparatus 100, the electronic apparatus 100 moves from a position away from the face of the user to a position close to the face of the user, during which the motion trajectory of the electronic apparatus 100 is generally arc-shaped, so that the predetermined manner may be set as arc-shaped, and whether the motion trajectory of the electronic apparatus 100 is arc-shaped is determined by determining whether the motion trajectory of the electronic apparatus 100 is arc-shaped according to the acceleration of the electronic apparatus 100 acquired by the acceleration sensor 40.
Referring to fig. 6, in some embodiments, the electronic device 100 includes a housing 60, the housing 60 includes a front surface 62, and the iris recognition module 20 is disposed in the housing 60 and exposed from the front surface 62.
In this way, the housing 60 of the electronic device 100 can be used to protect the iris recognition module 20 and facilitate the operation of the iris recognition module 20.
Specifically, the iris recognition module 20 is disposed in the housing 60, and the housing 60 can be used for protecting the iris recognition module 20 against dust and water, so as to prevent the iris recognition module 20 from being damaged by external factors and affecting normal operation of the iris recognition module. In addition, expose iris identification module 20 from front surface 62 and can make things convenient for iris identification module 20 to carry out work, avoid influencing infrared camera 24 acquisition light of iris identification module 20 to ensure that iris identification module 20 can high-efficient work.
Referring to FIG. 7, in some embodiments, the illumination range of infrared source 22 and the field of view of infrared camera 24 at least partially overlap.
In this manner, infrared light source 22 and infrared camera 24 may work in concert.
Specifically, the infrared light source 22 and the infrared camera 24 need to cooperate to acquire an iris image, the infrared light source 22 and the infrared camera 24 may be disposed on the same side of the electronic device 100, and the infrared light source 22 and the infrared camera 24 are disposed adjacent to each other, so that the infrared light emitted by the infrared light source 22 passes through the surface of the object and then can be acquired by the infrared camera 24. For example, the infrared light source 22 and the infrared camera 24 with the first power may be used to acquire images, so as to determine the iris distance according to the images, adjust the power of the infrared light source 22 to the second power when the iris distance is in a clutch state, and further obtain the iris image by using the infrared light source 22 and the infrared camera 24 with the second power.
Referring to fig. 8, in some embodiments, step S31 includes the following steps:
s312: controlling the infrared light source 22 to emit infrared light at a first power with a pulse signal of a first duty cycle;
step S35 includes the following steps:
s351: the pulse signal at a second duty cycle controls the infrared light source 22 to emit infrared light at a second power, the second duty cycle being greater than the first duty cycle.
Referring again to fig. 2, in some embodiments, the processor 30 is configured to:
controlling the infrared light source 22 to emit infrared light at a first power with a pulse signal of a first duty cycle;
the pulse signal at a second duty cycle controls the infrared light source 22 to emit infrared light at a second power, the second duty cycle being greater than the first duty cycle.
That is, steps S312 and S351 may be implemented by the processor 30.
In this way, the infrared light source 22 can be controlled to emit infrared light at different powers by the pulse signal of the infrared light source 22.
Specifically, the processor 30 may first determine at which power the infrared light source 22 is to emit infrared light according to the infrared camera 24, then generate a corresponding pulse signal, and then control the infrared light source 22 to emit infrared light at different powers by using the pulse signal.
It will be appreciated that when infrared light source 22 emits infrared light at a first power, the duty cycle of the pulsed signal is relatively small; when the infrared light source 22 emits infrared light at the second power, the duty ratio of the pulse signal is relatively large. In one embodiment, when infrared light source 22 emits infrared light at a first power, the duty cycle of the pulse signal is 50%; when the infrared light source 22 emits infrared light at the second power, the duty ratio of the pulse signal is 100%.
Referring to fig. 9, in some embodiments, step S33 includes the following steps:
s332: processing the image to identify whether a face is present;
s334: identifying iris information when a face exists; and
s336: and returning to the step S31 when no human face exists.
Referring again to fig. 2, in some embodiments, the processor 30 is configured to:
processing the image to identify whether a face is present;
identifying iris information when a face exists; and
and returning to the step of controlling the infrared light source 22 to emit infrared light at the first power when the human face is not present.
That is, steps S332, S334, and S336 may be implemented by the processor 30.
Thus, the calculation amount of the processor 30 can be reduced, and the work efficiency of the electronic device 100 can be improved.
Specifically, the iris recognition information is generally performed by face recognition first, and thus the amount of calculation for iris recognition is generally greater than that for face recognition. Therefore, the image can be rapidly processed through the face recognition technology to recognize whether the face exists in the image or not, when the face exists, the image possibly contains iris information, and then the iris information is recognized and the iris distance can be judged through the iris information; when no human face exists, the image does not contain the iris information, and the image can be directly acquired again without carrying out iris information recognition on the image, so that the unnecessary calculation amount of the processor 30 is reduced, and the working efficiency of the electronic device 100 is improved.
Referring to fig. 10, in some embodiments, step S334 includes the following steps:
s3342: the infrared light source 22 is controlled to emit infrared light at a third power, which is less than the second power and greater than the first power.
Referring again to fig. 2, in some embodiments, the processor 30 is configured to:
the infrared light source 22 is controlled to emit infrared light at a third power, which is less than the second power and greater than the first power.
That is, step S3342 may be implemented by the processor 30.
In this way, the infrared light source 22 can be controlled to emit infrared light at the third power to obtain a clearer image when a human face is present.
It can be understood that the identification of the iris information requires an image with relatively high definition, and the definition of the image is relatively low in the face identification. Therefore, the images acquired by the infrared light source 22 and the infrared camera 24 with the first power can be used for face recognition, after a face is recognized, since subsequent iris information recognition requires an image with higher definition, in order to improve iris information recognition efficiency, the power of the infrared light source 22 may be controlled to be adjusted to the third power, the image including the face is acquired again by the infrared light source 22 and the infrared camera 24 with the third power, and then iris information recognition is performed on the image.
It should be noted that the infrared light source 22 using the third power is used for improving the recognition efficiency, and in some embodiments, the infrared light source 22 using the first power can also recognize the iris information, and is not particularly limited herein. Further, the infrared light source 22 may be controlled to emit infrared light at the third power using the pulse signal described above. In one embodiment, the duty cycle of the pulse signal corresponding to the infrared light source 22 of the third power is 80%.
Referring to fig. 11, in some embodiments, the iris information includes information of an iris region, and the step S35 includes the steps of:
s352: judging whether the area of the iris area is larger than a first preset value and smaller than a second preset value;
s354: determining that the iris information meets a preset condition when the area of the iris area is larger than a first preset value and smaller than a second preset value; and
s356: and when the area of the iris area is less than or equal to a first preset value or greater than or equal to a second preset value, determining that the iris information does not meet the preset condition.
Referring again to fig. 2, in some embodiments, the iris information includes information of an iris region, and the processor 30 is configured to:
judging whether the area of the iris area is larger than a first preset value and smaller than a second preset value;
when the area of the iris area is larger than a first preset value and smaller than a second preset value, determining that the iris information meets a preset condition; and
and when the area of the iris area is less than or equal to a first preset value or greater than or equal to a second preset value, determining that the iris information does not meet the preset condition.
That is, steps S352, S354, and S356 may be implemented by the processor 30.
Therefore, whether the iris information meets the preset condition or not can be judged quickly and accurately according to the area of the iris area.
It is understood that a smaller iris area indicates that the iris is far from the electronic device 100, i.e., the iris distance is larger; when the iris area is relatively large, the iris is close to the electronic device 100, that is, the iris distance is relatively small, so that whether the iris distance is proper or not can be determined by judging the area of the iris area, and whether the iris information meets the preset condition or not is determined. Specifically, the first predetermined value is smaller than the second predetermined value, and when the area of the iris area is larger than the first predetermined value and smaller than the second predetermined value, the iris distance is determined to be appropriate, that is, the iris information is determined to meet the preset condition, and the obtained iris image texture information is clear and complete; when the area of the iris area is smaller than or equal to a first preset value, the iris distance is too small, namely the iris information is determined to be not in accordance with the preset condition, and the obtained iris image may be incomplete; when the area of the iris area is larger than or equal to the second preset value, the iris distance is too large, namely the iris information is determined to be not in accordance with the preset condition, and at the moment, the obtained texture information of the iris image is possibly fuzzy.
In some embodiments, the values of the first predetermined value and the second predetermined value may be obtained through experiments and preset in the electronic device 100 before the electronic device 100 is shipped from a factory, and different electronic devices 100 may have different first predetermined values and second predetermined values according to different imaging capabilities. The area of the iris region may refer to the area of pixels occupied by the iris region, and in one embodiment, when the area of pixels occupied by the iris region is 100 × 100, that is, when the iris region is formed of 10000 pixels, the corresponding iris distance is preferably set.
Referring to fig. 12, an electronic device 100 according to an embodiment of the invention includes an iris recognition module 20, one or more processors 30, a memory 70, and one or more programs. Where one or more programs are stored in the memory 70 and configured for execution by the one or more processors 30, the programs being for executing the instructions of the control method of any of the above embodiments of the invention.
As an example, the program may be instructions for executing the following control method:
s31: controlling the infrared light source 22 to emit infrared light at a first power;
s32: controlling the infrared camera 24 to collect images;
s33: processing the image to identify iris information; and
s35: and controlling the infrared light source 22 to emit infrared light at a second power when the iris information meets the preset condition, wherein the second power is greater than the first power.
Referring to fig. 13, a computer readable storage medium 800 according to an embodiment of the present invention includes a computer program for use with the electronic device 100, and the computer program is executable by the processor 30 to perform the control method according to any of the above embodiments of the present invention.
As one example, a computer program may be executed by the processor 30 to perform the following control method:
s31: controlling the infrared light source 22 to emit infrared light at a first power;
s32: controlling the infrared camera 24 to collect images;
s33: processing the image to identify iris information; and
s35: and controlling the infrared light source 22 to emit infrared light at a second power when the iris information meets the preset condition, wherein the second power is greater than the first power.
Note that the computer-readable storage medium 800 may be a storage medium built in the electronic apparatus 100, or may be a storage medium that can be inserted into and removed from the electronic apparatus 100.
In the description of the embodiments of the present invention, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the embodiments of the present invention, "a plurality" means two or more unless specifically limited otherwise.
In the description of the embodiments of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as being fixedly connected, detachably connected, or integrally connected; may be mechanically connected, may be electrically connected or may be in communication with each other; either directly or indirectly through intervening media, either internally or in any other relationship. Specific meanings of the above terms in the embodiments of the present invention can be understood by those of ordinary skill in the art according to specific situations.
In the description herein, references to the description of the terms "one embodiment," "some embodiments," "an illustrative embodiment," "an example," "a specific example" or "some examples" or the like mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, such as an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processing module-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of embodiments of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made in the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (19)

1. A control method is used for an electronic device, and is characterized in that the electronic device comprises an iris recognition module, the iris recognition module comprises an infrared light source and an infrared camera, and the control method comprises the following steps:
controlling the infrared light source to emit infrared light at a first power;
controlling the infrared camera to acquire a gray level image;
processing the image to identify iris information; and
returning to the step of controlling the infrared light source to emit infrared light at a first power when the iris information does not meet the preset condition;
when the iris information meets a preset condition, controlling the infrared light source to emit infrared light at a second power, wherein the second power is greater than the first power;
the iris information comprises iris distance, iris position and/or area information of an iris area, the iris distance refers to the distance from the iris area of the user to the electronic device, and the preset conditions comprise that: the iris distance is greater than a first preset iris distance and less than a second preset iris distance, and/or the area information of the iris area is greater than a first preset value and less than a second preset value.
2. The control method according to claim 1, characterized by comprising the steps of:
judging whether an iris identification request is received or not;
entering the step of controlling the infrared light source to emit infrared light at a first power upon receiving the iris recognition request; and
and returning to the step of judging whether the iris identification request is received or not when the iris identification request is not received.
3. The control method according to claim 2, wherein the electronic device includes an acceleration sensor, and the step of determining whether the iris recognition request is received includes the steps of:
processing an output signal of the acceleration sensor to determine whether the electronic device is operating in a predetermined manner; and
determining that the iris recognition request is received while the electronic device is operating in a predetermined manner.
4. The control method of claim 1, wherein the electronic device comprises a housing comprising a front surface, and wherein the iris recognition module is disposed within the housing and exposed from the front surface.
5. The control method of claim 1, wherein an illumination range of the infrared light source and a field of view of the infrared camera at least partially overlap.
6. The control method of claim 1, wherein the step of controlling the infrared light source to emit infrared light at a first power comprises the steps of:
controlling the infrared light source to emit infrared light at a first power with a pulse signal of a first duty ratio;
the step of controlling the infrared light source to emit infrared light at a second power comprises the steps of:
and controlling the infrared light source to emit infrared light at a second power by using a pulse signal with a second duty ratio, wherein the second duty ratio is larger than the first duty ratio.
7. The control method of claim 1, wherein the step of processing the image to identify iris information comprises the steps of:
processing the image to identify whether a face is present;
identifying the iris information when the face exists; and
and returning to the step of controlling the infrared light source to emit infrared light at a first power when the human face does not exist.
8. The control method of claim 7, wherein the step of recognizing the iris information when the face exists comprises the steps of:
controlling the infrared light source to emit infrared light at a third power, the third power being less than the second power and greater than the first power.
9. An electronic device, comprising:
the iris identification module comprises an infrared light source and an infrared camera; and
a processor to:
controlling the infrared light source to emit infrared light at a first power;
controlling the infrared camera to acquire a gray level image;
processing the image to identify iris information; and
returning to the step of controlling the infrared light source to emit infrared light at a first power when the iris information does not meet the preset condition;
when the iris information meets a preset condition, controlling the infrared light source to emit infrared light at a second power, wherein the second power is greater than the first power;
the iris information comprises iris distance, iris position and/or area information of an iris area, the iris distance refers to the distance from the iris area of the user to the electronic device, and the preset conditions comprise that: the iris distance is greater than a first preset iris distance and less than a second preset iris distance, and/or the area information of the iris area is greater than a first preset value and less than a second preset value.
10. The electronic device of claim 9, wherein the processor is to:
judging whether an iris identification request is received or not;
entering the step of controlling the infrared light source to emit infrared light at a first power upon receiving the iris recognition request; and
and returning to the step of judging whether the iris identification request is received or not when the iris identification request is not received.
11. The electronic device of claim 10, wherein the electronic device comprises an acceleration sensor, the processor to:
processing an output signal of the acceleration sensor to determine whether the electronic device is operating in a predetermined manner; and
determining that the iris recognition request is received while the electronic device is operating in a predetermined manner.
12. The electronic device of claim 9, wherein the electronic device comprises a housing comprising a front surface, the iris recognition module being disposed within the housing and exposed from the front surface.
13. The electronic device of claim 9, wherein an illumination range of the infrared light source and a field of view of the infrared camera at least partially overlap.
14. The electronic device of claim 9, wherein the processor is to:
controlling the infrared light source to emit infrared light at a first power with a pulse signal of a first duty ratio;
and controlling the infrared light source to emit infrared light at a second power by using a pulse signal with a second duty ratio, wherein the second duty ratio is larger than the first duty ratio.
15. The electronic device of claim 9, wherein the processor is to:
processing the image to identify whether a face is present;
identifying the iris information when the face exists; and
and returning to the step of controlling the infrared light source to emit infrared light at a first power when the human face does not exist.
16. The electronic device of claim 15, wherein the processor is to:
controlling the infrared light source to emit infrared light at a third power, the third power being less than the second power and greater than the first power.
17. An electronic device, comprising:
an iris recognition module;
one or more processors;
a memory; and
one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, for executing the instructions of the control method of any one of claims 1-8.
18. A computer-readable storage medium, comprising a computer program for use in conjunction with an electronic device, the computer program being executable by a processor to perform the control method of any one of claims 1-8.
19. An electronic device, comprising:
the infrared camera is used for acquiring an iris image;
the infrared light source is used for emitting infrared light with first power to supplement light for the infrared camera; and
a processor to:
processing the iris image to identify iris information, and returning the iris image to the infrared light source to supplement light for the infrared camera by transmitting infrared light at a first power when the iris information does not meet a preset condition;
when the iris information reaches a preset condition, driving the infrared light source to emit infrared light at a second power larger than the first power so as to perform iris recognition;
the iris information comprises iris distance, iris position and/or area information of an iris area, the iris distance refers to the distance from the iris area of the user to the electronic device, and the preset conditions comprise that: the iris distance is greater than a first preset iris distance and less than a second preset iris distance, and/or the area information of the iris area is greater than a first preset value and less than a second preset value.
CN201710527792.1A 2017-06-30 2017-06-30 Control method, electronic device, and computer-readable storage medium Active CN107341469B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710527792.1A CN107341469B (en) 2017-06-30 2017-06-30 Control method, electronic device, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710527792.1A CN107341469B (en) 2017-06-30 2017-06-30 Control method, electronic device, and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN107341469A CN107341469A (en) 2017-11-10
CN107341469B true CN107341469B (en) 2022-06-14

Family

ID=60219468

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710527792.1A Active CN107341469B (en) 2017-06-30 2017-06-30 Control method, electronic device, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN107341469B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108171227A (en) * 2017-12-13 2018-06-15 广东欧珀移动通信有限公司 For the solution lock set and electronic device of electronic device
CN108764044A (en) * 2018-04-25 2018-11-06 维沃移动通信有限公司 A kind of light compensation method, device and mobile terminal
CN110717463A (en) * 2019-10-12 2020-01-21 深圳芯启航科技有限公司 Non-contact type biological identification method and device
CN112784681A (en) * 2020-12-24 2021-05-11 深兰盛视科技(苏州)有限公司 Hand pulse input method, device, equipment and computer readable storage medium
CN114187647A (en) * 2021-12-10 2022-03-15 深圳爱酷智能科技有限公司 Drug-taking detection method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101051349A (en) * 2007-05-18 2007-10-10 北京中科虹霸科技有限公司 Multiple iris collecting device using active vision feedback
CN104850823A (en) * 2015-03-26 2015-08-19 浪潮软件集团有限公司 Quality evaluation method and device for iris image
CN205213119U (en) * 2015-12-03 2016-05-04 上海与德通讯技术有限公司 Can be used to infrared lamp driving circuit that iris discernment light filling and feeling of distance were answered
CN105608436A (en) * 2015-12-23 2016-05-25 联想(北京)有限公司 Power consumption control method and electronic device
CN105681557A (en) * 2016-01-15 2016-06-15 广东欧珀移动通信有限公司 Method and device for controlling infrared proximity sensor
CN105760739A (en) * 2016-04-22 2016-07-13 上海与德通讯技术有限公司 Iris-recognition-based unlocking method and system thereof

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105723697B8 (en) * 2013-09-16 2020-10-13 英特尔公司 Method, apparatus, device and storage medium for camera and light source synchronization
EP3087533A4 (en) * 2013-12-23 2017-09-20 Eyelock Llc Methods and apparatus for power-efficient iris recognition
US10262203B2 (en) * 2014-09-02 2019-04-16 Samsung Electronics Co., Ltd. Method for recognizing iris and electronic device therefor
CN104933419B (en) * 2015-06-30 2019-05-21 小米科技有限责任公司 The method, apparatus and red film for obtaining iris image identify equipment
CN105426874A (en) * 2015-12-18 2016-03-23 深圳前海达闼云端智能科技有限公司 Processing method and device for iris identification
CN105654040B (en) * 2015-12-24 2020-01-03 华为技术有限公司 Distance measurement method based on iris and mobile terminal
CN106022275A (en) * 2016-05-26 2016-10-12 青岛海信移动通信技术股份有限公司 Iris recognition method and apparatus, and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101051349A (en) * 2007-05-18 2007-10-10 北京中科虹霸科技有限公司 Multiple iris collecting device using active vision feedback
CN104850823A (en) * 2015-03-26 2015-08-19 浪潮软件集团有限公司 Quality evaluation method and device for iris image
CN205213119U (en) * 2015-12-03 2016-05-04 上海与德通讯技术有限公司 Can be used to infrared lamp driving circuit that iris discernment light filling and feeling of distance were answered
CN105608436A (en) * 2015-12-23 2016-05-25 联想(北京)有限公司 Power consumption control method and electronic device
CN105681557A (en) * 2016-01-15 2016-06-15 广东欧珀移动通信有限公司 Method and device for controlling infrared proximity sensor
CN105760739A (en) * 2016-04-22 2016-07-13 上海与德通讯技术有限公司 Iris-recognition-based unlocking method and system thereof

Also Published As

Publication number Publication date
CN107341469A (en) 2017-11-10

Similar Documents

Publication Publication Date Title
CN107341469B (en) Control method, electronic device, and computer-readable storage medium
US8797385B2 (en) Robot device and method of controlling robot device
TWI699707B (en) Method for controlling structured light projector, depth camera and electronic device
EP3042312B1 (en) Low power eye tracking system and method
US8285054B2 (en) Information processing apparatus and information processing method
CN110308458B (en) Adjusting method, adjusting device, terminal and computer readable storage medium
CN107358175B (en) Iris collection method and electronic device
CN110198409B (en) Terminal control method and control device, terminal and computer readable storage medium
CN107451530B (en) Control method of infrared light source assembly and electronic device
JP2021501517A (en) Systems and methods for improving the signal-to-noise ratio in object tracking under low illumination conditions
EP3623988A1 (en) Control method, electronic device and computer-readable storage medium
CN113132613A (en) Camera light supplementing device, electronic equipment and light supplementing method
WO2019001227A1 (en) Control method, electronic device, and computer readable storage medium
CN107451533B (en) Control method, control device, electronic device, and computer-readable storage medium
CN111214205B (en) Controlling the light emitter to obtain an optimal flash
CN107241193B (en) Authentication method, electronic device, and computer-readable storage medium
CN108629745B (en) Image processing method and device based on structured light and mobile terminal
CN107341466B (en) Control method, electronic device, and computer-readable storage medium
CN111182287A (en) Transmission module, imaging device and electronic device
US11570370B2 (en) Method and system for controlling an eye tracking system
CN112101065A (en) Laser-based eyeball tracking method and terminal equipment
CN113128270B (en) Iris recognition device, method and equipment
EP3709628B1 (en) Control of an illuminator
JP2008204126A (en) Face discriminating apparatus and method, and program
CN113792582A (en) Infrared light source driving method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant