CN108989710B - Infrared supplementary lighting module failure detection method, terminal device and computer readable storage medium - Google Patents

Infrared supplementary lighting module failure detection method, terminal device and computer readable storage medium Download PDF

Info

Publication number
CN108989710B
CN108989710B CN201810779025.4A CN201810779025A CN108989710B CN 108989710 B CN108989710 B CN 108989710B CN 201810779025 A CN201810779025 A CN 201810779025A CN 108989710 B CN108989710 B CN 108989710B
Authority
CN
China
Prior art keywords
image
current
module
lamp
infrared camera
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
CN201810779025.4A
Other languages
Chinese (zh)
Other versions
CN108989710A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810779025.4A priority Critical patent/CN108989710B/en
Publication of CN108989710A publication Critical patent/CN108989710A/en
Application granted granted Critical
Publication of CN108989710B publication Critical patent/CN108989710B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/30Transforming light or analogous information into electric information
    • H04N5/33Transforming infrared radiation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/56Cameras or camera modules comprising electronic image sensors; Control thereof provided with illuminating means
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/74Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Telephone Function (AREA)
  • Studio Devices (AREA)

Abstract

The invention provides a failure detection method of an infrared light supplement module and terminal equipment. The method comprises the following steps: when a terminal unlocking operation input by a user is detected, a first current is introduced to start the light supplement lamp, and a first image collected by the infrared camera is acquired, wherein the infrared camera is used for executing the terminal unlocking operation; judging whether the lampshade is invalid or not according to the brightness information of the first image; under the condition that the lampshade does not fail, increasing the starting current of the light supplement lamp from the first current to a second current, and acquiring a second image acquired by the infrared camera; and when the brightness value of the second image is lower than a first brightness threshold value, determining that the supplementary lighting lamp is invalid. The invention can detect whether the lampshade or the light supplement lamp is invalid or not, and can reduce the damage of infrared light to human eyes as much as possible in the detection process through the control of current, thereby improving the use experience of users.

Description

Infrared supplementary lighting module failure detection method, terminal device and computer readable storage medium
Technical Field
The invention relates to the technical field of communication, in particular to a method for detecting failure of an infrared supplementary lighting module and terminal equipment.
Background
With the rapid development of mobile terminals, mobile terminals have become an essential tool in people's life, and bring great convenience to various aspects of users' life.
At present, the popularity of mobile terminals unlocked by using a front camera is higher and higher, and in order to compensate for the success rate, recognition safety, power consumption consideration, experience optimization and the like of unlocking the front camera at night or in a low-light environment, more and more mobile terminals usually adopt an infrared camera to acquire a face image of a user and unlock the face image. However, infrared camera need adopt infrared light filling lamp to carry out the light filling, adopts the scheme of infrared light filling lamp light filling, in order to make the even diffusion of light, can add the lamp shade in the top of infrared light filling lamp, can make the even diffusion of light that infrared light filling lamp sent.
When adopting infrared light filling lamp to mend the light to infrared camera, because infrared light is heat radiation light, and infrared light is invisible to people's eye, if infrared light filling lamp and lamp shade break down can produce following problem:
1. due to the fact that the infrared lamp or the lampshade fails, the infrared camera is poor in image collection effect at night, unlocking success rate is low, and use experience of a user is affected;
2. if the lamp shade is in failure, the power of the infrared light supplement lamp for supplementing light is higher, the infrared light is thermal radiation light, the infrared light is concentrated to improve the instantaneous power, certain damage can be caused to eyes of a user in the long-time use process, and especially when the infrared light supplement lamp is set to be laser, the single-point energy of the infrared light supplement lamp is very high, and the damage to the eyes of the user is larger;
however, due to the invisibility of the infrared light, the user is difficult to find the condition that the infrared fill light fails or the lampshade fails.
Disclosure of Invention
The embodiment of the invention provides an infrared light supplement module failure detection method and terminal equipment, and aims to solve the problems that in the prior art, failure of an infrared light supplement lamp or a lampshade is difficult to find, potential safety hazards exist for users, and user experience is poor.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for detecting failure of an infrared light supplement module, which is applied to a terminal device, where the terminal device includes an infrared camera and the infrared light supplement module, where the infrared light supplement module includes a light supplement lamp and a lamp cover, and the method includes: when a terminal unlocking operation input by a user is detected, a first current is introduced to start the light supplement lamp, and a first image collected by the infrared camera is acquired, wherein the infrared camera is used for executing the terminal unlocking operation; judging whether the lampshade is invalid or not according to the brightness information of the first image; under the condition that the lampshade does not fail, increasing the starting current of the light supplement lamp from the first current to a second current, and acquiring a second image acquired by the infrared camera; and when the brightness value of the second image is lower than a first brightness threshold value, determining that the supplementary lighting lamp is invalid.
In a second aspect, an embodiment of the present invention further provides a terminal device, where the terminal device includes an infrared camera and an infrared light supplement module, where the infrared light supplement module includes a light supplement lamp and a lamp cover, and the terminal device includes: the first image acquisition module is used for introducing a first current to start the light supplement lamp and acquiring a first image acquired by the infrared camera when detecting a terminal unlocking operation input by a user, wherein the infrared camera is used for executing the terminal unlocking operation; the lampshade failure judging module is used for judging whether the lampshade fails or not according to the brightness information of the first image; the second image acquisition module is used for increasing the starting current of the light supplement lamp from the first current to a second current and acquiring a second image acquired by the infrared camera under the condition that the lampshade does not fail; and the supplementary lighting lamp failure determining module is used for determining that the supplementary lighting lamp fails when the brightness value of the second image is lower than a first brightness threshold value.
In a third aspect, an embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements the steps of the method for detecting a failure of an infrared supplementary lighting module according to any one of the above descriptions.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for detecting a failure of an infrared supplementary lighting module are implemented as in any one of the above.
In the embodiment of the invention, when the terminal unlocking operation input by a user is detected, a first current is introduced to start a light supplement lamp, and a first image collected by an infrared camera is obtained, wherein the terminal unlocking operation is executed by the infrared camera, whether the lampshade fails or not is judged according to the brightness information of the first image, the starting current of the light supplement lamp is increased from the first current to a second current under the condition that the lampshade does not fail, a second image collected by the infrared camera is obtained, and when the brightness value of the second image is lower than a first brightness threshold value, the failure of the light supplement lamp can be determined. The problem of potential safety hazard exists for the user, and the use experience of the user is further improved.
Drawings
Fig. 1 is a flowchart illustrating steps of a method for detecting failure of an infrared light supplement module according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating steps of a method for detecting failure of an infrared light supplement module according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 5 is a block diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, a flow chart showing steps of a method for detecting failure of an infrared light supplement module according to an embodiment of the present invention is shown, where the method for detecting failure of an infrared light supplement module can be applied to a terminal device, and the terminal device can include an infrared camera and an infrared light supplement module, where the infrared light supplement module includes a light supplement lamp and a lamp cover, and the method specifically includes the following steps:
step 101: when the terminal unlocking operation input by a user is detected, a first current is introduced to start the light supplement lamp, and a first image collected by the infrared camera is acquired.
In the embodiment of the present invention, the terminal device may be a mobile phone, a PAD, a notebook computer, and the like, and the terminal device may include an infrared camera and an infrared light supplement module, and the infrared light supplement module may include a light supplement lamp and a lamp cover.
The terminal unlocking operation is executed by the infrared camera, the terminal unlocking operation input by the user can be that when the user clicks an application program icon on a desktop, a preset verification mode is displayed on an interface, the user selects operations such as 'face verification' and the like, for example, when the user clicks a payment application program icon to log in a payment application program, the user is required to verify, and the verification mode can comprise the following steps: password verification, fingerprint verification, face/eye recognition and the like, and when the user selects the face recognition, the face recognition is the terminal unlocking operation input by the user.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present invention, and are not to be construed as the only limitations of the present invention.
The first current is safe for human eyes. A person skilled in the art may set the specific value of the first current according to practical situations, and the embodiment of the present invention is not limited thereto.
The first image is an image collected by an infrared camera in the terminal unlocking process, and can be a human face image, a human eye image and the like.
The system is provided with a monitoring program in advance, so that terminal unlocking operation input by a user can be monitored in real time, namely, the monitoring program can be triggered when the user clicks options such as 'face recognition' on a mobile terminal interface, when the terminal unlocking operation input by the user is detected, a first current safe to eyes can be introduced to start a light supplement lamp, and then a first image collected by an infrared camera is obtained.
After acquiring the first image acquired by the infrared camera, step 102 is executed.
Step 102: and judging whether the lampshade is invalid or not according to the brightness information of the first image.
After the first image is acquired, whether the lampshade is out of order may be determined according to the brightness information of the first image, for example, the brightness value of the brightest area in the first image may be compared with the brightness values of the other areas of the first image, and whether the lampshade is out of order may be determined according to the comparison result.
Specifically, the process of determining whether the lamp shade is failed according to the brightness information of the first image will be described in detail in the following embodiment two, which is not repeated herein.
Under the condition that the lamp shade is invalid, prompt information that the lamp shade is invalid can be sent to the user to the suggestion user overhauls the lamp shade in time. In case the globe has not failed, i.e. the globe has not failed, step 103 is executed.
Step 103: and increasing the starting current of the light supplement lamp from the first current to a second current, and acquiring a second image acquired by the infrared camera.
Under the condition that the lampshade is determined not to be invalid, the current for starting the light supplement lamp is increased to the second current from the first current, and then when the infrared camera collects images, high-quality images can be collected.
In a specific implementation, the magnitude of the second current may be set according to actual needs, which is not limited in the embodiment of the present invention.
The second image is a high-quality image collected by the infrared camera in the unlocking process of the infrared camera, and can be a human face image, a human eye image and the like.
And after the starting current of the light supplement lamp is increased from the first current to the second current, acquiring a second image acquired by the infrared camera, and executing step 104.
Step 104: and when the brightness value of the second image is lower than a first brightness threshold value, determining that the supplementary lighting lamp is invalid.
The first brightness threshold is a preset brightness threshold, and the size of the first brightness threshold is related to factors such as the current used for turning on the fill light, the resolution of the infrared camera, and the like.
The brightness value of the second image may be compared with the first brightness threshold, and when the brightness value of the second image is greater than or equal to the first brightness threshold, it indicates that the light supplement lamp is not failed, that is, the light supplement lamp is not failed, and a matching process between the second image and the pre-stored unlock image is performed.
When the brightness value of the second image is lower than the first brightness threshold value, the light supplement lamp is failed, namely the light supplement lamp fails, prompt information that the light supplement lamp fails can be sent to a user, the user is reminded that the light supplement lamp fails, and the user can timely overhaul the light supplement lamp.
The method for detecting the failure of the infrared light supplement module provided by the embodiment of the invention comprises the steps of turning on a light supplement lamp by introducing a first current when detecting a terminal unlocking operation input by a user, and acquiring a first image acquired by an infrared camera, wherein the terminal unlocking operation is executed by the infrared camera, judging whether a lampshade fails according to brightness information of the first image, increasing the turning-on current of the light supplement lamp from the first current to a second current under the condition that the lampshade does not fail, acquiring a second image acquired by the infrared camera, and determining that the light supplement lamp fails when the brightness value of the second image is lower than a first brightness threshold value. The problem of potential safety hazard exists for the user, and the use experience of the user is further improved.
Example two
Referring to fig. 2, a flow chart showing steps of a method for detecting failure of an infrared light supplement module according to an embodiment of the present invention is shown, where the method for detecting failure of an infrared light supplement module can be applied to a terminal device, and the terminal device can include an infrared camera and an infrared light supplement module, where the infrared light supplement module includes a light supplement lamp and a lamp cover, and the method specifically includes the following steps:
step 201: and when the terminal unlocking operation is detected, acquiring a third image acquired by the infrared camera.
In the embodiment of the present invention, the terminal device may be a mobile phone, a PAD, a notebook computer, and the like, and the terminal device may include an infrared camera and an infrared light supplement module, and the infrared light supplement module may include a light supplement lamp and a lamp cover.
The terminal unlocking operation is executed by the infrared camera, the terminal unlocking operation input by the user can be that when the user clicks an application program icon on a desktop, a preset verification mode is displayed on an interface, the user selects operations such as 'face verification' and the like, for example, when the user clicks a payment application program icon to log in a payment application program, the user is required to verify, and the verification mode can comprise the following steps: password verification, fingerprint verification, face/eye recognition and the like, and when the user selects the face recognition, the terminal unlocking operation executed by the infrared camera is the user.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present invention, and are not to be construed as the only limitations of the present invention.
When gathering the image by infrared camera for the first time, when infrared camera gathered the third image promptly, whether for the detection has the highlight interference, under the condition of not opening the light filling lamp, directly gather the third image by infrared camera.
Step 202: and matching the third image with a pre-stored unlocking image under the condition that the third image comprises at least one first target area.
The first target region is a region in which the luminance value of the region is greater than a preset second luminance threshold.
When the third image comprises at least one first target area, it is indicated that a strong light area exists in the third image, which indicates that strong light interference exists in the process of acquiring the third image by the user using the infrared camera.
The pre-stored unlocking image may be a face image of the user or a human eye image of the user, which is not limited in the present invention.
After the user presets an unlocking image (such as a face image) and the like, a corresponding unlocking mode is displayed when the user logs in a designated application program or a system interface, for example, after the user sets a face recognition image for a payment application program, a selection item of 'face verification' or 'face brushing login' is displayed when a subsequent user logs in the payment application program.
After a third image acquired by the infrared camera is acquired, when the third image comprises at least one first target area, the fact that a highlight area exists in the third image is indicated, matching of the third image and a prestored unlocking image is executed, and when matching is successful, unlocking is successful, a corresponding application program is directly accessed or a system interface is logged in, and the like.
When the third image does not match the pre-stored unlock image, step 203 is executed.
Step 203: and when the matching fails, sending prompt information for avoiding the strong light interference to the user.
Under the condition that the third image is not matched with the prestored unlocking image, prompt information of existence of strong light interference can be sent to the user to prompt the user to avoid the strong light interference in the unlocking process.
When the user avoids the strong light interference and uses the infrared camera again for unlocking, it may be determined again whether the first target region exists in the acquired third image, until the first target region is not included in the third image acquired by the infrared camera, that is, when the strong light interference does not exist, step 205 is executed.
Step 204: and under the condition that the third image does not comprise the first target area, a first current is introduced to start the light supplement lamp, and a first image collected by the infrared camera is obtained.
The first current is safe for human eyes. A person skilled in the art may set the specific value of the first current according to practical situations, and the embodiment of the present invention is not limited thereto. The first image is an image collected by the infrared camera in the unlocking process of the infrared camera, and can be a human face image, a human eye image and the like.
When the terminal unlocking operation input by the user is performed by the infrared camera, the light supplement lamp can be started through the first current which is safer for the human eyes of the user under the condition that no strong light interference exists, so that the first image collected by the infrared camera is obtained.
After a preferred embodiment of the present invention, after the step 201, the method may further include:
step S: and under the condition that the third image does not comprise the first target area, the first current is introduced to turn on the light supplement lamp.
In the embodiment of the present invention, when the third image does not include the first target region, indicating that there is no strong light interference, the first current may be turned on to turn on the fill light.
After the first current is applied to turn on the fill light, step 205 is performed.
Step 205: and judging whether a second target area exists in the first image.
The second target area is an area in which a difference between the brightness value of the area in the first image and the brightness value of the other area in the first image is larger than a set difference.
In practical applications, a person skilled in the art may set the specific value of the set difference according to actual needs, and the embodiment of the present invention is not limited thereto.
If the second target area does not exist in the first image, i.e. the lamp shade does not fail, step 207 is executed, and if the second target area exists in the first image, step 206 is executed.
Step 206: determining that the lamp shade is failed.
Under the condition that the second target area exists in the first image, the lamp shade can be determined to be invalid, and prompt information for overhauling the lamp shade can be sent to a user to prompt the user that the lamp shade fails and the lamp shade is overhauled in time.
Step 207: and increasing the starting current of the light supplement lamp from the first current to a second current, and acquiring a second image acquired by the infrared camera.
Under the condition that the lampshade is determined not to be invalid, the current for opening the light supplement lamp can be increased to the second current from the first current, and then when the infrared camera collects images, high-quality images can be collected.
In a specific implementation, the magnitude of the second current may be set according to actual needs, which is not limited in the embodiment of the present invention.
The second image is a high-quality image collected by the infrared camera in the unlocking process of the infrared camera, and can be a human face image, a human eye image and the like.
After the turn-on current of the fill light is increased from the first current to the second current, the second current may be switched on and a second image acquired by the infrared camera may be acquired, and step 208 is performed.
Step 208: and matching the second image with a pre-stored unlocking image.
After the second image is acquired, the second image can be matched with a pre-stored unlocking image, and when the second image is successfully matched with the pre-stored unlocking image, the unlocking is successful, and the second image can be directly logged in a system interface or a corresponding application program interface.
When the matching fails, step 209 is performed.
Step 209: and judging whether the brightness value of the second image is lower than the first brightness threshold value.
When the second image fails to be matched with the pre-stored unlocking image, the light supplement lamp may be in a problem, and the current unlocking user may not be the user with the pre-stored unlocking image.
The first brightness threshold is a preset brightness threshold, and the size of the first brightness threshold is related to factors such as the current used for turning on the fill light, the resolution of the infrared camera, and the like.
Under the condition that the brightness value of the second image is not lower than the first brightness threshold, it can be determined that the fill-in light is not failed, and the reason for the failed matching may be that the collected second image of the current unlocking user is not a pre-stored unlocking image, or may be caused by other reasons, such as dark current light, and the like, and prompt information of re-unlocking or replacing the unlocking mode can be sent to the user to prompt the user to re-unlock, or replace other unlocking modes to unlock.
The brightness value of the second image may be compared with the first brightness threshold, and when the brightness value of the second image is greater than or equal to the first brightness threshold, it indicates that the fill-in lamp is not failed, that is, the fill-in lamp is not failed, step 210 is executed.
When the brightness value of the second image is lower than the first brightness threshold, step 210 is performed.
Step 210: and determining that the supplementary lighting lamp is invalid.
When the brightness value of the second image is lower than the first brightness threshold, the supplementary lighting lamp is failed, that is, the supplementary lighting lamp fails.
Under the condition that the light supplement lamp is determined to be invalid, prompt information of the light supplement lamp being invalid can be sent to a user to prompt the user that the light supplement lamp is invalid, and the user can timely overhaul the light supplement lamp.
The method for detecting the failure of the infrared light supplement module provided by the embodiment of the invention has the beneficial effects that the method for detecting the failure of the infrared light supplement module has in the first embodiment, the current for starting the light supplement lamp can be controlled in the detection process, the damage of the failure of the lampshade to the eyes of a user is avoided, and the method can also send the prompt information of maintenance to the user in time when the lampshade or the light supplement lamp fails so as to prompt the user of the information that the lampshade or the light supplement lamp fails and prompt the user of timely maintenance, thereby further improving the use experience of the user.
EXAMPLE III
Referring to fig. 3, which shows a schematic structural diagram of a terminal device according to an embodiment of the present invention, the terminal device includes an infrared camera and an infrared light supplement module, where the infrared light supplement module includes a light supplement lamp and a lamp cover, and the terminal device may specifically include:
the first image acquisition module 301 is configured to, when a terminal unlocking operation input by a user is detected, energize a first current to turn on the light supplement lamp, and acquire a first image acquired by the infrared camera, where the infrared camera is used to execute the terminal unlocking operation; a lampshade failure judging module 302, configured to judge whether the lampshade fails according to the brightness information of the first image; the second image acquisition module 303 is configured to increase a starting current of the light supplement lamp from the first current to a second current and acquire a second image acquired by the infrared camera under the condition that the lamp shade is not in failure; a fill-in light failure determining module 304, configured to determine that the fill-in light is failed when the brightness value of the second image is lower than a first brightness threshold.
The terminal device provided by the embodiment of the invention is characterized in that when the terminal unlocking operation input by a user is detected, a first current is introduced to turn on the light supplement lamp, and a first image collected by the infrared camera is obtained, the terminal unlocking operation is executed by the infrared camera, whether the lampshade fails or not is judged according to the brightness information of the first image, the turning-on current of the light supplement lamp is increased from the first current to a second current under the condition that the lampshade does not fail, a second image collected by the infrared camera is obtained, and when the brightness value of the second image is lower than a first brightness threshold value, the failure of the light supplement lamp can be determined. The problem of potential safety hazard exists for the user, and the use experience of the user is further improved.
Example four
Referring to fig. 4, a schematic structural diagram of a terminal device according to an embodiment of the present invention is shown, where the terminal device includes an infrared camera and an infrared light supplement module, where the infrared light supplement module includes a light supplement lamp and a lamp cover, and the terminal device may include:
a third image obtaining module 401, configured to obtain a third image acquired by the infrared camera when the terminal unlocking operation is detected; a third image matching module 402, configured to match the third image with a pre-stored unlock image when the third image includes at least one first target region, where the first target region is a region whose luminance value is greater than a second luminance threshold; an avoidance highlight prompting module 403, configured to send a prompt message for avoiding highlight interference to a user when matching fails; a first image obtaining module 404, configured to switch on the light supplement lamp by applying a first current, and obtain a first image acquired by the infrared camera; a lampshade failure judging module 405, configured to judge whether the lampshade fails according to the brightness information of the first image; the second image acquisition module 406 is configured to increase a starting current of the light supplement lamp from the first current to a second current and acquire a second image acquired by the infrared camera under the condition that the lamp shade is not in failure; a second image matching module 407, configured to match the second image with a pre-stored unlock image; a brightness value determining module 408, configured to determine whether a brightness value of the second image is lower than the first brightness threshold when matching fails; and a supplementary lighting lamp failure determining module 409, configured to determine that the supplementary lighting lamp fails when the brightness value of the second image is lower than a first brightness threshold.
Preferably, the method further comprises the following steps: and a light supplement lamp starting module for turning on the light supplement lamp by introducing the first current under the condition that the third image does not include the first target area.
Preferably, the lampshade failure determination module 405 includes: a second target area determination submodule 4501 configured to determine whether a second target area exists in the first image; the difference value between the brightness value of the second target area and the brightness value of other areas in the first image is larger than a set difference value; a mask failure determination sub-module 4502 is configured to determine that the mask has failed if the second target region is present in the first image.
The terminal device provided by the embodiment of the invention not only has the beneficial effects of the terminal device shown in the first embodiment, but also can control the current for starting the light supplement lamp in the detection process, so that the damage to eyes of a user caused by the failure of the lampshade is avoided, and in addition, the terminal device can timely send the maintenance prompt information to the user when the lampshade or the light supplement lamp fails so as to prompt the user of the information that the lampshade or the light supplement lamp fails and prompt the user of timely maintenance, so that the use experience of the user is further improved.
EXAMPLE five
Referring to fig. 5, a hardware structure diagram of a mobile terminal for implementing various embodiments of the present invention is shown.
The mobile terminal 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 5 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 510 is configured to, when the user input unit 507 detects a terminal unlocking operation input by a user, energize a first current to turn on the light supplement lamp, and acquire a first image acquired by the infrared camera, where the infrared camera is configured to execute the terminal unlocking operation; judging whether the lampshade is invalid or not according to the brightness information of the first image; under the condition that the lampshade does not fail, increasing the starting current of the light supplement lamp from the first current to a second current, and acquiring a second image acquired by the infrared camera; and when the brightness value of the second image is lower than a first brightness threshold value, determining that the supplementary lighting lamp is invalid.
In the embodiment of the invention, when the terminal unlocking operation input by a user is detected, a first current is introduced to start the light supplement lamp, and a first image collected by the infrared camera is obtained, the terminal unlocking operation is executed by the infrared camera, whether the lampshade fails or not is judged according to the brightness information of the first image, the starting current of the light supplement lamp is increased from the first current to a second current under the condition that the lampshade does not fail, a second image collected by the infrared camera is obtained, and when the brightness value of the second image is lower than a first brightness threshold value, the failure of the light supplement lamp can be determined. The problem of potential safety hazard exists for the user, and the use experience of the user is further improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 502, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the mobile terminal 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The mobile terminal 500 also includes at least one sensor 505, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 5061 and/or a backlight when the mobile terminal 500 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 508 is an interface through which an external device is connected to the mobile terminal 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 500 or may be used to transmit data between the mobile terminal 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 510 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the mobile terminal. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The mobile terminal 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, the mobile terminal 500 includes some functional modules that are not shown, and thus, are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 510, a memory 509, and a computer program that is stored in the memory 509 and can be run on the processor 510, and when the computer program is executed by the processor 510, the processes of the foregoing embodiment of the method for detecting a failure of an infrared light supplement module are implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the foregoing infrared supplementary lighting module failure detection method embodiment, and can achieve the same technical effect, and is not described herein again to avoid repetition. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. The utility model provides an infrared light filling module failure detection method, is applied to terminal equipment, terminal equipment includes infrared camera and infrared light filling module, wherein, infrared light filling module includes light filling lamp and lamp shade, its characterized in that, the method includes:
when a terminal unlocking operation input by a user is detected, a first current is introduced to start the light supplement lamp, and a first image collected by the infrared camera is acquired, wherein the infrared camera is used for executing the terminal unlocking operation;
judging whether the lampshade is invalid or not according to the brightness information of the first image;
under the condition that the lampshade does not fail, increasing the starting current of the light supplement lamp from the first current to a second current, and acquiring a second image acquired by the infrared camera;
and when the brightness value of the second image is lower than a first brightness threshold value, determining that the supplementary lighting lamp is invalid.
2. The method of claim 1, further comprising, before the step of turning on the fill light with the first current, the step of:
when the terminal unlocking operation is detected, acquiring a third image acquired by the infrared camera;
under the condition that the third image comprises at least one first target area, matching the third image with a pre-stored unlocking image, wherein the first target area is an area with a brightness value larger than a second brightness threshold value;
when the matching fails, sending prompt information for avoiding strong light interference to a user;
and under the condition that the third image does not comprise the first target area, the first current is introduced to turn on the light supplement lamp.
3. The method of claim 1, wherein the step of determining whether the lamp shade is failed according to the brightness information of the first image comprises:
judging whether a second target area exists in the first image or not; the difference value between the brightness value of the second target area and the brightness value of other areas in the first image is larger than a set difference value;
determining that the lamp shade is failed in the case where the second target area exists in the first image.
4. The method of claim 1, further comprising, before the step of determining that the fill light is disabled when the brightness value of the second image is below the first brightness threshold:
matching the second image with a pre-stored unlocking image;
and when the matching fails, judging whether the brightness value of the second image is lower than the first brightness threshold value.
5. The utility model provides a terminal equipment, terminal equipment includes infrared camera and infrared light filling module, wherein, infrared light filling module includes light filling lamp and lamp shade, its characterized in that, terminal equipment still includes:
the first image acquisition module is used for introducing a first current to start the light supplement lamp and acquiring a first image acquired by the infrared camera when detecting a terminal unlocking operation input by a user, wherein the infrared camera is used for executing the terminal unlocking operation;
the lampshade failure judging module is used for judging whether the lampshade fails or not according to the brightness information of the first image;
the second image acquisition module is used for increasing the starting current of the light supplement lamp from the first current to a second current and acquiring a second image acquired by the infrared camera under the condition that the lampshade does not fail;
and the supplementary lighting lamp failure determining module is used for determining that the supplementary lighting lamp fails when the brightness value of the second image is lower than a first brightness threshold value.
6. The terminal device according to claim 5, further comprising:
the third image acquisition module is used for acquiring a third image acquired by the infrared camera when the terminal unlocking operation is detected;
the third image matching module is used for matching the third image with a pre-stored unlocking image under the condition that the third image comprises at least one first target area, wherein the first target area is an area with a brightness value larger than a second brightness threshold value;
the strong light avoiding prompting module is used for sending prompting information for avoiding strong light interference to a user when matching fails;
and a light supplement lamp starting module for turning on the light supplement lamp by introducing the first current under the condition that the third image does not include the first target area.
7. The terminal device according to claim 5, wherein the lamp cover failure determination module comprises:
a second target area judgment submodule for judging whether a second target area exists in the first image; the difference value between the brightness value of the second target area and the brightness value of other areas in the first image is larger than a set difference value;
a lampshade failure determination sub-module for determining that the lampshade is failed if the second target area is present in the first image.
8. The terminal device according to claim 5, further comprising:
the second image matching module is used for matching the second image with a pre-stored unlocking image;
and the brightness value judging module is used for judging whether the brightness value of the second image is lower than the first brightness threshold value or not when the matching fails.
9. A terminal device, comprising a processor, a memory and a computer program stored on the memory and operable on the processor, wherein the computer program, when executed by the processor, implements the steps of the method for detecting failure of an infrared supplementary lighting module according to any one of claims 1 to 4.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for detecting a failure of an infrared supplementary lighting module according to any one of claims 1 to 4.
CN201810779025.4A 2018-07-16 2018-07-16 Infrared supplementary lighting module failure detection method, terminal device and computer readable storage medium Active CN108989710B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810779025.4A CN108989710B (en) 2018-07-16 2018-07-16 Infrared supplementary lighting module failure detection method, terminal device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810779025.4A CN108989710B (en) 2018-07-16 2018-07-16 Infrared supplementary lighting module failure detection method, terminal device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108989710A CN108989710A (en) 2018-12-11
CN108989710B true CN108989710B (en) 2020-09-04

Family

ID=64548889

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810779025.4A Active CN108989710B (en) 2018-07-16 2018-07-16 Infrared supplementary lighting module failure detection method, terminal device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108989710B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112784649B (en) * 2019-11-11 2024-08-06 北京君正集成电路股份有限公司 Infrared living body detection equipment and method for detecting whether infrared living body detection equipment works normally or not
CN112784654B (en) * 2019-11-11 2024-08-06 北京君正集成电路股份有限公司 Detection system of infrared object detection equipment
CN114025151B (en) * 2021-09-23 2023-11-14 北京鹰瞳科技发展股份有限公司 Fundus camera fault detection method, fundus camera fault detection device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104582209A (en) * 2013-10-29 2015-04-29 杭州海康威视数字技术股份有限公司 Fault detection method and device of supplementary lighting lamp
CN106125995A (en) * 2016-08-31 2016-11-16 广州华欣电子科技有限公司 The detecting system of infrared emission component and detection method
CN106793931A (en) * 2014-10-10 2017-05-31 奥林巴斯株式会社 Light supply apparatus
KR101806217B1 (en) * 2017-06-20 2017-12-07 한국건설기술연구원 Method and apparatus for detecting malfunction panel from UAV thermal infrared images of photovoltaic modules
CN207354688U (en) * 2017-10-25 2018-05-11 光宇锦业(武汉)智能科技有限公司 A kind of street lamp with fault detection capability
CN108136961A (en) * 2015-10-23 2018-06-08 Zkw集团有限责任公司 For monitoring the monitoring device of the operating status of laser vehicle headlight
CN108198175A (en) * 2017-12-28 2018-06-22 广东欧珀移动通信有限公司 Detection method, detection device, computer equipment and computer readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104582209A (en) * 2013-10-29 2015-04-29 杭州海康威视数字技术股份有限公司 Fault detection method and device of supplementary lighting lamp
CN106793931A (en) * 2014-10-10 2017-05-31 奥林巴斯株式会社 Light supply apparatus
CN108136961A (en) * 2015-10-23 2018-06-08 Zkw集团有限责任公司 For monitoring the monitoring device of the operating status of laser vehicle headlight
CN106125995A (en) * 2016-08-31 2016-11-16 广州华欣电子科技有限公司 The detecting system of infrared emission component and detection method
KR101806217B1 (en) * 2017-06-20 2017-12-07 한국건설기술연구원 Method and apparatus for detecting malfunction panel from UAV thermal infrared images of photovoltaic modules
CN207354688U (en) * 2017-10-25 2018-05-11 光宇锦业(武汉)智能科技有限公司 A kind of street lamp with fault detection capability
CN108198175A (en) * 2017-12-28 2018-06-22 广东欧珀移动通信有限公司 Detection method, detection device, computer equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN108989710A (en) 2018-12-11

Similar Documents

Publication Publication Date Title
CN108459797B (en) Control method of folding screen and mobile terminal
CN107645609B (en) Brightness adjusting method and mobile terminal
CN110969981A (en) Screen display parameter adjusting method and electronic equipment
CN108229420B (en) Face recognition method and mobile terminal
CN109343788B (en) Operation control method of mobile terminal and mobile terminal
CN108040209B (en) Shooting method and mobile terminal
CN108594942A (en) A kind of personal identification method and mobile terminal
CN109521684B (en) Household equipment control method and terminal equipment
CN108989710B (en) Infrared supplementary lighting module failure detection method, terminal device and computer readable storage medium
CN109145731B (en) Fingerprint identification method and device and mobile terminal
CN107704182B (en) Code scanning method and mobile terminal
CN107977113B (en) Control method and mobile terminal
CN107977563B (en) Message processing method and device and mobile terminal
CN108156537B (en) Remote operation method of mobile terminal and mobile terminal
CN110532820B (en) Graphic code display and scanning method and terminal
CN109814799A (en) Screen response control mehtod and terminal device
CN108664818B (en) Unlocking control method and device
CN108460599B (en) Mobile payment method and mobile terminal
CN108594952B (en) Method for resisting charging interference and terminal equipment
CN110519443B (en) Screen lightening method and mobile terminal
CN108391011B (en) Face recognition method and mobile terminal
CN110300286A (en) A kind of image display method and terminal
CN109104522B (en) Face recognition method and mobile terminal
CN109286723A (en) A kind of replacing options and terminal of wallpaper
CN110210197B (en) Screen sensitivity adjusting method and mobile terminal

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
GR01 Patent grant
GR01 Patent grant