CN108399404A - A kind of infrared lamp control method and terminal - Google Patents
A kind of infrared lamp control method and terminal Download PDFInfo
- Publication number
- CN108399404A CN108399404A CN201810186660.1A CN201810186660A CN108399404A CN 108399404 A CN108399404 A CN 108399404A CN 201810186660 A CN201810186660 A CN 201810186660A CN 108399404 A CN108399404 A CN 108399404A
- Authority
- CN
- China
- Prior art keywords
- terminal
- infrared lamp
- infrared
- relative distance
- light intensity
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/10—Image acquisition
- G06V10/12—Details of acquisition arrangements; Constructional details thereof
- G06V10/14—Optical characteristics of the device performing the acquisition or on the illumination arrangements
- G06V10/141—Control of illumination
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/10—Image acquisition
- G06V10/12—Details of acquisition arrangements; Constructional details thereof
- G06V10/14—Optical characteristics of the device performing the acquisition or on the illumination arrangements
- G06V10/143—Sensing or illuminating at different wavelengths
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/61—Control of cameras or camera modules based on recognised objects
- H04N23/611—Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/74—Circuitry 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)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Image Input (AREA)
Abstract
A kind of infrared lamp control method of present invention offer and terminal, the method includes:During man face image acquiring under target scene, the relative distance of user face and the terminal is detected;According to the relative distance detected, the infrared lamp is closed;Alternatively, according to the relative distance detected, the infrared light intensity that the infrared lamp projects is reduced.In this way by the relative distance according to user face and terminal, closes infrared lamp or reduce the infrared light intensity that infrared lamp projects, it is possible to prevente effectively from the infrared light that infrared lamp projects is injured caused by eyes of user, to protect the eyes of user.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of infrared lamp control method and terminals.
Background technology
With the continuous maturation of face recognition technology, it is personal that more and more fields begin to use face recognition technology to carry out
Information Authentication.However, in face recognition process, when environment-identification is dark or without light, generally by unlatching infrared lamp
To improve face identification rate.
However, during opening infrared, since the infrared light of infrared lamp transmitting is longer wavelengths of caloradiance,
It is easy to penetrate the intraocular of transparent refracting media, and due to again poor without blood vessel, heat dissipation performance in refracting media, infrared lamp hair
The infrared relationship penetrated is easy to damage the eyes of user, especially when the eyes of user are exposed under infrared light for a long time
When, it is easier to the eyes of user are damaged, are also possible to lead to cataract when serious.
As it can be seen that in the prior art, using infrared collection facial image during, be easy that the eyes of user are caused to hinder
Evil.
Invention content
A kind of infrared lamp control method of offer of the embodiment of the present invention and terminal, to solve in the prior art, using infrared ray
During acquiring facial image, the problem of being easy to damage the eyes of user.
In order to solve the above technical problems, the invention is realized in this way:
In a first aspect, an embodiment of the present invention provides a kind of infrared lamp control method, be applied to include infrared lamp terminal,
Including:
During man face image acquiring under target scene, the relative distance of user face and the terminal is detected;
According to the relative distance detected, the infrared lamp is closed;
Alternatively, according to the relative distance detected, the infrared light intensity that the infrared lamp projects is reduced.
Second aspect, the embodiment of the present invention also provide a kind of terminal, including infrared lamp, and the terminal further includes:
Detection module, during being used for the man face image acquiring under target scene, detection user face and the terminal
Relative distance;
Closedown module, for according to the relative distance detected, closing the infrared lamp;
Module is reduced, for according to the relative distance detected, it is strong to reduce the infrared light that the infrared lamp projects
Degree.
The third aspect, the embodiment of the present invention also provide a kind of terminal, including processor, memory and are stored in the storage
On device and the computer program that can run on the processor, realized when the computer program is executed by the processor
The step of stating infrared lamp control method.
Fourth aspect, the embodiment of the present invention also provide a kind of computer readable storage medium, the computer-readable storage
Computer program is stored on medium, the computer program realizes the step of above-mentioned infrared lamp control method when being executed by processor
Suddenly.
In embodiments of the present invention, by the man face image acquiring under target scene during, detection user face with
The relative distance of the terminal;According to the relative distance detected, the infrared lamp is closed;Alternatively, according to detecting
The relative distance reduces the infrared light intensity that the infrared lamp projects.Pass through the phase according to user face and terminal in this way
It adjusts the distance, close infrared lamp or reduces the infrared light intensity that infrared lamp projects, it is possible to prevente effectively from infrared lamp injection is red
UV light is injured caused by eyes of user, to protect the eyes of user.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, needed in being described below to the embodiment of the present invention
Attached drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention,
For those of ordinary skill in the art, without having to pay creative labor, it can also obtain according to these attached drawings
Obtain other attached drawings.
Fig. 1 is the flow chart for the infrared lamp control method that one embodiment of the invention provides;
Fig. 2 is the flow chart for the infrared lamp control method that another embodiment of the present invention provides;
Fig. 3 is one of the structure chart of terminal that one embodiment of the invention provides;
Fig. 4 is the two of the structure chart for the terminal that one embodiment of the invention provides;
Fig. 5 is the structure chart for the terminal that another embodiment of the present invention provides.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
In the gatherer process of facial image, when the acquisition scene light of facial image is enough, without opening infrared lamp
Clearly facial image can be collected;And when the dark of the acquisition scene of facial image or when without light, then need
Infrared lamp is opened, assisted acquisition clearly facial image is carried out.And infrared lamp control method provided in an embodiment of the present invention is applied to
Man face image acquiring process under dark or unglazed scene.
It is the flow chart for the infrared lamp control method that one embodiment of the invention provides, the embodiment of the present invention referring to Fig. 1, Fig. 1
The infrared lamp control method carried is applied to the terminal of acquisition facial image, and the terminal includes infrared lamp and corresponding with the infrared lamp
The optical filter module of setting, as shown in Figure 1, including the following steps:
During step 101, man face image acquiring under target scene, detection user face is opposite with the terminal
Distance.
In the step, target scene can be user-defined scene, such as the field of dark or dull thread irradiation
Scape.
During man face image acquiring under target scene, when having recognized user face close to terminal, Ke Yitong
Range sensor is crossed to detect the relative distance of user face and terminal.Wherein, range sensor can be infrared distance measurement sensing
Device or laser range sensor etc..
The relative distance that step 102, basis detect, closes the infrared lamp.
In the step, in the gatherer process of facial image, when terminal of the user face distance for acquiring image is excessively close
When, it is difficult to clearly facial image be collected, in such a case, it is possible to close infrared lamp.It can be kept away by closing infrared lamp
The infrared light for exempting from infrared lamp injection is injured caused by eyes of user, to protect the eyes of user.
The relative distance that step 103, basis detect reduces the infrared light intensity that the infrared lamp projects.
It,, can be in the range of can collect clear face image in the gatherer process of facial image in the step
According to the relative distance detected, the infrared light intensity that infrared lamp projects is reduced.For example, when the relative distance detected
When closer, i.e., when the face of user is closer apart from infrared lamp, then the infrared light intensity of infrared lamp injection is reduced, it is red by reducing
UV light formidable opponent injures to reduce infrared light caused by eyes of user, protects the eyes of user to a certain extent.
In a specific implementation mode of present embodiment, when detect distance of the user face apart from terminal be less than first
Distance (such as 60 centimetres) when, then open infrared lamp, and start acquire user face image, wherein when user face away from
With a distance from terminal be more than first apart from when, infrared lamp is closed, compared with the existing technology in always on infrared lamp,
The power consumption of infrared lamp can be reduced;When detect distance of the face of user apart from terminal be less than second distance (such as 30 centimetres)
When, then reduce the infrared light intensity of infrared lamp injection, in present embodiment, can by reduce the input power of infrared lamp come
It reduces the infrared light intensity that infrared lamp projects and passes through reduction in this way when the eye distance infrared lamp emission source of user is closer
Infrared light intensity can protect the eyes of user to a certain extent;When distance of the face apart from terminal for detecting user
When less than third distance (such as 20 centimetres), then infrared lamp is closed, since distance of the face as user apart from terminal is less than the
Three apart from when, terminal is difficult to collect clearly facial image, in this case by close infrared lamp, can not only reduce end
The power consumption at end can also protect the eyes of user.
In the embodiment of the present invention, the above method can be applied to include infrared lamp terminal, wherein terminal further include with it is red
The corresponding optical filter module of outer lamp, terminal can be mobile phone, tablet computer (Tablet Personal Computer), on knee
Computer (Laptop Computer), image capture device etc..
The infrared lamp control method of the embodiment of the present invention, during by man face image acquiring under target scene, inspection
Survey the relative distance of user face and the terminal;According to the relative distance detected, the infrared lamp is closed;Alternatively,
According to the relative distance detected, the infrared light intensity that the infrared lamp projects is reduced.In this way by according to user's face
The relative distance in portion and terminal closes infrared lamp or reduces the infrared light intensity that infrared lamp projects, it is possible to prevente effectively from red
The infrared light that outer lamp projects is injured caused by eyes of user, to protect the eyes of user.
It is the flow chart for the infrared lamp control method that another embodiment of the present invention provides referring to Fig. 2, Fig. 2, as shown in Fig. 2,
Include the following steps:
During step 201, man face image acquiring under target scene, detection user face is opposite with the terminal
Distance.
In the step, target scene can be user-defined scene, such as the field of dark or dull thread irradiation
Scape.
During man face image acquiring under target scene, when having recognized user face close to terminal, Ke Yitong
Range sensor is crossed to detect the relative distance of user face and terminal.Wherein, range sensor can be infrared distance measurement sensing
Device or laser range sensor etc..
Optionally, before step 201, the method further includes:If detecting the scene that the terminal is presently in
Light intensity is less than default light intensity, it is determined that the scene that the terminal is presently in is the target scene.
In present embodiment, inspection can be worked as by the light intensity for the scene that photosensitive sensor detection terminal is presently in
When measuring the light intensity of current scene less than default light intensity, then the scene that true terminal is presently in is target scene, than
The scene irradiated such as dark or dull thread.
In this way by under target scene, just going the relative distance of inspection user face and terminal, and according to relative distance
It is turned on or off infrared lamp, infrared lamp, Ke Yiyou are all turned on or off according to relative distance relative under any scene
Effect reduces the power consumption of infrared lamp.
Wherein, default light intensity can be obtained according to the empirical value of light intensity needed for man face image acquiring, can also
It is configured according to user demand.
If step 202, detecting that the relative distance is less than the second pre-determined distance, reduce the infrared lamp project it is infrared
Light intensity.
In the step, the second pre-determined distance is a critical value of the relative distance of user face and terminal, when user's face
The relative distance of portion and terminal be less than the second pre-determined distance (such as 30 centimetres, wherein the numerical value of the second pre-determined distance can be according to reality
Border situation is set) when, illustrate that user face is excessively close apart from terminal.If infrared lamp projects the infrared light of normal intensity at this time
Line is easy to damage the eyes of user, therefore when detection since the terminal of user face range transmission infrared light is excessively close
When being less than the second pre-determined distance to the relative distance of user face and terminal, then the infrared light intensity of infrared lamp injection is reduced.
The infrared light intensity projected in this way by reducing infrared lamp, can be in the gatherer process of the facial image of user
In, the eyes of user are protected to a certain extent.
Wherein, it in present embodiment, can be projected by way of reducing the input power of infrared lamp to reduce infrared lamp
Infrared light intensity, this mode can also reduce the power consumption of infrared lamp;It can also be by reducing the optical filter mould in terminal
The infrared light transmitance of group.
It can also be projected reducing in terminal by way of the infrared light transmitance of optical filter module to reduce infrared lamp
Infrared light intensity.Wherein, optical filter module corresponds to infrared lamp setting, and optical filter module includes multi-disc difference transmitance
Optical filter, when needing to reduce the infrared light intensity that infrared lamp projects, can control optical filter module will corresponding current filter
Mating plate is converted into optical filter of the lower optical filter of transmitance as infrared lamp, strong to reduce the infrared light that infrared lamp projects
Degree.Such as when front filter transmitance be 0.5%, when the relative distance for checking user face and terminal further becomes smaller
When, and need reduce infrared lamp project infrared light intensity when, can control optical filter module will be converted into when front filter
The optical filter that transmitance is 0.45% protects the eyes of user to reduce injury of the infrared light to eyes of user of high intensity.
Optionally, described state reduces the infrared light intensity that the infrared lamp projects, including:
Obtain Infrared Targets light intensity corresponding with the relative distance;
According to the Infrared Targets light intensity, the infrared light intensity that the infrared lamp projects is reduced.
In present embodiment, the correspondence of the relative distance and infrared intensity can be pre-set;Then according to inspection
The relative distance measured obtains Infrared Targets light intensity corresponding with the relative distance;Infrared lamp is projected again
Infrared light intensity is reduced to the Infrared Targets light intensity, and the infrared light intensity control to project infrared lamp is being closed
Reason degree can also reduce infrared light to ensure that the infrared light of infrared lamp injection can not only ensure the acquisition of facial image
Injury of the line to eyes of user.
Optionally, the step 202 can also include:If detecting, the relative distance is less than the first pre-determined distance,
Close the infrared lamp.
In present embodiment, when detect the relative distance be between the first pre-determined distance and third pre-determined distance
When, then infrared lamp is opened, to collect clearly facial image.
First pre-determined distance is a critical value of man face image acquiring, when the relative distance of user face and terminal is less than
When the first pre-determined distance, since user face is too long every obtaining with terminal, it also is difficult to clearly acquire use even if opening infrared lamp
The face feature at family, thus when detect the relative distance be less than the first pre-determined distance when, if at this time infrared lamp be in open
State is opened, then closes infrared lamp, if infrared lamp is closed at this time, remains off state.And work as relative distance
Less than the first pre-determined distance, by closing the infrared lamp, the infrared light that can be projected to avoid infrared lamp makes eyes of user
At injury, to protect the eyes of user.
Third pre-determined distance is another critical value of man face image acquiring, when the relative distance be more than third it is default away from
From when, it is difficult to collect clearly face characteristic, the especially pupil feature of user face, therefore when the relative distance is more than
When third pre-determined distance, then closes infrared lamp or maintain the closed state of infrared lamp.
It should be noted that the second pre-determined distance is more than the first pre-determined distance, and it is less than third pre-determined distance, when acquisition
When facial image is used for recognition of face, according to the empirical value of recognition of face, the first pre-determined distance is preferably 20 centimetres, and second is default
Preview is preferably 30 centimetres, and third pre-determined distance is preferably 60 centimetres.Moreover, it is also possible to the concrete condition of user, setting first
Pre-determined distance, the second pre-determined distance and third pre-determined distance.
The infrared lamp control method of the embodiment of the present invention, during by man face image acquiring under target scene, inspection
Survey the relative distance of user face and the terminal;According to the relative distance detected, reduce what the infrared lamp projected
Infrared light intensity.In this way by the relative distance according to user face and terminal, it is strong to reduce the infrared light that infrared lamp projects
Degree, it is possible to prevente effectively from the infrared light that infrared lamp projects is injured caused by eyes of user, to protect the eyes of user.
It is the structure chart for the terminal that one embodiment of the invention provides referring to Fig. 3, Fig. 3, as shown in figure 3, terminal 300 includes red
Outer lamp and optical filter module (not shown), the terminal 300 further include detection module 301, closedown module 302 and reduction module
303, wherein:
Detection module 301, during being used for the man face image acquiring under target scene, detection user face and the end
The relative distance at end;
Closedown module 302, for according to the relative distance detected, closing the infrared lamp;
Module 303 is reduced, for according to the relative distance detected, reducing the infrared light that the infrared lamp projects
Intensity.
Optionally, the closedown module 302, if specifically for detecting that the relative distance is less than the first pre-determined distance,
Then close the infrared lamp.
Optionally, the reduction module 303, if specifically for detecting that the relative distance is less than the second pre-determined distance,
Reduce the infrared light intensity that the infrared lamp projects.
Optionally, the reduction module 303, the infrared light for being specifically used for reducing optical filter module in the terminal penetrate
Rate.
Optionally, the reduction module 303 is specifically used for turning the lower optical filter of transmitance in the optical filter module
Change the optical filter of the infrared lamp into.
Optionally, as shown in figure 4, the terminal 300 further includes:
Determining module 304, if for detecting that the light intensity of scene that the terminal is presently in is less than default light
Intensity, it is determined that the scene that the terminal is presently in is the target scene.
Terminal 300 can realize each process that terminal is realized in the embodiment of the method for Fig. 1 and Fig. 2, to avoid repeating, this
In repeat no more.
The terminal 300 of the embodiment of the present invention during by man face image acquiring under target scene, detects user's face
The relative distance in portion and the terminal;According to the relative distance detected, the infrared lamp is closed;Alternatively, according to detection
The relative distance arrived reduces the infrared light intensity that the infrared lamp projects.In this way by according to user face and terminal
Relative distance, close infrared lamp or reduce infrared lamp project infrared light intensity, it is possible to prevente effectively from infrared lamp project
Infrared light injured caused by eyes of user, to protect the eyes of user.
The hardware architecture diagram of Fig. 5 a kind of terminals of each embodiment to realize the present invention, as shown in figure 5, the terminal
500 include but not limited to:Radio frequency unit 501, network module 502, audio output unit 503, input unit 504, sensor
505, display unit 506, user input unit 507, interface unit 508, memory 509, processor 510 and power supply 511 etc.
Component.It will be understood by those skilled in the art that the restriction of the not structure paired terminal of terminal structure shown in Fig. 5, terminal can be with
Including than illustrating more or fewer components, either combining certain components or different components arrangement.In the embodiment of the present invention
In, terminal include but not limited to mobile phone, tablet computer, laptop, palm PC, car-mounted terminal, wearable device and
Pedometer etc..
Wherein, user face and institute during being used for the man face image acquiring under target scene, are detected in processor 510
State the relative distance of terminal;According to the relative distance detected, the infrared lamp is closed;It is described opposite according to what is detected
Distance reduces the infrared light intensity that the infrared lamp projects.
Optionally, the processor 510 is additionally operable to:If detecting, the relative distance is less than the first pre-determined distance, closes
Close the infrared lamp.
Optionally, the processor 510 is additionally operable to:If detecting, the relative distance is less than the second pre-determined distance, reduces
The infrared light intensity that the infrared lamp projects.
Optionally, the processor 510 is additionally operable to:Reduce the infrared light transmitance of optical filter module in the terminal.
Optionally, the processor 510 is additionally operable to:The lower optical filter of transmitance in the optical filter module is converted into
The optical filter of the infrared lamp.
Optionally, the processor 510 is additionally operable to:If detecting, the light intensity for the scene that the terminal is presently in is low
In default light intensity, it is determined that the scene that the terminal is presently in is the target scene.
Terminal 500 can realize each process that terminal is realized in previous embodiment, no longer superfluous here to avoid repeating
It states.
The terminal 500 of the embodiment of the present invention during by man face image acquiring under target scene, detects user's face
The relative distance in portion and the terminal;According to the relative distance detected, the infrared lamp is closed;Alternatively, according to detection
The relative distance arrived reduces the infrared light intensity that the infrared lamp projects.In this way by according to user face and terminal
Relative distance, close infrared lamp or reduce infrared lamp project infrared light intensity, it is possible to prevente effectively from infrared lamp project
Infrared light injured caused by eyes of user, to protect the eyes of user.
It should be understood that the embodiment of the present invention in, radio frequency unit 501 can be used for receiving and sending messages or communication process in, signal
Send and receive, specifically, by from base station downlink data receive after, to processor 510 handle;In addition, by uplink
Data are sent to base station.In general, radio frequency unit 501 includes but not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 501 can also by radio communication system and network and other set
Standby communication.
Terminal has provided wireless broadband internet to the user by network module 502 and has accessed, and such as user is helped to receive and dispatch electricity
Sub- mail, browsing webpage and access streaming video etc..
It is that audio output unit 503 can receive radio frequency unit 501 or network module 502 or in memory 509
The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 503 can also provide and end
The relevant audio output of specific function (for example, call signal receives sound, message sink sound etc.) that end 500 executes.Sound
Frequency output unit 503 includes loud speaker, buzzer and receiver etc..
Input unit 504 is for receiving audio or video signal.Input unit 504 may include graphics processor
(Graphics Processing Unit, GPU) 5041 and microphone 5042, graphics processor 5041 is in video acquisition mode
Or the image data of the static images or video obtained by image capture apparatus (such as camera) in image capture mode carries out
Reason.Treated, and picture frame may be displayed on display unit 506.Through graphics processor 5041, treated that picture frame can be deposited
Storage is sent in memory 509 (or other storage mediums) or via radio frequency unit 501 or network module 502.Mike
Wind 5042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be
The format output of mobile communication base station can be sent to via radio frequency unit 501 by being converted in the case of telephone calling model.
Terminal 500 further includes at least one sensor 505, such as optical sensor, motion sensor and other sensors.
Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light
Light and shade adjusts the brightness of display panel 5061, and proximity sensor can close display panel when terminal 500 is moved in one's ear
5061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (generally three axis) and add
The size of speed can detect that size and the direction of gravity when static, can be used to identify terminal posture (such as horizontal/vertical screen switching,
Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Sensor 505 can be with
Including fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, hygrometer, thermometer,
Infrared sensor etc., details are not described herein.
Display unit 506 is for showing information input by user or being supplied to the information of user.Display unit 506 can wrap
Display panel 5061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 5061.
User input unit 507 can be used for receiving the number or character information of input, and generates and set with the user of terminal
It sets and the related key signals of function control inputs.Specifically, user input unit 507 include touch panel 5071 and other
Input equipment 5072.Touch panel 5071, also referred to as touch screen, collect user on it or neighbouring touch operation (such as
User is using any suitable objects or attachment such as finger, stylus on touch panel 5071 or near touch panel 5071
Operation).Touch panel 5071 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus is examined
The touch orientation of user is surveyed, and detects the signal that touch operation is brought, transmits a signal to touch controller;Touch controller from
Touch information is received on touch detecting apparatus, and is converted into contact coordinate, then gives processor 510, receives processor 510
The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves
Realize touch panel 5071.In addition to touch panel 5071, user input unit 507 can also include other input equipments 5072.
Specifically, other input equipments 5072 can include but is not limited to physical keyboard, function key (such as volume control button, switch
Button etc.), trace ball, mouse, operating lever, details are not described herein.
Further, touch panel 5071 can be covered on display panel 5061, when touch panel 5071 is detected at it
On or near touch operation after, send processor 510 to determine the type of touch event, be followed by subsequent processing device 510 according to touch
The type for touching event provides corresponding visual output on display panel 5061.Although in Figure 5, touch panel 5071 and display
Panel 5061 is to realize the function that outputs and inputs of terminal as two independent components, but in certain embodiments, can
The function that outputs and inputs of terminal is realized so that touch panel 5071 and display panel 5061 is integrated, is not limited herein specifically
It is fixed.
Interface unit 508 is the interface that external device (ED) is connect with terminal 500.For example, external device (ED) may include it is wired or
Wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, memory card port,
For connecting the port of device with identification module, the port audio input/output (I/O), video i/o port, ear port
Etc..Interface unit 508 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and will
One or more elements that the input received is transferred in terminal 500 or can be used for terminal 500 and external device (ED) it
Between transmission data.
Memory 509 can be used for storing software program and various data.Memory 509 can include mainly storing program area
And storage data field, wherein storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 509 may include high-speed random access memory, can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 510 is the control centre of terminal, using the various pieces of various interfaces and the entire terminal of connection, is led to
It crosses operation or executes the software program and/or module being stored in memory 509, and call and be stored in memory 509
Data execute the various functions and processing data of terminal, to carry out integral monitoring to terminal.Processor 510 may include one
Or multiple processing units;Preferably, processor 510 can integrate application processor and modem processor, wherein application processing
The main processing operation system of device, user interface and application program etc., modem processor mainly handles wireless communication.It can manage
Solution, above-mentioned modem processor can not also be integrated into processor 510.
Terminal 500 can also include the power supply 511 (such as battery) powered to all parts, it is preferred that power supply 511 can be with
It is logically contiguous by power-supply management system and processor 510, to by power-supply management system realize management charging, electric discharge, with
And the functions such as power managed.
In addition, terminal 500 includes some unshowned function modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of terminal, including processor 510, and memory 509 is stored in storage
It is real when which is executed by processor 510 on device 509 and the computer program that can be run on the processor 510
Each process of existing above-mentioned infrared lamp control method embodiment, and identical technique effect can be reached, to avoid repeating, here not
It repeats again.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the computer program realize each process of above-mentioned infrared lamp control method embodiment when being executed by processor, and
Identical technique effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as
Read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation
RAM), magnetic disc or CD etc..
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements include not only those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this
There is also other identical elements in the process of element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art
Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited in above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form belongs within the protection of the present invention.
Claims (13)
1. a kind of infrared lamp control method, which is characterized in that be applied to include infrared lamp terminal, the method includes:
During man face image acquiring under target scene, the relative distance of user face and the terminal is detected;
According to the relative distance detected, the infrared lamp is closed;
Alternatively,
According to the relative distance detected, the infrared light intensity that the infrared lamp projects is reduced.
2. according to the method described in claim 1, it is characterized in that, the relative distance that the basis detects, closes institute
Infrared lamp is stated, including:
If detecting, the relative distance is less than the first pre-determined distance, closes the infrared lamp.
3. according to the method described in claim 1, it is characterized in that, the relative distance that the basis detects, reduces institute
The infrared light intensity of infrared lamp injection is stated, including:
If detecting, the relative distance is less than the second pre-determined distance, reduces the infrared light intensity that the infrared lamp projects.
4. according to the method described in claim 3, it is characterized in that, the infrared light for reducing the infrared lamp injection is strong
Degree, including:
Reduce the infrared light transmitance of optical filter module in the terminal.
5. according to the method described in claim 4, it is characterized in that, the infrared light for reducing optical filter module in the terminal
Line transmitance, including:
The lower optical filter of transmitance in the optical filter module is switched to the optical filter of the infrared lamp.
6. the method according to any one of claims 1 to 5, it is characterized in that, the face figure under target scene
As in gatherer process, with before the relative distance of the terminal, the method further includes for detection user face:
If detecting, the light intensity for the scene that the terminal is presently in is less than default light intensity, it is determined that the terminal is worked as
Preceding residing scene is the target scene.
7. a kind of terminal, which is characterized in that including infrared lamp, the terminal further includes:
Detection module during being used for the man face image acquiring under target scene, detects the phase of user face and the terminal
It adjusts the distance;
Closedown module, for according to the relative distance detected, closing the infrared lamp;
Module is reduced, for according to the relative distance detected, reducing the infrared light intensity that the infrared lamp projects.
8. terminal according to claim 7, which is characterized in that the closedown module, if specifically for detecting the phase
It adjusts the distance and is less than the first pre-determined distance, then close the infrared lamp.
9. terminal according to claim 7, which is characterized in that the reduction module, if specifically for detecting the phase
It adjusts the distance and is less than the second pre-determined distance, reduce the infrared light intensity that the infrared lamp projects.
10. terminal according to claim 9, which is characterized in that the reduction module is specifically used for reducing in the terminal
The infrared light transmitance of optical filter module.
11. terminal according to claim 10, which is characterized in that the reduction module is specifically used for the optical filter
The lower optical filter of transmitance switches to the optical filter of the infrared lamp in module.
12. the terminal according to any one of claim 7 to 11, which is characterized in that the terminal further includes:
Determining module, if for detecting that the light intensity of scene that the terminal is presently in is less than default light intensity,
Determine that the scene that the terminal is presently in is the target scene.
13. a kind of terminal, which is characterized in that including processor, memory and be stored on the memory and can be at the place
The computer program run on reason device is realized when the computer program is executed by the processor as appointed in claim 1 to 6
The step of infrared lamp control method described in one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810186660.1A CN108399404A (en) | 2018-03-07 | 2018-03-07 | A kind of infrared lamp control method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810186660.1A CN108399404A (en) | 2018-03-07 | 2018-03-07 | A kind of infrared lamp control method and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108399404A true CN108399404A (en) | 2018-08-14 |
Family
ID=63091506
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810186660.1A Pending CN108399404A (en) | 2018-03-07 | 2018-03-07 | A kind of infrared lamp control method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108399404A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112857563A (en) * | 2020-01-21 | 2021-05-28 | 上海掌门科技有限公司 | Method and equipment for detecting scene light |
CN113223209A (en) * | 2020-01-20 | 2021-08-06 | 深圳绿米联创科技有限公司 | Door lock control method and device, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS55114488A (en) * | 1979-02-26 | 1980-09-03 | Sumitomo Electric Ind Ltd | Laser working apparatus with lens failure detector |
CN201571139U (en) * | 2010-01-15 | 2010-09-01 | 常州宏本数码科技有限公司 | Safe type laser infrared high-speed holder camera |
CN204131599U (en) * | 2014-05-13 | 2015-01-28 | 深圳市景阳科技股份有限公司 | A kind of automatic monitoring camera head |
CN106686318A (en) * | 2016-12-23 | 2017-05-17 | 杭州华橙网络科技有限公司 | Control method and apparatus for reducing radiation of infrared lamp |
CN107360328A (en) * | 2017-07-20 | 2017-11-17 | 合肥顺顺信息咨询有限公司 | It is a kind of to detect eyes and the cell phone intelligent eyes protecting system of mobile phone distance |
-
2018
- 2018-03-07 CN CN201810186660.1A patent/CN108399404A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS55114488A (en) * | 1979-02-26 | 1980-09-03 | Sumitomo Electric Ind Ltd | Laser working apparatus with lens failure detector |
CN201571139U (en) * | 2010-01-15 | 2010-09-01 | 常州宏本数码科技有限公司 | Safe type laser infrared high-speed holder camera |
CN204131599U (en) * | 2014-05-13 | 2015-01-28 | 深圳市景阳科技股份有限公司 | A kind of automatic monitoring camera head |
CN106686318A (en) * | 2016-12-23 | 2017-05-17 | 杭州华橙网络科技有限公司 | Control method and apparatus for reducing radiation of infrared lamp |
CN107360328A (en) * | 2017-07-20 | 2017-11-17 | 合肥顺顺信息咨询有限公司 | It is a kind of to detect eyes and the cell phone intelligent eyes protecting system of mobile phone distance |
Non-Patent Citations (1)
Title |
---|
伍世虞等: "红外图像人脸识别研究", 《中国图象图形学报》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113223209A (en) * | 2020-01-20 | 2021-08-06 | 深圳绿米联创科技有限公司 | Door lock control method and device, electronic equipment and storage medium |
CN112857563A (en) * | 2020-01-21 | 2021-05-28 | 上海掌门科技有限公司 | Method and equipment for detecting scene light |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109451349A (en) | A kind of video broadcasting method, device and mobile terminal | |
CN108491123A (en) | A kind of adjusting application program image target method and mobile terminal | |
CN109697494A (en) | A kind of graphic code display methods and terminal device | |
CN108803963A (en) | A kind of screenshotss method and mobile terminal | |
CN109768810A (en) | A kind of signal processing circuit, terminal device and signal processing method | |
CN108108007A (en) | A kind of processing method and mobile terminal for reducing power consumption | |
CN109381165A (en) | A kind of skin detecting method and mobile terminal | |
CN110298304A (en) | A kind of skin detecting method and terminal | |
CN109547054A (en) | Signal control circuit, terminal device and signal control method | |
CN108366220A (en) | A kind of video calling processing method and mobile terminal | |
CN109743503A (en) | Reminding method and terminal | |
CN109145731A (en) | A kind of fingerprint identification method, device and mobile terminal | |
CN109379145A (en) | A kind of signal processing circuit, terminal device and signal processing method | |
CN108512980A (en) | A kind of detection method and mobile terminal of mobile terminal | |
CN109525837A (en) | The generation method and mobile terminal of image | |
CN109544172A (en) | A kind of display methods and terminal device | |
CN109871253A (en) | A kind of display methods and terminal | |
CN109859637A (en) | A kind of electronic equipment and its control method | |
CN109743737A (en) | A kind of method, terminal and base station reducing multiple network mutual interference | |
CN108881723A (en) | A kind of image preview method and terminal | |
CN109120853A (en) | A kind of long exposure image image pickup method and terminal | |
CN109033912A (en) | A kind of recognition methods of identification code and mobile terminal | |
CN108881782A (en) | A kind of video call method and terminal device | |
CN108616687A (en) | A kind of photographic method, device and mobile terminal | |
CN110276329A (en) | A kind of skin detecting method and 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180814 |
|
RJ01 | Rejection of invention patent application after publication |