CN109151331A - A kind of detection method and device - Google Patents
A kind of detection method and device Download PDFInfo
- Publication number
- CN109151331A CN109151331A CN201710462376.8A CN201710462376A CN109151331A CN 109151331 A CN109151331 A CN 109151331A CN 201710462376 A CN201710462376 A CN 201710462376A CN 109151331 A CN109151331 A CN 109151331A
- Authority
- CN
- China
- Prior art keywords
- signal
- light
- ambient light
- detected
- terminal
- 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
- 238000001514 detection method Methods 0.000 title claims abstract description 43
- 230000003287 optical effect Effects 0.000 claims abstract description 163
- 230000002596 correlated effect Effects 0.000 claims abstract description 22
- 238000001914 filtration Methods 0.000 claims abstract description 6
- 238000000034 method Methods 0.000 claims description 27
- 230000001276 controlling effect Effects 0.000 claims description 16
- 230000003247 decreasing effect Effects 0.000 claims description 4
- 230000005489 elastic deformation Effects 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 19
- 238000004590 computer program Methods 0.000 description 15
- 230000006870 function Effects 0.000 description 14
- 230000015654 memory Effects 0.000 description 12
- 238000004519 manufacturing process Methods 0.000 description 6
- 238000004364 calculation method Methods 0.000 description 4
- 230000000875 corresponding effect Effects 0.000 description 4
- 238000003384 imaging method Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000008033 biological extinction Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 238000006073 displacement reaction Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000004907 flux Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 150000004706 metal oxides Chemical class 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Classifications
-
- 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/71—Circuitry for evaluating the brightness variation
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Blocking Light For Cameras (AREA)
- Studio Devices (AREA)
Abstract
The embodiment of the invention provides a kind of detection methods, are applied in terminal, the terminal includes camera, which comprises the optical filter for filtering out infrared ray is arranged in the optical path that the photosensitive element in the camera receives ambient light signal;The photosensitive element is controlled to start to work;According to the light quantity of the received ambient light signal of the photosensitive element, the ambient light intensity is determined, the light quantity of the ambient light intensity and the ambient light signal is positively correlated;The embodiment of the invention also provides a kind of detection devices.
Description
Technical Field
The invention relates to a terminal sensor technology, in particular to a detection method and a detection device.
Background
A plurality of openings are arranged near a shell receiver of a terminal product such as a mobile phone and the like, such as a front camera, a proximity sensor or a distance sensor, an optical sensor, an indicator light and the like, and the overall appearance of the mobile phone is influenced by the excessive openings; on the other hand, each opening is necessary, and the added functions are practical, for example, the camera is mainly used for self-photographing and video chat, the proximity sensor or the distance sensor can be used for screen extinction when receiving a call to avoid false triggering and save electricity, the optical sensor is mainly used for adjusting the brightness of the display screen according to the ambient light, the indicator light is mainly used for signal and electric quantity indication, and the functions can be removed directly only for improving the appearance and cannot be compensated;
how to reduce the number of openings without affecting the use of corresponding functions is a problem to be solved urgently.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention provide a detection method and apparatus, which can implement a corresponding sensor function by using a camera of a terminal, thereby reducing the manufacturing cost of the terminal.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
the embodiment of the invention provides a detection method, which is applied to a terminal, wherein the terminal comprises a camera, and the method comprises the following steps:
an optical filter for filtering infrared rays is arranged on a light path of a photosensitive element in the camera for receiving an ambient light signal;
controlling the photosensitive element to start working;
determining the ambient light intensity according to the light quantity of the ambient light signal received by the photosensitive element, wherein the ambient light intensity is positively correlated with the light quantity of the ambient light signal.
Correspondingly, the embodiment of the invention also provides a detection device, wherein the detection device is positioned in the terminal and comprises a camera, a processor and an optical filter configured to filter infrared rays; wherein,
the optical filter is positioned on a light path of a photosensitive element in the camera for receiving an ambient light signal;
the processor is configured to control a photosensitive element in the camera to start working;
the light sensing element is configured to receive an ambient light signal and determine the amount of light of the received ambient light signal;
the processor is further configured to determine the ambient light intensity from a light amount of the ambient light signal received by the light sensing element, the ambient light intensity being positively correlated with the light amount of the ambient light signal.
The detection method and the detection device provided by the embodiment of the invention are applied to a terminal, the terminal comprises a camera, and firstly, an optical filter for filtering infrared rays is arranged on a light path of a photosensitive element in the camera for receiving an ambient light signal; then, controlling the photosensitive element to start working; determining the ambient light intensity according to the light quantity of the ambient light signal received by the photosensitive element, wherein the ambient light intensity is positively correlated with the light quantity of the ambient light signal; therefore, the function of approaching the optical sensor can be realized by utilizing the photosensitive element of the camera of the terminal, the optical sensor does not need to be additionally arranged on the terminal, the number of openings of the terminal can be reduced, and the hardware manufacturing cost of the terminal is reduced.
Drawings
FIG. 1 is a flow chart of a detection method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a component structure of a terminal according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a circuit structure of a light source according to an embodiment of the invention;
FIG. 4 is a schematic diagram of a component structure of a filter switching component according to an embodiment of the present invention;
FIG. 5A is an exploded view of a filter switching unit according to an embodiment of the present invention;
FIG. 5B is a schematic cross-sectional view of a filter switching component according to an embodiment of the invention;
fig. 6 is a schematic structural diagram of a camera of the terminal in the embodiment of the present invention;
FIG. 7 is a schematic diagram of a proximity sensor mode of a terminal in an embodiment of the present invention;
FIG. 8 is a flow chart of a proximity sensor mode of implementing a terminal in an embodiment of the present invention;
fig. 9 is a flowchart of implementing the optical sensor mode of the terminal in the embodiment of the present invention;
FIG. 10 is a flowchart illustrating a dark environment shooting mode of the terminal according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a detecting apparatus according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the invention discloses a detection method and a detection device, which can be applied to a terminal, wherein the terminal can be a fixed terminal such as a computer and the like, and can also be a mobile terminal such as a mobile phone, a tablet personal computer and the like; the terminal is provided with a camera which can be a front camera of the terminal or a rear camera of the terminal;
the camera mainly comprises a lens, a photosensitive element, a digital signal processor and an output interface circuit; when the camera is used for shooting, incident light is polymerized to the photosensitive element through the lens, the received light is imaged in the photosensitive array through the photosensitive element, an optical signal is converted into an electric signal, the electric signal is received by the digital signal processor, and the electric signal is calculated and converted into a required result according to the received electric signal and is output to the processor of the terminal from the interface circuit.
The type of the photosensitive element in the camera may be a complementary metal-Oxide Semiconductor (CMOS) device, or may also be a Charge Coupled Device (CCD), and the embodiment of the present invention does not limit the type of the photosensitive element; the photosensitive element in the camera can be used for detecting visible light and infrared rays, and here, visible light gain and infrared ray gain can be respectively set for the photosensitive element, wherein the visible light gain is used for representing the capability of the photosensitive element for receiving visible light, and the infrared ray gain is used for representing the capability of the photosensitive element for receiving infrared ray gain; in an alternative embodiment, the visible and infrared gains of the photosensitive elements are adjustable.
Based on the above-described terminal, camera, and photosensitive element, the following embodiments are proposed.
First embodiment
A first embodiment of the present invention provides a detection method, and fig. 1 is a flowchart of the detection method according to the embodiment of the present invention, as shown in fig. 1, the flowchart may include:
step S1: an optical filter for filtering infrared rays is arranged on a light path of a photosensitive element in the camera for receiving an ambient light signal;
here, the optical filter is located on the optical path of the light sensing element receiving the ambient light signal, that is, the optical filter is located in front of the lens of the camera, and light (including infrared light and visible light) from the outside filters the optical filter and then the optical filter is processed by the lens, and then the processed light is transmitted to the light sensing element, so that the ambient light signal received by the light sensing element is the ambient light signal processed by the optical filter
Therefore, the visible light signals in the environment can be detected by the photosensitive element through the processing of the optical filter, the influence of the infrared signals on the photosensitive element is reduced, and the accuracy of the detection of the visible light signals in the environment by the photosensitive element is improved.
Step S2: controlling the photosensitive element to start working;
it can be understood that the photosensitive element can work under the control of an external control signal, and can receive light from the outside when the photosensitive element works; the light received by the photosensitive element may be visible light or infrared light.
It should be noted that, when the photosensitive element is controlled to operate, only a part of devices in the camera need to be utilized, and not all devices in the camera need to be utilized, for example, when the photosensitive element operates, a lens, the photosensitive element and an output interface circuit in the camera may be used, and a digital signal processor is not used.
In practical implementation, this step can be implemented by using a processor of the terminal.
Step S3: determining the ambient light intensity according to the light quantity of the ambient light signal received by the photosensitive element, wherein the ambient light intensity is positively correlated with the light quantity of the ambient light signal.
Here, as for the light receiving element, the light amount of the light signal received by the light receiving element is determined by the number of pixels (light receiving units) on the light receiving element that detect the ambient light signal, and specifically, the larger the number of pixels (light receiving units) that detect the ambient light signal, the larger the light amount of the light signal received by the light receiving element.
For implementations in which the ambient light intensity is determined, in one example, the ambient light intensity is proportional to the amount of light of the ambient light signal; it is understood that the greater the amount of light of the ambient light signal received by the light sensing element, the greater the intensity of the ambient light.
Optionally, the photosensitive element converts an ambient light signal received by the photosensitive element into an electrical signal, and determines the intensity of the ambient light according to the current or voltage of the electrical signal; wherein the magnitude of the current or the magnitude of the voltage of the electrical signal is positively correlated with the amount of light of the ambient light signal, and the intensity of the ambient light is positively correlated with the magnitude of the current or the magnitude of the voltage of the electrical signal; preferably, the current or voltage of the electrical signal is proportional to the light quantity of the ambient light signal, and the ambient light intensity is proportional to the current or voltage of the electrical signal.
In practical implementation, the electrical signal described above may be output to a processor of the terminal, and then the processor may determine the ambient light intensity according to the current or voltage of the electrical signal.
In the prior art, if a terminal is used to detect the intensity of ambient light, an optical sensor is usually additionally disposed on the terminal, and the detection of the intensity of ambient light is realized by using the optical sensor.
Compared with the prior art, in the embodiment of the invention, when the terminal is required to detect the intensity of the ambient light, the detection can be realized by using the photosensitive element of the camera of the terminal, so that an optical sensor is not required to be additionally arranged on the terminal, the number of openings of the terminal can be reduced, and the manufacturing cost of hardware of the terminal is reduced. In addition, when the photosensitive element of the terminal is used for detecting the ambient light intensity, imaging is not needed, so that all photosensitive units of the photosensitive element do not need to work (namely, only part of the unit arrays of rows or columns need to work), and the calculation processing is simple when the ambient light intensity is detected.
In an alternative embodiment, the optical filter is removed from the optical path of the light-sensitive element receiving the ambient light signal; the control terminal emits an optical signal to the object to be detected, wherein the optical signal emitted by the terminal to the object to be detected is an infrared signal;
determining the distance between the object to be detected and the terminal according to the light quantity of the optical signal reflected by the object to be detected, which is received by the photosensitive element, wherein the distance is in positive correlation with the light quantity of the optical signal reflected by the object to be detected; determining whether the distance is less than a first distance threshold; or,
determining the distance between the object to be detected and the terminal according to the time when the terminal emits the optical signal to the object to be detected and the time when the photosensitive element receives the optical signal reflected by the object to be detected; determining whether the distance is less than a first distance threshold.
In practical implementation, a diode for emitting an infrared signal can be arranged on the terminal, and the diode is controlled to send the infrared signal to the object to be detected; in one example, the processor of the terminal controls the diode to send an infrared signal to the object to be detected, for example, the processor of the terminal may send a voltage control signal to the diode, where the diode sends an infrared signal outwards when the voltage control signal is a high level signal, and stops working and does not emit light outwards when the voltage control signal is a low level signal. The diode here may be an infrared diode.
Optionally, the diode may be located on the same side of the terminal as the camera, and the diode may be a part of an indicator light of the terminal, so that an existing opening of the terminal can be effectively utilized, and hardware manufacturing cost is reduced.
Preferably, before the control terminal transmits a light signal to the object to be detected, the infrared light gain of the photosensitive element can be increased, and/or the visible light gain of the photosensitive element can be decreased; therefore, the capacity of the photosensitive element for detecting infrared light is increased, and/or the capacity of the photosensitive element for detecting visible light is reduced, and as the distance between the object to be detected and the terminal is determined according to the infrared signal received by the photosensitive element and reflected by the object to be detected, the accuracy of determining the distance between the object to be detected and the terminal can be improved by increasing the infrared light gain of the photosensitive element and/or decreasing the visible light gain of the photosensitive element.
For the implementation of determining the distance between the object to be detected and the terminal, in one example, the distance between the object to be detected and the terminal may be determined according to the light quantity of the optical signal received by the photosensitive element and reflected by the object to be detected; the determined distance is positively correlated with the light quantity of the optical signal reflected by the object to be detected; preferably, the determined distance is proportional to the amount of light of the optical signal reflected by the object to be detected.
Here, the first distance threshold may be set according to actual application requirements, and the first distance threshold may be smaller than the detection distance of the existing proximity sensor, or may be larger than the detection distance of the existing proximity sensor; in actual implementation, a processor of the terminal can be used for judging whether the distance between the object to be detected and the terminal is smaller than a first distance threshold value; after judging whether the distance between the object to be detected and the terminal is smaller than the first distance threshold, controlling the terminal to execute corresponding operation according to the judgment result, for example, controlling the terminal to execute the first operation when the judgment result is that the distance between the object to be detected and the terminal is smaller than the first distance threshold; and when the judgment result is that the distance between the object to be detected and the terminal is greater than or equal to the first distance threshold, controlling the terminal to execute a second operation, wherein the first operation and the second operation can be two different operations.
Optionally, the determining the distance between the object to be detected and the terminal according to the light quantity of the optical signal received by the photosensitive element and reflected by the object to be detected includes:
converting the optical signal received by the photosensitive element and reflected by the object to be detected into an electrical signal, and determining the distance between the object to be detected and the terminal according to the current or voltage of the electrical signal; wherein the magnitude of the current or the magnitude of the voltage of the electrical signal is positively correlated with the amount of light of the optical signal reflected by the object to be detected, and the determined distance is positively correlated with the magnitude of the current or the magnitude of the voltage of the electrical signal.
Preferably, the magnitude of the current or the magnitude of the voltage of the electrical signal is proportional to the amount of light of the optical signal reflected by the object to be detected, and the determined distance is proportional to the magnitude of the current or the magnitude of the voltage of the electrical signal.
In the prior art, a proximity sensor or a distance sensor on a terminal is usually an optical displacement sensor, the proximity sensor or the distance sensor mainly comprises an infrared light source emitting infrared rays and a position detection element, and when the proximity sensor or the distance sensor works, infrared light emitted by the infrared light source is condensed by a lens and then irradiates an object to be detected; reflected light reflected by the object to be detected is concentrated on the position detection element through the light receiving lens, and the position detection element determines the distance between the object to be detected and the terminal according to a received light signal; if the position (distance from the terminal) of the object to be detected changes and the imaging position on the position detection element changes, the detection result by the position detection element changes, that is, the position of the center of gravity projected onto the position detection element is converted into a distance. Here, the Position detecting element may be a Position Sensitive Detector (PSD) or the like.
Compared with the prior art, in the embodiment of the invention, when the distance between the object to be detected and the terminal needs to be detected, the distance can be detected by using the photosensitive element of the camera of the terminal, so that a proximity sensor does not need to be additionally arranged on the terminal, the number of openings of the terminal can be reduced, and the hardware manufacturing cost of the terminal is reduced.
For implementations in which the filter is removed from the optical path on which the light-sensing element receives the ambient light signal, in an alternative embodiment, the removal of the filter may be implemented using a filter switching component; in practical implementation, the optical filter is a part of the optical filter switching component, and the optical filter switching component can receive a control signal from the terminal processor and move according to the control signal, so that the optical filter follows the movement.
In one example of the filter switching member, the filter switching member is electromagnetically driven to remove the filter from the optical path on which the light-sensing element receives the ambient light signal; the optical filter switching member includes: a magnet and a coil fixed to the filter, the coil being spaced from the magnet by a distance less than a second distance threshold when not energized; when the optical filter needs to be removed from the light path of the photosensitive element for receiving the ambient light signal, the coil can be electrified, so that the coil moves under the driving of the magnetic force of the magnet group; when the coil moves under the driving of the magnetic force of the magnet group, the optical filter is driven to be removed from the light path of the photosensitive element for receiving the ambient light signal. In practical implementation, the processor of the terminal may control the coil to enter the energized state by using the processor pair when it is determined that the filter needs to be removed from the optical path of the light-sensitive element for receiving the ambient light signal.
Here, the second distance threshold may be determined according to actual requirements to ensure that the coil can be subjected to a magnetic force enough to move itself when being powered; illustratively, the set threshold is related to the current when the coil is energized and the magnetic flux of the magnet; in one implementation of the location of the coil and the magnet, the magnet is annular in shape, and the coil is inside the annular magnet when not energized.
Preferably, the optical filter switching part further comprises an elastic sheet; when the coil moves under the driving of the magnetic force of the magnet group, the coil is pressed against the elastic sheet, so that the elastic sheet generates elastic deformation; when the coil is changed from a power-on state to a power-off state, the coil moves under the action of the elastic force of the elastic sheet, and then the optical filter is driven to move to a light path on which the light sensing element receives the ambient light signal; in practical implementation, when the processor of the terminal determines that the filter needs to be moved to the light path where the light sensing element receives the ambient light signal, the coil may be controlled to enter the power-off state.
By applying the first embodiment of the detection method, the functions of the optical sensor or the proximity sensor can be realized by utilizing the existing camera of the terminal, the optical sensor or the proximity sensor does not need to be additionally arranged on the terminal, the number of the openings of the shell of the terminal can be reduced under the condition of not influencing the habit of using the terminal by a user, the outer surface of the terminal is smoother, and the appearance of the terminal is beautified; the detection range of the photosensitive element of the camera exceeds the detection range of the proximity sensor or the optical sensor of the existing terminal, and the accuracy of the detection light of the photosensitive element of the camera is higher than that of the detection light of the optical sensor of the existing terminal, so that the detection range of the optical sensor or the proximity sensor realized on the terminal can be improved, the detection accuracy of the optical sensor realized on the terminal can be improved, and diversified applications can be developed.
Second embodiment
In order to further embody the object of the present invention, the first embodiment of the present invention is further illustrated.
In this embodiment, a process of photographing by a terminal is exemplified.
For example, when it is determined that the camera starts to operate, that is, when it is determined that the shooting function is turned on, the ambient light intensity may be determined according to the ambient light signal received by the photosensitive element; when the intensity of the ambient light is lower than a set threshold value, removing the optical filter from an optical path of the light sensing element for receiving the ambient light signal; and controlling the camera to shoot according to the visible light signal and the infrared signal received by the photosensitive element.
Here, the implementation of determining the intensity of the ambient light according to the ambient light signal received by the light sensing element has been described in the first embodiment of the present invention, and the implementation of removing the optical filter from the optical path of the light sensing element receiving the ambient light signal has been described in the first embodiment of the present invention, and is not described here again. In practical implementation, a digital signal processor of the terminal camera controls the camera to shoot according to the visible light signal and the infrared signal received by the photosensitive element.
It can be understood that when the ambient light intensity is lower than the set threshold, it is lower to explain the ambient light intensity, at this moment, with the light filter follow the light path that photosensitive element received the ambient light signal removes the back, and photosensitive element can receive visible light signal and infrared ray signal simultaneously, because all objects can constantly send the infrared light, compares in the camera that only can receive visible light, and the photosensitive volume obviously increases, consequently, can effectively improve the definition that dark environment shot.
It should be noted that when the ambient light intensity is greater than or equal to the set light intensity threshold, it indicates that the ambient light intensity is higher, and at this time, the position of the optical filter is kept unchanged, that is, the optical filter is located on the light path where the photosensitive element receives the ambient light signal, and the shooting can be completed according to the visible light signal received by the photosensitive element.
By applying the second embodiment of the invention, when shooting is carried out in a dark scene, the photosensitive element can simultaneously receive the visible light signal and the infrared signal, and compared with a camera only capable of receiving visible light, the photosensitive quantity is obviously increased, so that the shooting definition in a dark environment can be effectively improved; when a scene with enough ambient light intensity, such as a daytime scene, is shot, the optical filter switching component does not work, namely, light from the outside can enter a lens of the camera after being processed by the optical filter; the optical filter is located in front of the lens in a default mode, so that the problems of color cast and the like caused during shooting can be avoided.
Third embodiment
In order to further embody the object of the present invention, the following examples are further illustrated.
Fig. 2 is a schematic diagram of a first composition structure of a terminal according to an embodiment of the present invention, as shown in fig. 2, the terminal includes a light source 101, a filter switching component 103, a camera 104, and a processor 102; wherein,
the light source 101 can emit both visible light and infrared light, and in one example, the light source is a dual-purpose light emitting diode that can emit both visible light and infrared light, the light source can emit different types of light according to different control signals, and the control signals received by the light source can come from the processor; in another example, the light source includes two light emitting diodes, wherein one light emitting diode is a light emitting diode that emits visible light and the other light emitting diode is a light emitting diode that emits infrared light.
The processor 102 may be implemented by a processor chip of a mobile phone, and is used to control other devices to work, so as to complete corresponding functions.
In a specific example of the light source 101, the light source 101 is implemented by a dual-purpose light emitting diode group that can emit both infrared rays and normal visible rays, the dual-purpose light emitting diode including a visible light emitting diode for emitting visible rays and an infrared ray emitting diode for emitting infrared rays; normally, the visible light diode operates as an indicator light for the terminal. In a scene where a distance between an object and a terminal needs to be measured, the visible light diode of the light source 101 is controlled to be turned off, and the infrared diode of the light source 101 is controlled to be turned on to emit infrared rays.
For example, fig. 3 is a schematic circuit structure diagram of a light source in an embodiment of the present invention, and as shown in fig. 3, an LED01 and an LED02 respectively represent two-color indicator lights in a mobile phone, and the indicator lights LED01 and LED02 can emit visible lights of different colors when in operation; the LED03 is an infrared diode added in the embodiment of the present invention, R01 represents a resistor, a common node of cathodes of the indicator light LED01, the indicator light LED02 and the infrared diode LED03 is grounded after being connected in series with the resistor R01, the indicator light LED01, the indicator light LED02 and the infrared diode LED03 are respectively used for receiving a voltage signal, wherein, the voltage signal of the anode access of the indicator light LED01 is FLASH1, the voltage signal of the anode access of the indicator light LED02 is FLASH2, the voltage signal of the anode access of the infrared diode LED03 is FLASH3, the voltage signal FLASH3 is here seen as a control signal for the infrared diode LED03, in actual practice, the processor may be utilized to send a voltage signal FLASH3 to the anode of an infrared diode LED03, as will be appreciated, when the voltage signal FLASH3 is a high level signal, the infrared diode LED03 emits infrared light, when the voltage signal FLASH3 is a high level signal, the infrared diode LED03 does not emit infrared light (light-off).
In a specific example of the filter switching member 103, referring to fig. 4, the filter switching member 103 includes a power part 1031 and a filter 1032, the power part 1031 is used for driving the filter to move under the control of the control signal to control the camera photosensitive elements to receive different light rays to realize different functions.
In another specific example of the filter switching member 103, referring to fig. 5A and 5B, the filter switching member 103 includes a sleeve 203, a spring plate 202, a coil 201, a magnet group 204, a carrier 205, and a filter 1032; the sleeve 203 is fixed on the terminal housing or the main board or fixed together with the camera; the carrier 205 and the optical filter 1032 are fixed together, for example, the carrier 205 and the optical filter 1032 can be fixed by a connecting shaft, the sleeve 203 is a closed structure, only the power supply line of the coil 201 and the connecting shaft of the carrier 205 and the optical filter 1032 are connected, and the sleeve 203 can be used for protecting and fixing internal components; the elastic sheet 202 is fixed in the sleeve 203 and is in contact with the coil 201, and is used for limiting the movement range of the coil 201 or the carrier 205; the coil 201 is fixed in the magnet group 204 through a carrier 205, and the coil 201 and the carrier 205 are fixed together; when the coil 201 is not powered, the filter 1032 is located on the light path of the light sensing element for receiving the ambient light signal; when the coil 201 is energized, the coil 201 generates a magnetic field, and the magnetic field of the coil 201 interacts with the magnet set 204, so that the coil 201 moves linearly in the sleeve 203, and the carrier 205 and the optical filter 1032 are driven to move linearly together, so that the optical filter 1032 can be removed from the optical path of the photosensitive element receiving the ambient light signal; after the coil 201 stops supplying power, the coil 201 returns to the initial position under the action of the elastic sheet 202, and at this time, the optical filter 1032 moves to the light path on which the ambient light signal is received by the photosensitive element again; in this manner, movement of the filter 1032 is achieved.
Fig. 6 is a schematic structural diagram of a camera of a terminal according to an embodiment of the present invention, and in a specific example of the camera 104, referring to fig. 6, the camera 104 includes: the camera 1041 focuses incident light to the light sensing element 1042, the light sensing element 1042 converts the received light signal into an electrical signal, and sends the electrical signal to the digital signal processor, and finally the digital signal processor 1043 completes calculation and converts the calculation into a required result, and outputs the result from the interface circuit 1044 to the processor of the terminal.
The terminal can work in the following modes according to different use scenes:
normal use mode: the processor controls the light source to emit visible light according to the actual application requirement so as to prompt a user; the optical filter switching component does not work, namely, light from the outside can enter the lens of the camera after being processed by the optical filter; the optical filter is default positioned in front of the lens so as to avoid the problems of color cast and the like during shooting; when the camera is in the normal use mode, the shooting function can be started only when the camera receives a starting instruction (the controller generates the starting instruction according to the shooting instruction of the user).
Proximity sensor mode: in a scene that whether an object is close to the terminal or not needs to be judged, for example, in a scene that a user holds a phone and the like, the terminal can work in a proximity sensor mode; in the proximity sensor mode, the processor controls the light source to stop emitting visible light, controls the light source to emit infrared rays to an object to be detected, removes the optical filter in front of the camera lens by using the optical filter switching component, starts an infrared light intensity detection mode (realized by increasing infrared light gain of the photosensitive component and reducing visible light gain), projects light beams emitted by the object to be detected onto the photosensitive element, converts the light beams into distances according to the light quantity of optical signals received by the photosensitive element and through the digital signal processor, and then transmits the distances to the processor through the output interface circuit, so that the processor can determine the distance between the object to be detected and a terminal; that is, the proximity sensor may be implemented using a camera and an infrared diode that emits infrared rays.
Fig. 7 is a schematic diagram illustrating a proximity sensor mode of the terminal according to an embodiment of the present invention, as shown in fig. 7, in the proximity sensor mode, the processor controls to turn off the visible light diode, turn on the infrared diode 5003 to emit infrared rays, project the infrared rays emitted by the infrared diode 5003 onto the object to be detected 5001, and the optical filter switching component controls the power component to move the optical filter in front of the lens 5004 of the camera. The camera increases the infrared light gain of the photosensitive element 5005 and decreases the visible light gain of the photosensitive element 5005, so that the photosensitive element 5005 detects the light quantity of the light beam 5002 reflected by the object 5001 to be detected, and the light quantity is in direct proportion to the distance between the object 5001 to be detected and the terminal, therefore, the distance between the object 5001 to be detected and the terminal can be calculated according to the light quantity of the light beam 5002 reflected by the object 5001 to be detected and the light quantity of the light beam 5001 to be detected, and the calculation process can be realized by using a processor of the terminal or a digital signal processor in the camera.
Fig. 8 is a flowchart of a proximity sensor mode of a terminal according to an embodiment of the present invention, and as shown in fig. 8, the flowchart may include:
s801: the terminal processor receives a proximity sensor trigger event.
For example, the terminal processor may determine whether a condition for turning on the proximity sensor is satisfied in real time, and when it is determined that the condition for turning on the proximity sensor is satisfied, it is indicated that the processor receives a proximity sensor trigger event; the condition for turning on the proximity sensor may be preset, for example, after receiving a call-making instruction from the user, it is determined that the condition for turning on the proximity sensor is satisfied.
S802: the processor of the terminal controls to turn off the visible light diode and turn on the infrared diode to emit infrared rays.
The infrared rays emitted by the infrared diode in this step can be projected onto an object to be detected.
S803: the processor of the terminal controls the operation of the filter switching part to remove the filter from the front of the lens.
S804: and determining the distance between the object to be detected and the terminal according to the optical signal received by the photosensitive element and reflected by the object to be detected.
In an optional example, the camera starts an infrared light intensity detection mode (realized by increasing infrared light gain of a photosensitive element and reducing visible light gain), the photosensitive element converts a light signal received by the photosensitive element into an electric signal and sends the electric signal to a digital signal processor, then the distance between the object to be detected and the terminal is calculated by the digital signal processor, then the distance between the object to be detected and the terminal is transmitted to the processor by an output interface circuit,
the implementation of this step has already been described in the first embodiment of the present invention, and is not described here again.
S805: and the terminal processor receives the distance between the object to be detected and the terminal.
S806: the processor of the terminal controls the terminal to switch from the proximity sensor mode to the normal use mode.
Here, the proximity sensor mode and the normal use mode of the terminal have already been explained, and are not described in detail here.
S807: and the processor of the terminal judges whether the distance test needs to be continued according to the distance between the object to be detected and the terminal, if so, the step 802 is returned, otherwise, the step S808 is executed.
Here, the distance test means measuring a distance between the object to be detected and the terminal.
S808: and the processor of the terminal controls the working states of other devices of the terminal according to the distance between the object to be detected and the terminal, and then the process is ended.
For example, when it is determined that the distance between the object to be detected and the terminal is smaller than a first distance threshold, the display screen of the terminal may be closed; and when the distance between the object to be detected and the terminal is determined to be greater than or equal to the first distance threshold, starting a display screen of the terminal.
Light sensor mode: in a scene needing to detect the ambient light intensity, for example, a user opens a scene of automatic screen brightness adjustment, screen lightening and the like, the terminal can work in an optical sensor mode; in the optical sensor mode, the processor can control the camera to start the visible light intensity detection mode (namely, adopt the default optical gain setting), and the ambient light intensity is determined according to the light quantity projected to the photosensitive element by the ambient light. For example, the light quantity projected by the ambient light onto the photosensitive component may be converted into an electrical signal with an equal proportional size, and then the magnitude of the electrical signal is detected by the digital signal processor and converted into the ambient light intensity, and the digital signal processor transmits the ambient light intensity to the terminal processor through the output interface circuit for further judgment processing.
Fig. 9 is a flowchart of implementing an optical sensor mode of a terminal according to an embodiment of the present invention, and as shown in fig. 9, the flowchart may include:
s901: a light sensor trigger event is received by a processor of the terminal.
For example, the terminal processor may determine whether a condition for turning on the light sensor is satisfied in real time, and when it is determined that the condition for turning on the light sensor is satisfied, the processor receives a light sensor trigger event, where the condition for turning on the light sensor may be preset, for example, when an instruction for automatically adjusting the screen brightness is received and an instruction for a user to light the screen (for example, an instruction for the user to unlock the screen) is received, the condition for turning on the light sensor is determined to be satisfied.
S902: the terminal processor judges whether the camera is in a shooting mode, if so, after waiting for the camera not to be in the shooting mode, the step S903 is carried out; otherwise, directly entering step S903;
s903: and determining the intensity of the ambient light according to the ambient light signal received by the photosensitive element.
In an alternative example, the light sensing element may convert the light signal projected by the ambient light onto the light sensing element into an electrical signal with an equal proportional size, and send the electrical signal to the digital signal processor, and then the digital signal processor detects the size of the electrical signal and converts the size into the intensity of the ambient light, and the digital signal processor transmits the intensity of the ambient light to the terminal processor through the output interface circuit.
The implementation of this step has already been described in the first embodiment of the present invention, and is not described here again.
S904: the processor of the terminal receives the ambient light intensity.
S905: the processor of the terminal controls the terminal to switch from the light sensor mode to the normal use mode.
Here, the light sensor mode and the normal use mode of the terminal have already been explained, and are not described in detail here.
S906: and the processor of the terminal controls the working states of other devices of the terminal according to the ambient light intensity, and then the process is ended.
For example, the operating states of the other devices of the control terminal may be: the brightness of the Display screen of the terminal is adjusted, and the Display screen of the terminal can be a Liquid Crystal Display (LCD).
Dark environment shooting mode: when the camera is started, namely shooting is carried out by using the camera, firstly, the light intensity of the environment is detected by using a photosensitive element of the camera, when the light intensity of the environment is lower than a set light intensity threshold value, the processor judges that the environment where the current terminal is located is a dark environment, at the moment, the processor controls the light filter switching component to remove the light filter from the front of the lens of the camera, and at the moment, the lens of the camera can directly receive infrared rays; afterwards, control terminal is in normal use mode, so, visible light signal and infrared ray signal can be received simultaneously to the photosensitive element of camera, because all objects all can constantly send the infrared light, compare in the camera that only can receive visible light, the photosensitive volume obviously increases, consequently, can effectively improve the definition that dark environment shot.
Fig. 10 is a flowchart of implementing a dark environment shooting mode of a terminal according to an embodiment of the present invention, and as shown in fig. 10, the flowchart may include:
s1001: the processor of the terminal receives the shooting instruction.
S1002: and determining the intensity of the ambient light according to the ambient light signal received by the photosensitive element.
The implementation manner of this step is the same as that of step S903, and is not described here again.
S1003: the processor of the terminal receives the ambient light intensity.
S1004: the processor of the terminal determines whether the ambient light intensity is lower than the set light intensity threshold, if so, the process goes to step S1005, otherwise, the process goes to step S1006.
S1005: the processor of the terminal controls the operation of the filter switching part to remove the filter from the front of the lens, and then, step S1006 is executed.
S1006: and controlling the camera to enter a normal shooting mode by a processor of the terminal, and ending the process.
Fourth embodiment
In view of the foregoing detection methods, a fourth embodiment of the present invention provides a detection apparatus.
Fig. 11 is a schematic structural diagram of a detecting apparatus according to an embodiment of the present invention, and as shown in fig. 11, the detecting apparatus is located in a terminal, and the detecting apparatus includes a camera 104, a processor 102, and a filter configured to filter infrared rays; wherein,
the optical filter is positioned on a light path of a photosensitive element in the camera for receiving an ambient light signal;
the processor 102 is configured to control a photosensitive element in the camera to start working;
the light sensing element is configured to receive an ambient light signal and determine the amount of light of the received ambient light signal;
the processor 102 is further configured to determine the ambient light intensity according to a light amount of the ambient light signal received by the photosensitive element, wherein the ambient light intensity is positively correlated with the light amount of the ambient light signal.
Optionally, the processor 102 is further configured to, after determining that the camera starts to operate, control the optical filter to be removed from the optical path on which the light-sensing element receives the ambient light signal when it is determined that the ambient light intensity is lower than a set light intensity threshold; and controlling the camera to shoot according to the visible light signal and the infrared signal received by the photosensitive element.
Optionally, the processor 102 is further configured to control the optical filter to be removed from the optical path where the light sensing element receives the ambient light signal; the control terminal emits an optical signal to the object to be detected, wherein the optical signal emitted by the terminal to the object to be detected is an infrared signal;
the processor 102 is further configured to determine a distance between the object to be detected and the terminal according to the light quantity of the optical signal reflected by the object to be detected received by the photosensitive element, wherein the distance is in positive correlation with the light quantity of the optical signal reflected by the object to be detected; determining whether the distance is less than a first distance threshold; or,
determining the distance between the object to be detected and the terminal according to the time when the terminal emits the optical signal to the object to be detected and the time when the photosensitive element receives the optical signal reflected by the object to be detected; determining whether the distance is less than a first distance threshold.
Optionally, the apparatus further comprises a diode configured to emit an infrared signal;
the processor 102 is specifically configured to control the diode to transmit an infrared signal to the object to be detected.
Optionally, the apparatus further includes a filter switching component configured to drive the filter to move according to the received control signal;
the processor 102 is specifically configured to send a control signal to the filter switching component, so that the filter switching component drives the filter to be removed from the optical path on which the light sensing element receives the ambient light signal.
Optionally, the filter switching component is configured to drive the filter to be removed from the optical path of the ambient light signal received by the photosensitive element by adopting an electromagnetic driving mode.
Optionally, the filter switching member includes: a magnet and a coil fixed to the filter, the coil being spaced from the magnet by a distance less than a second distance threshold when not energized;
the processor 102 is specifically configured to control the coil to be electrified, so that the coil is driven by the magnetic force of the magnet group to move; the coil is configured to drive the optical filter to be removed from the light path of the ambient light signal received by the photosensitive element when the coil moves under the driving of the magnetic force of the magnet group.
In an exemplary embodiment, the present invention further provides a computer readable storage medium, such as a memory including a computer program, which is executable by the processor 102 of the apparatus for implementing the sensor on the terminal to complete the steps of the aforementioned method. The computer-readable storage medium may be a Memory such as a magnetic Random Access Memory (FRAM), a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a flash Memory (FlashMemory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); or may be a variety of devices including one or any combination of the above memories, such as a mobile phone, computer, tablet device, personal digital assistant, etc.
A computer readable storage medium is positioned in a terminal, the terminal comprises a camera, and an optical filter for filtering infrared rays is arranged on an optical path of a photosensitive element in the camera for receiving an ambient light signal; the computer-readable storage medium stores a computer program that, when executed by a processor, performs:
controlling the photosensitive element to start working;
determining the ambient light intensity according to the light quantity of the ambient light signal received by the photosensitive element, wherein the ambient light intensity is positively correlated with the light quantity of the ambient light signal.
Optionally, when executed by the processor, the computer program further performs:
converting the received ambient light signal into an electric signal by the photosensitive element, and determining the ambient light intensity according to the current or voltage of the electric signal; wherein the magnitude of the current or the magnitude of the voltage of the electrical signal is positively correlated with the amount of light of the ambient light signal, and the intensity of the ambient light is positively correlated with the magnitude of the current or the magnitude of the voltage of the electrical signal.
Optionally, when executed by the processor, the computer program further performs:
after the camera is determined to start working, when the ambient light intensity is lower than a set light intensity threshold value, removing the optical filter from a light path of the photosensitive element for receiving ambient light signals; and controlling the camera to shoot according to the visible light signal and the infrared signal received by the photosensitive element.
Optionally, when executed by the processor, the computer program further performs:
controlling the optical filter to be removed from an optical path of the light sensing element receiving the ambient light signal;
the control terminal emits an optical signal to the object to be detected, wherein the optical signal emitted by the terminal to the object to be detected is an infrared signal;
determining the distance between the object to be detected and the terminal according to the light quantity of the optical signal reflected by the object to be detected, which is received by the photosensitive element, wherein the distance is in positive correlation with the light quantity of the optical signal reflected by the object to be detected; determining whether the distance is less than a first distance threshold; or,
determining the distance between the object to be detected and the terminal according to the time when the terminal emits the optical signal to the object to be detected and the time when the photosensitive element receives the optical signal reflected by the object to be detected; determining whether the distance is less than a first distance threshold.
Optionally, when executed by the processor, the computer program further performs:
converting the optical signal received by the photosensitive element and reflected by the object to be detected into an electrical signal, and determining the distance between the object to be detected and the terminal according to the current or voltage of the electrical signal; wherein the magnitude of the current or the magnitude of the voltage of the electrical signal is positively correlated with the amount of light of the optical signal reflected by the object to be detected, and the determined distance is positively correlated with the magnitude of the current or the magnitude of the voltage of the electrical signal.
Optionally, when executed by the processor, the computer program further performs:
before the control terminal transmits the optical signal to the object to be detected, the method further comprises: increasing the infrared light gain of the photosensitive element, and/or decreasing the visible light gain of the photosensitive element.
Optionally, an optical filter switching component is arranged on the terminal, and the optical filter switching component is configured to drive the optical filter to move according to the received control signal;
the computer program, when executed by the processor, further performs:
and sending a control signal to the optical filter switching component to enable the optical filter switching component to drive the optical filter to be removed from the optical path of the ambient light signal received by the photosensitive element.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.
Claims (18)
1. A detection method is applied to a terminal, wherein the terminal comprises a camera, and the method comprises the following steps:
an optical filter for filtering infrared rays is arranged on a light path of a photosensitive element in the camera for receiving an ambient light signal;
controlling the photosensitive element to start working;
determining the ambient light intensity according to the light quantity of the ambient light signal received by the photosensitive element, wherein the ambient light intensity is positively correlated with the light quantity of the ambient light signal.
2. The method of claim 1, wherein determining the ambient light intensity from the amount of ambient light signal received by the light sensing element comprises:
converting the received ambient light signal into an electric signal by the photosensitive element, and determining the ambient light intensity according to the current or voltage of the electric signal; wherein the magnitude of the current or the magnitude of the voltage of the electrical signal is positively correlated with the amount of light of the ambient light signal, and the intensity of the ambient light is positively correlated with the magnitude of the current or the magnitude of the voltage of the electrical signal.
3. The method of claim 1, further comprising:
after the camera is determined to start working, when the ambient light intensity is lower than a set light intensity threshold value, removing the optical filter from a light path of the photosensitive element for receiving ambient light signals; and controlling the camera to shoot according to the visible light signal and the infrared signal received by the photosensitive element.
4. The method of claim 1, further comprising:
removing the optical filter from an optical path of the light sensing element receiving the ambient light signal;
the control terminal emits an optical signal to the object to be detected, wherein the optical signal emitted by the terminal to the object to be detected is an infrared signal;
determining the distance between the object to be detected and the terminal according to the light quantity of the optical signal reflected by the object to be detected, which is received by the photosensitive element, wherein the distance is in positive correlation with the light quantity of the optical signal reflected by the object to be detected; determining whether the distance is less than a first distance threshold; or,
determining the distance between the object to be detected and the terminal according to the time when the terminal emits the optical signal to the object to be detected and the time when the photosensitive element receives the optical signal reflected by the object to be detected; determining whether the distance is less than a first distance threshold.
5. The method according to claim 4, wherein determining the distance between the object to be detected and the terminal according to the light quantity of the light signal reflected by the object to be detected received by the photosensitive element comprises:
converting the optical signal received by the photosensitive element and reflected by the object to be detected into an electrical signal, and determining the distance between the object to be detected and the terminal according to the current or voltage of the electrical signal; wherein the magnitude of the current or the magnitude of the voltage of the electrical signal is positively correlated with the amount of light of the optical signal reflected by the object to be detected, and the determined distance is positively correlated with the magnitude of the current or the magnitude of the voltage of the electrical signal.
6. The method according to claim 4, wherein a diode for emitting an infrared signal is provided on the terminal;
the control terminal transmits optical signals to the object to be detected, and the control terminal comprises: and controlling the diode to send an infrared signal to the object to be detected.
7. The method of claim 4, wherein before the control terminal transmits the optical signal to the object to be detected, the method further comprises: increasing the infrared light gain of the photosensitive element, and/or decreasing the visible light gain of the photosensitive element.
8. The method according to claim 3 or 4, characterized in that the method further comprises: the terminal is provided with an optical filter switching component, and the optical filter switching component is used for driving the optical filter to move according to the received control signal;
the removing the optical filter from the optical path of the ambient light signal received by the photosensitive element includes:
and sending a control signal to the optical filter switching component to enable the optical filter switching component to drive the optical filter to be removed from the optical path of the ambient light signal received by the photosensitive element.
9. The method of claim 8, wherein the filter switching component drives the filter to be removed from the optical path on which the ambient light signal is received by the light-sensing element, comprising:
the optical filter switching component adopts an electromagnetic driving mode to drive the optical filter to be removed from the light path of the ambient light signal received by the photosensitive element.
10. The method according to claim 9, wherein the filter switching member comprises: a magnet and a coil fixed to the filter, the coil being spaced from the magnet by a distance less than a second distance threshold when not energized;
the optical filter switching component drives the optical filter to be removed from the light path of the ambient light signal received by the photosensitive element according to the electromagnetic driving mode, and comprises:
electrifying the coil to enable the coil to move under the driving of the magnetic force of the magnet group; when the coil moves under the driving of the magnetic force of the magnet group, the optical filter is driven to be removed from the light path of the photosensitive element for receiving the ambient light signal.
11. The method of claim 10, wherein the filter switching member further comprises a spring;
the method further comprises the following steps: when the coil moves under the drive of the magnetic force of the magnet group, the coil is pressed against the elastic sheet, so that the elastic sheet generates elastic deformation.
12. A detection device is characterized in that the device is positioned in a terminal and comprises a camera, a processor and an optical filter configured to filter infrared rays; wherein,
the optical filter is positioned on a light path of a photosensitive element in the camera for receiving an ambient light signal;
the processor is configured to control a photosensitive element in the camera to start working;
the light sensing element is configured to receive an ambient light signal and determine the amount of light of the received ambient light signal;
the processor is further configured to determine the ambient light intensity from a light amount of the ambient light signal received by the light sensing element, the ambient light intensity being positively correlated with the light amount of the ambient light signal.
13. The apparatus of claim 12, wherein the processor is further configured to control the filter to be removed from the light path of the light-sensing element receiving the ambient light signal when the ambient light intensity is determined to be lower than a set light intensity threshold after the camera is determined to be in operation; and controlling the camera to shoot according to the visible light signal and the infrared signal received by the photosensitive element.
14. The apparatus of claim 12, wherein the processor is further configured to control the filter to be removed from an optical path on which the light-sensing element receives the ambient light signal; the control terminal emits an optical signal to the object to be detected, wherein the optical signal emitted by the terminal to the object to be detected is an infrared signal;
the processor is further configured to determine a distance between the object to be detected and the terminal according to the light quantity of the optical signal reflected by the object to be detected received by the photosensitive element, wherein the distance is in positive correlation with the light quantity of the optical signal reflected by the object to be detected; determining whether the distance is less than a first distance threshold; or,
determining the distance between the object to be detected and the terminal according to the time when the terminal emits the optical signal to the object to be detected and the time when the photosensitive element receives the optical signal reflected by the object to be detected; determining whether the distance is less than a first distance threshold.
15. The apparatus of claim 14, further comprising a diode configured to emit an infrared signal;
the processor is specifically configured to control the diode to transmit an infrared signal to the object to be detected.
16. The apparatus according to claim 13 or 14, further comprising a filter switching component configured to drive the filter to move according to the received control signal;
the processor is specifically configured to send a control signal to the filter switching component, so that the filter switching component drives the filter to be removed from the light path on which the light sensing element receives the ambient light signal.
17. The apparatus of claim 16, wherein the filter switching component is configured to drive the filter to be removed from the optical path of the ambient light signal received by the photosensitive element by an electromagnetic drive.
18. The apparatus of claim 17, wherein the filter switching means comprises: a magnet and a coil fixed to the filter, the coil being spaced from the magnet by a distance less than a second distance threshold when not energized;
the processor is specifically configured to control the coil to be electrified, so that the coil moves under the driving of the magnetic force of the magnet group; the coil is configured to drive the optical filter to be removed from the light path of the ambient light signal received by the photosensitive element when the coil moves under the driving of the magnetic force of the magnet group.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710462376.8A CN109151331A (en) | 2017-06-19 | 2017-06-19 | A kind of detection method and device |
PCT/CN2018/071611 WO2018233277A1 (en) | 2017-06-19 | 2018-01-05 | Detection method and device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710462376.8A CN109151331A (en) | 2017-06-19 | 2017-06-19 | A kind of detection method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109151331A true CN109151331A (en) | 2019-01-04 |
Family
ID=64737510
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710462376.8A Pending CN109151331A (en) | 2017-06-19 | 2017-06-19 | A kind of detection method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109151331A (en) |
WO (1) | WO2018233277A1 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110727314A (en) * | 2019-09-27 | 2020-01-24 | 武汉华星光电技术有限公司 | Display device |
CN111641766A (en) * | 2020-06-03 | 2020-09-08 | 一汽解放汽车有限公司 | Camera device and vehicle |
CN112398970A (en) * | 2019-07-31 | 2021-02-23 | 北京小米移动软件有限公司 | Optical sensor, mobile terminal and visible light intensity detection method |
CN114063094A (en) * | 2021-11-16 | 2022-02-18 | 上海索迪龙自动化有限公司 | Photoelectric sensor based laser sensing distance method and photoelectric sensor |
CN116794068A (en) * | 2023-05-31 | 2023-09-22 | 成都瑞波科材料科技有限公司 | Rainbow pattern detection device and method for coating process and coating process equipment |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102055898A (en) * | 2009-11-09 | 2011-05-11 | 中美强科技股份有限公司 | Monitoring camera capable of setting color pictures or black and white pictures in specific time period |
CN103066087A (en) * | 2012-12-20 | 2013-04-24 | 格科微电子(上海)有限公司 | Imaging sensor module and handheld electronic device |
CN103515371A (en) * | 2012-06-27 | 2014-01-15 | 格科微电子(上海)有限公司 | Integrated optical sensor package |
US20140111953A1 (en) * | 2012-10-19 | 2014-04-24 | Apple Inc. | Electronic Devices With Components Mounted to Touch Sensor Substrates |
US20150207014A1 (en) * | 2012-09-11 | 2015-07-23 | Sharp Kabushiki Kaisha | Sensor, display device, mobile telephone, and digital camera |
CN105933519A (en) * | 2016-04-22 | 2016-09-07 | 广东欧珀移动通信有限公司 | Screen brightness adjusting method and device and mobile terminal |
US20170019577A1 (en) * | 2015-07-17 | 2017-01-19 | Dell Products L.P. | Safety circuit for infrared and laser imaging devices |
CN106657737A (en) * | 2016-12-14 | 2017-05-10 | 北京小米移动软件有限公司 | Camera assembly and terminal |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR0132789Y1 (en) * | 1995-05-10 | 1999-03-30 | 고성욱 | Open/close apparatus of infrared filter for a camera |
CN203313287U (en) * | 2013-06-17 | 2013-11-27 | 深圳警翼数码科技有限公司 | Photographic device |
CN104717347A (en) * | 2013-12-13 | 2015-06-17 | 中兴通讯股份有限公司 | Method, device and terminal for liquid crystal display backlight management |
CN104980639A (en) * | 2014-04-03 | 2015-10-14 | 杭州华为企业通信技术有限公司 | Infrared control device, infrared control method and image camera |
CN104883484B (en) * | 2015-01-23 | 2018-12-21 | 余姚舜宇智能光学技术有限公司 | Security system, security protection camera module and its manufacturing method |
CN106161728B (en) * | 2015-03-24 | 2020-03-24 | 联想(北京)有限公司 | Sensing device, electronic equipment and detection method |
-
2017
- 2017-06-19 CN CN201710462376.8A patent/CN109151331A/en active Pending
-
2018
- 2018-01-05 WO PCT/CN2018/071611 patent/WO2018233277A1/en active Application Filing
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102055898A (en) * | 2009-11-09 | 2011-05-11 | 中美强科技股份有限公司 | Monitoring camera capable of setting color pictures or black and white pictures in specific time period |
CN103515371A (en) * | 2012-06-27 | 2014-01-15 | 格科微电子(上海)有限公司 | Integrated optical sensor package |
US20150207014A1 (en) * | 2012-09-11 | 2015-07-23 | Sharp Kabushiki Kaisha | Sensor, display device, mobile telephone, and digital camera |
US20140111953A1 (en) * | 2012-10-19 | 2014-04-24 | Apple Inc. | Electronic Devices With Components Mounted to Touch Sensor Substrates |
CN103066087A (en) * | 2012-12-20 | 2013-04-24 | 格科微电子(上海)有限公司 | Imaging sensor module and handheld electronic device |
US20170019577A1 (en) * | 2015-07-17 | 2017-01-19 | Dell Products L.P. | Safety circuit for infrared and laser imaging devices |
CN105933519A (en) * | 2016-04-22 | 2016-09-07 | 广东欧珀移动通信有限公司 | Screen brightness adjusting method and device and mobile terminal |
CN106657737A (en) * | 2016-12-14 | 2017-05-10 | 北京小米移动软件有限公司 | Camera assembly and terminal |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112398970A (en) * | 2019-07-31 | 2021-02-23 | 北京小米移动软件有限公司 | Optical sensor, mobile terminal and visible light intensity detection method |
CN110727314A (en) * | 2019-09-27 | 2020-01-24 | 武汉华星光电技术有限公司 | Display device |
CN111641766A (en) * | 2020-06-03 | 2020-09-08 | 一汽解放汽车有限公司 | Camera device and vehicle |
CN114063094A (en) * | 2021-11-16 | 2022-02-18 | 上海索迪龙自动化有限公司 | Photoelectric sensor based laser sensing distance method and photoelectric sensor |
CN116794068A (en) * | 2023-05-31 | 2023-09-22 | 成都瑞波科材料科技有限公司 | Rainbow pattern detection device and method for coating process and coating process equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2018233277A1 (en) | 2018-12-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109151331A (en) | A kind of detection method and device | |
TWI625564B (en) | Multiple lens system and portable electronic device with same | |
US9973743B2 (en) | Electronic device having dynamically controlled flashlight for image capturing and related control method | |
CN105376492B (en) | Lens unit | |
CN112351184B (en) | Camera light supplementing method and device | |
KR102661185B1 (en) | Electronic device and method for obtaining images | |
KR20140128885A (en) | Power efficient image sensing apparatus, method of operating the same and eye/gaze tracking system | |
KR102668233B1 (en) | Electronic device for obtaining images by controlling frame rate for external object moving through point ofinterest and operating method thereof | |
CN102472950A (en) | Image pickup apparatus and mobile phone equipped therewith | |
US9571747B2 (en) | Illumination apparatus, imaging apparatus, and camera system | |
KR20200089593A (en) | Method to obtain outside luminance using camera sensor and electronic device applying the method | |
US20150312462A1 (en) | Image capturing apparatus and method for controlling the same | |
US20190230271A1 (en) | Image pickup apparatus controlling flashes, and control method therefor | |
CN116339049A (en) | TOF sensor and projection correction method and system based on TOF sensor | |
JP2019184710A (en) | Imaging device, light emission control method of the same and program thereof | |
US8306411B2 (en) | Photographic apparatus | |
JP5293037B2 (en) | Continuous shooting drive controller | |
US10015381B2 (en) | Imaging system, illumination apparatus, and controlling method | |
US20190313004A1 (en) | Light-emitting apparatus for shooting with flash, charging control method therefor, and storage medium | |
JP2005010313A (en) | Imaging device | |
JP2019132586A (en) | Sensor and electronic device | |
JP2009177680A (en) | Camera | |
JP2007086181A (en) | Imaging apparatus, imaging method and program | |
US11825208B2 (en) | Image capturing apparatus capable of continuous shooting, lighting device, and methods of controlling them | |
JPH10341359A (en) | Camera having macro-mode alarm |
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: 20190104 |
|
RJ01 | Rejection of invention patent application after publication |