WO2018233277A1 - 检测方法、装置及存储介质 - Google Patents

检测方法、装置及存储介质 Download PDF

Info

Publication number
WO2018233277A1
WO2018233277A1 PCT/CN2018/071611 CN2018071611W WO2018233277A1 WO 2018233277 A1 WO2018233277 A1 WO 2018233277A1 CN 2018071611 W CN2018071611 W CN 2018071611W WO 2018233277 A1 WO2018233277 A1 WO 2018233277A1
Authority
WO
WIPO (PCT)
Prior art keywords
signal
photosensitive element
ambient light
filter
terminal
Prior art date
Application number
PCT/CN2018/071611
Other languages
English (en)
French (fr)
Inventor
贾玉韬
Original Assignee
西安中兴新软件有限责任公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 西安中兴新软件有限责任公司 filed Critical 西安中兴新软件有限责任公司
Publication of WO2018233277A1 publication Critical patent/WO2018233277A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/71Circuitry for evaluating the brightness variation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene

Definitions

  • the present invention relates to terminal sensor technology, and more particularly to a detection method, apparatus and computer readable storage medium.
  • openings near the handset of the terminal products such as mobile phones, such as front camera, proximity sensor or distance sensor, light sensor, indicator light, etc. Excessive openings will affect the overall appearance of the mobile phone; on the other hand, each opening is also necessary. Sexuality and added functions are also very useful.
  • the front camera is mainly used for self-timer and video chat.
  • the proximity sensor or distance sensor can be used to clear the screen when answering the call to avoid false triggering and power saving.
  • the light sensor is mainly used according to the environment. Light adjusts the brightness of the display.
  • the indicator light is mainly used for signal and power indication. It is not worth the loss to directly remove these functions to improve the appearance.
  • the embodiment of the invention provides a detection method, a device and a computer readable storage medium, which can realize the corresponding sensor function by using the camera of the terminal, and can reduce the manufacturing cost of the terminal.
  • the ambient light intensity is determined based on the amount of ambient light signal received by the photosensitive element, the ambient light intensity being positively correlated with the amount of ambient light signal.
  • an embodiment of the present invention further provides a detecting device, where the device is located in a terminal, the device includes a camera, a processor, and a filter configured to filter out infrared rays;
  • the filter is located on an optical path of the ambient light signal received by the photosensitive element in the camera;
  • the processor is configured to control a photosensitive element in the camera to start working
  • the photosensitive element is configured to receive an ambient light signal and determine a quantity of light of the received ambient light signal
  • the processor is further configured to determine the ambient light intensity according to an amount of ambient light signals received by the photosensitive element, the ambient light intensity being positively correlated with the amount of ambient light signals.
  • FIG. 1 is a flowchart of a detection method according to an embodiment of the present invention.
  • FIG. 2 is a schematic structural diagram of a component of a terminal according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a component of a filter switching component according to an embodiment of the present invention.
  • FIG. 5A is an exploded view showing the structure of a filter switching member according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a principle of a proximity sensor mode of a terminal according to an embodiment of the present invention.
  • FIG. 9 is a flowchart of implementing a light sensor mode of a terminal according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a structure of a detecting apparatus according to an embodiment of the present invention.
  • the embodiment of the invention discloses a detection method and device, which can be applied to a terminal, the terminal can be a fixed terminal such as a computer, or a mobile terminal such as a mobile phone or a tablet computer; the camera is provided on the terminal, and the camera can be a terminal.
  • the front camera can also be the rear camera of the terminal.
  • the camera is mainly composed of a lens, a photosensitive element, a digital signal processor, and an output interface circuit; when the camera is used for shooting, the lens aggregates the incident light to the photosensitive element, and the photosensitive element images the received light in the photosensitive array, and is converted by the optical signal.
  • the digital signal processor receives the electrical signal and performs a calculation based on the received electrical signal to convert the desired result from the interface circuit to the processor of the terminal.
  • the type of the photosensitive element in the camera may be a Complementary Metal-Oxide Semiconductor (CMOS) device or a Charge Coupled Device (CCD). In the embodiment of the present invention, the type of the photosensitive element is not used.
  • the photosensitive element in the camera can be used to detect visible light and infrared light.
  • the visible light gain and the infrared gain can be respectively set for the photosensitive element, wherein the visible light gain is used to characterize the ability of the photosensitive element to receive visible light, and the infrared gain is used to characterize the photosensitive light.
  • the ability of the component to receive infrared gain; in an alternative embodiment, the visible light gain and infrared gain of the photosensitive element are adjustable.
  • FIG. 1 is a flowchart of a detection method according to an embodiment of the present invention. As shown in FIG. 1, the process may include:
  • Step S1 providing a filter for filtering infrared rays on an optical path of the photosensitive element in the camera receiving the ambient light signal;
  • the filter is located on the optical path of the photosensitive element receiving the ambient light signal, that is, the filter is located in front of the lens of the camera, and the external light (including infrared and visible light) is filtered by the filter. Entering the lens, after being processed by the lens, is transmitted to the photosensitive element, such that the ambient light signal received by the photosensitive element is an ambient light signal processed by the filter
  • the photosensitive element can detect the visible light signal in the environment, reduce the influence of the infrared signal on the photosensitive element, and improve the accuracy of detecting the visible light signal of the photosensitive element.
  • the photosensitive element can be operated under the control of an external control signal, and the photosensitive element can receive light from the outside when the photosensitive element is in operation; the light received by the photosensitive element can be visible light or infrared light.
  • the photosensitive element when controlling the photosensitive element to work, only a part of the components in the camera need to be utilized, and it is not necessary to use all the components in the camera.
  • the lens in the camera, the photosensitive element, and The output interface circuit does not use a digital signal processor.
  • the signal output end of the photosensitive element can be directly connected to the input end of the output interface circuit, and the photosensitive element outputs the electrical signal after converting the received optical signal into an electrical signal.
  • the output interface circuit After which the electrical signal is output by the output interface circuit to the processor of the terminal.
  • this step can be implemented by using the processor of the terminal.
  • the amount of light of the optical signal received by the photosensitive element is determined by the number of pixels (photosensitive units) on which the ambient light signal is detected on the photosensitive element, specifically, the pixel (photosensitive unit) that detects the ambient light signal. The larger the number, the larger the amount of light of the optical signal received by the photosensitive element.
  • the electrical signal described above may be output to a processor of the terminal, and then the processor determines the ambient light intensity based on the current magnitude or voltage magnitude of the electrical signal.
  • an optical sensor is usually additionally disposed on the terminal, and the ambient light intensity is detected by using the optical sensor.
  • the diode may be located on the same side of the terminal as the camera, and the diode may be part of the indicator light of the terminal, so that the existing opening of the terminal can be effectively utilized, and the hardware manufacturing cost is reduced.
  • the infrared light gain of the photosensitive element may be increased, and/or the visible light gain of the photosensitive element may be lowered; thus, the photosensitive element detects infrared light.
  • the ability to increase, and/or the ability of the photosensitive element to detect visible light is reduced, since 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, then Increasing the infrared light gain of the photosensitive element, and/or lowering the visible light gain of the photosensitive element, can improve the accuracy of determining the distance between the object to be detected and the terminal.
  • the object to be detected may be determined according to the amount of light of the light signal reflected by the object to be detected received by the photosensitive element The distance of the terminal; the determined distance is positively correlated with the amount of light 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.
  • the first distance threshold may be set according to actual application requirements.
  • the first distance threshold may be smaller than the detection distance of the existing proximity sensor, or may be greater than the detection distance of the existing proximity sensor; in actual implementation, the terminal may be utilized.
  • the processor determines whether the distance between the object to be detected and the terminal is less than the first distance threshold; after determining whether the distance between the object to be detected and the terminal is less than the first distance threshold, the control terminal may perform a corresponding operation according to the determination result, for example, When the result of the determination is that the distance between the object to be detected and the terminal is less than the first distance threshold, the control terminal performs a first operation; when the result of the determination is that the distance between the object to be detected and the terminal is greater than or equal to the first distance threshold, The control terminal performs a second operation, which may be two different operations.
  • the current magnitude or voltage magnitude 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 or voltage magnitude of the electrical signal.
  • the current magnitude or voltage magnitude of the electrical signal is proportional to the amount of light of the optical signal reflected by the object to be detected, the determined distance being proportional to the magnitude or magnitude of the current of the electrical signal.
  • the proximity sensor or the distance sensor on the terminal is usually an optical displacement sensor, and the proximity sensor or the distance sensor is mainly an infrared light source and a position detecting element that emit infrared rays, and the infrared light source is operated when the proximity sensor or the distance sensor operates.
  • the emitted infrared light is condensed by the lens and irradiated onto the object to be detected; the reflected light reflected by the object to be detected is concentrated by the light receiving lens onto the position detecting element, and the position detecting element determines the object to be detected according to the received light signal.
  • the photosensitive element of the camera of the terminal when it is required to detect the distance between the object to be detected and the terminal, the photosensitive element of the camera of the terminal can be used, so that it is not necessary to additionally provide a proximity sensor on the terminal, which can be reduced.
  • the number of openings in the terminal and the hardware manufacturing cost of the terminal when it is required to detect the distance between the object to be detected and the terminal, the photosensitive element of the camera of the terminal can be used, so that it is not necessary to additionally provide a proximity sensor on the terminal, which can be reduced.
  • the filter switching component can be utilized to achieve the removal of the filter;
  • the filter switching component can receive the control signal from the terminal processor and move according to the control signal, so that the filter follows the movement, for example, the filter switching
  • the components can be realized by an electromagnetic driving method or a motor or the like.
  • the filter switching member is electromagnetically driven, and the driving filter is removed from the optical path of the photosensitive member receiving the ambient light signal;
  • the filter switching member includes: a magnet group and a coil fixed to the filter, the coil having a distance from the magnet group when the coil is not energized is less than a second distance threshold; removing the optical path that requires the filter to receive an ambient light signal from the photosensitive element
  • the coil may be energized to cause the coil to move under the magnetic force of the magnet group; when the coil is driven by the magnetic force of the magnet group, the filter is driven from the The photosensitive element is removed from the optical path that receives the ambient light signal.
  • the processor of the terminal can use the processor pair to control the coil to enter an energized state when it is determined that the filter needs to be removed from the optical path of the ambient light signal received by the photosensitive element.
  • the second distance threshold may be determined according to actual needs to ensure that the coil can be subjected to a magnetic force sufficient to move itself when energized; for example, the set threshold is related to the current when the coil is energized and the magnetic flux of the magnet group; In one implementation of the position of the set, the magnet set is in the shape of a ring, and the coil is inside the annular magnet set when the coil is not energized.
  • the filter switching member further comprises a spring piece; when the coil is driven by the magnetic force of the magnet group, the elastic piece is pressed to cause the elastic piece to be elastically deformed; when the coil is changed from the energized state to the power-off state When the coil moves under the elastic force of the elastic piece, the filter is moved to the optical path of the photosensitive element to receive the ambient light signal; in actual implementation, when the processor of the terminal determines that the filter needs to be moved to the photosensitive element to receive When the ambient light signal is on the optical path, the coil can be controlled to enter a power-off state.
  • the first embodiment of the detecting method of the present invention can realize the function of the light sensor or the proximity sensor by using the camera existing in the terminal, without additionally setting a light sensor or a proximity sensor on the terminal, and can affect the habit of the user using the terminal.
  • reducing the number of openings of the outer casing of the terminal is that the outer surface of the terminal is flatter, and the appearance of the terminal is beautified; since 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, the camera The accuracy of the detection light of the photosensitive element is greater than the accuracy of the detection light of the optical sensor of the existing terminal, so that the detection range of the light sensor or the proximity sensor implemented on the terminal can be improved, and the detection accuracy of the light sensor realized on the terminal can be improved. In order to develop a variety of applications.
  • the ambient light intensity when it is determined that the camera starts to run, that is, when the shooting function is determined to be turned on, the ambient light intensity may be determined according to the ambient light signal received by the photosensitive element; when the ambient light intensity is lower than the set threshold, The filter is removed from the optical path of the ambient light signal received by the photosensitive element; and the camera is controlled to capture according to the visible light signal and the infrared signal received by the photosensitive element.
  • the photosensitive element can simultaneously Receiving visible light signals and infrared signals, since all objects will continuously emit infrared light, the amount of light is significantly increased compared to a camera that can only receive visible light, so that the sharpness of shooting in a dark environment can be effectively improved.
  • the ambient light intensity is greater than or equal to the set light intensity threshold, the ambient light intensity is high. At this time, the position of the filter is kept unchanged, that is, the filter is in the receiving element of the ambient light signal. On the light path, shooting can be completed according to the visible light signal received by the photosensitive element.
  • the terminal includes a light source 101, a filter switching component 103, a camera 104, and a processor 102.
  • the processor can send the voltage signal FLASH3 to the anode of the infrared diode LED03. It can be understood that when the voltage signal FLASH3 is a high level signal, the infrared signal Diode LED03 emits infrared light, and the voltage signal FLASH3 is high level. When the signal is applied, the infrared diode LED03 does not emit infrared light (extinction).
  • the filter switching member 103 includes a power portion 1031 and a filter 1032, and the power portion 1031 drives the filter to move under the control of a control signal. Different functions are achieved by controlling the camera photosensitive element to receive different light.
  • the filter switching member 103 includes a sleeve 203, a spring 202, a coil 201, a magnet group 204, a carrier 205, and a filter 1032.
  • the sleeve 203 is fixed to the terminal housing or the main board or fixed together with the camera; the carrier 205 is fixed with the filter 1032.
  • the carrier 205 and the filter 1032 can be fixed by the connecting shaft, and 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 filter 1032, the sleeve 203 can be used to protect and fix the internal components;
  • the elastic piece 202 is fixed in the sleeve 203 and is in contact with the coil 201, The range of movement of the limiting coil 201 or the carrier 205 is fixed;
  • the coil 201 is fixed in the magnet group 204 by the carrier 205, and the coil 201 is fixed together with the carrier 205; when the coil 201 is not powered, the filter 1032 is located at the photosensitive element to receive an ambient light signal.
  • the coil 201 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 group 204 to linearly move the coil 201 in the sleeve 203, thereby driving the carrier 205 and filtering
  • the strips 1032 are moved together in a straight line, so that the filter 1032 can be removed from the optical path of the ambient light signal received by the photosensitive element; after the coil 201 stops supplying power, the coil 201 returns to the initial position under the action of the elastic piece 202, At this time, the filter 1032 is moved again to the optical path where the photosensitive element receives the ambient light signal; thus, the movement of the filter 1032 is achieved.
  • the camera 104 includes: a lens 1041, a photosensitive element 1042, a digital signal processor 1043, and an output interface circuit 1044.
  • the lens 1041 aggregates the incident light into the photosensitive element 1042, and the photosensitive element 1042 converts the received optical signal into an electrical signal, and transmits the electrical signal to the digital signal processor, and finally the digital signal processor 1043 completes the calculation and converts it into a required signal.
  • the result is output from the interface circuit 1044 to the processor of the terminal.
  • the processor controls the light source to emit visible light according to the actual application requirements to prompt the user; the filter switching component does not work, that is, the light from the outside needs to be processed by the filter to enter the lens of the camera; the filter defaults It is located in front of the lens to avoid problems such as color cast during shooting.
  • the camera can only turn on the shooting function when it receives an open command (the controller generates an open command according to the user's shooting command).
  • Proximity sensor mode In a scene where it is necessary to determine whether the object is close to the terminal, for example, when the user holds the call and the like, the terminal can work in the proximity sensor mode; in the proximity sensor mode, the processor controls the light source to stop emitting visible light and control The light source emits infrared rays to the object to be detected, and the filter in front of the camera lens is removed by the filter switching component, and the infrared light intensity detection mode is turned on by the camera (by adjusting the infrared light gain of the photosensitive component to reduce the visible light gain), The light beam emitted from the detecting object is projected onto the photosensitive element, and is converted into a distance by the digital signal processor according to the amount of light received by the photosensitive element, and then transmitted to the processor by the output interface circuit, so that the processor can determine The distance between the object to be detected and the terminal; that is, the proximity sensor can be realized by using a camera and an infrared diode that emits infrared rays.
  • FIG. 7 is a schematic diagram showing the principle of a proximity sensor mode of a terminal according to an embodiment of the present invention.
  • the processor controls to turn off the visible light diode, turn on the infrared diode 5003 to emit infrared rays, and the infrared light emitted by the infrared diode 5003.
  • the filter switching member controls the power portion to move the filter in front of the lens 5004 of the camera.
  • FIG. 8 is a flowchart of implementing a proximity sensor mode of a terminal according to an embodiment of the present invention. As shown in FIG. 8, the process may include:
  • S801 The terminal processor receives the proximity sensor trigger event.
  • the terminal processor can determine in real time whether the condition for turning on the proximity sensor is satisfied, and the condition that the proximity sensor is turned on is determined, indicating that the processor receives the proximity sensor trigger event; the condition for turning on the proximity sensor can be preset, for example, After the user's call instruction is made, it is determined that the condition for turning on the proximity sensor is satisfied.
  • infrared rays emitted from the infrared diode can be projected onto the object to be detected.
  • S803 The processor of the terminal controls the filter switching component to work to remove the filter from the front of the lens.
  • S804 Determine a distance between the object to be detected and the terminal according to an optical signal received by the photosensitive element and reflected by the object to be detected.
  • the camera turns on the infrared light intensity detection mode (by adjusting the infrared light gain of the photosensitive component to reduce the visible light gain), and the photosensitive element converts the optical signal received by the photosensitive element into an electrical signal, and sends the electrical signal to the a digital signal processor, after which the distance between the object to be detected and the terminal is calculated by a digital signal processor, and then the distance between the object to be detected and the terminal is transmitted to the processor by the output interface circuit.
  • S806 The processor of the terminal controls the terminal to switch from the proximity sensor mode to the normal use mode.
  • the distance test refers to measuring the distance between the object to be detected and the terminal.
  • S808 The processor of the terminal controls the working state of other devices of the terminal according to the distance between the object to be detected and the terminal, and then ends the process.
  • the display screen of the terminal may be closed; when it is determined that the distance between the object to be detected and the terminal is greater than or equal to the first distance threshold, the terminal may be opened. Display.
  • Light sensor mode In scenes where ambient light intensity needs to be detected, for example, the user turns on the screen brightness automatically and the screen lights up, the terminal can work in the light sensor mode; in the light sensor mode, the processor can control the camera to turn on the visible light intensity.
  • the detection mode ie, using the default light gain setting
  • the intensity is passed to the terminal processor through the output interface circuit for further decision processing.
  • the terminal processor can determine in real time whether the condition for turning on the light sensor is satisfied. When it is determined that the condition for turning on the light sensor is satisfied, the processor receives the light sensor trigger event.
  • the condition for turning on the light sensor can be preset, for example, for example.
  • step S902 The terminal processor determines whether the camera is in the shooting mode, and if so, after waiting for the camera not to be in the shooting mode, proceeds to step S903; otherwise, directly proceeds to step S903;
  • S903 Determine an ambient light intensity according to the ambient light signal received by the photosensitive element.
  • S904 The processor of the terminal receives the ambient light intensity.
  • S905 The processor of the terminal controls the terminal to switch from the optical sensor mode to the normal use mode.
  • S906 The processor of the terminal controls the working state of other devices of the terminal according to the ambient light intensity, and then ends the process.
  • the operating state of other devices controlling the terminal may be: adjusting the brightness of the display screen of the terminal, and the display screen of the terminal may be a liquid crystal display (LCD).
  • LCD liquid crystal display
  • the dark environment shooting mode When the camera is turned on, that is, when shooting with the camera, the ambient light intensity is first detected by the photosensitive element of the camera. When the ambient light intensity is lower than the set light intensity threshold, the processor determines the environment in which the current terminal is located. In the dark environment, at this time, the processor controls the filter switching component to remove the filter from the front of the camera lens. At this time, the lens of the camera can directly receive the infrared light; after that, the control terminal is in the normal use mode, thus, The photosensitive element of the camera can receive visible light signals and infrared signals at the same time. Since all objects will continuously emit infrared light, the sensitivity of the camera is significantly increased compared to the camera that can only receive visible light, thus effectively improving the sharpness of shooting in dark environments. .
  • FIG. 10 is a flowchart of implementing a dark environment shooting mode of a terminal according to an embodiment of the present invention. As shown in FIG. 10, the process may include:
  • S1001 The processor of the terminal receives a shooting instruction.
  • step S903 The implementation of this step is the same as the implementation of step S903, and details are not described herein again.
  • S1003 The processor of the terminal receives the ambient light intensity.
  • step S1004 The processor of the terminal determines whether the ambient light intensity is lower than the set light intensity threshold. If yes, the process proceeds to step S1005. Otherwise, the process proceeds to step S1006.
  • step S1005 The processor of the terminal controls the filter switching component to work to remove the filter from the front of the lens, and then step S1006 is performed.
  • S1006 The processor of the terminal controls the camera to enter the normal shooting mode, and then ends the process.
  • the fourth embodiment of the present invention proposes a detecting device.
  • the filter is located on an optical path of the ambient light signal received by the photosensitive element in the camera;
  • the processor 102 is configured to control a photosensitive element in the camera to start working
  • the processor 102 is further configured to determine the ambient light intensity according to an amount of ambient light signals received by the photosensitive element, the ambient light intensity being positively correlated with the amount of ambient light signals.
  • the processor 102 is further configured to, after determining that the camera starts to work, control the filter from the sensitization when determining that the ambient light intensity is lower than a set light intensity threshold.
  • the component is removed from the optical path of the ambient light signal; the camera is controlled to capture according to the visible light signal and the infrared signal received by the photosensitive element.
  • the processor 102 is further configured to control the optical filter to remove the optical signal from the photosensitive element to receive an ambient light signal; and the control terminal transmits an optical signal to the object to be detected, where 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, according to the amount of light of the optical signal reflected by the object to be detected received by the photosensitive element, a distance between the object to be detected and the terminal, and the distance is determined by the Detecting a positive correlation of the amount of light of the optical signal reflected by the object; determining whether the distance is less than a first distance threshold; or
  • the device further includes a diode configured to emit an infrared signal
  • the processor 102 is specifically configured to control the diode to send an infrared signal to the object to be detected.
  • 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 driving filter is removed from the optical path of the photosensitive element receiving the ambient light signal.
  • the filter switching component includes: a magnet group and a coil fixed to the filter, the coil is less than a second distance threshold when the power is not energized;
  • EPROM Erasable Programmable Read-Only Memory
  • EEPROM Electrically Erasable Programmable Read-Only Memory
  • Flash Memory Magnetic Surface Memory
  • Optical Disc Or a memory such as a CD-ROM (Compact Disc Read-Only Memory); or a device including one or any combination of the above memories, such as a mobile phone, a computer, a tablet device, a personal digital assistant, or the like.
  • the computer readable storage medium provided by the embodiment of the present invention is located at a terminal, and the terminal includes a camera, and a filter for filtering infrared rays is disposed on an optical path of the photosensitive element in the camera receiving the ambient light signal;
  • the readable storage medium stores a computer program that, when executed by the processor, executes:
  • the computer program when executed by the processor, it further performs:
  • the photosensitive element converts the received ambient light signal into an electrical signal, and determines the ambient light intensity according to a current magnitude or a voltage magnitude of the electrical signal; wherein the current magnitude or voltage magnitude of the electrical signal is The amount of light of the ambient light signal is positively correlated, and the ambient light intensity is positively correlated with the magnitude or voltage magnitude of the electrical signal.
  • the received visible light signal and the infrared signal are controlled to control the camera for shooting.
  • the computer program when executed by the processor, it further performs:
  • the computer program when executed by the processor, it further performs:
  • the current magnitude or voltage magnitude 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 or voltage magnitude of the electrical signal.
  • the computer program when executed by the processor, it further performs:
  • the terminal is provided with a filter switching component, and the filter switching component is configured to drive the filter to move according to the received control signal;
  • a control signal is sent to the filter switching unit to cause the filter switching member driving filter to be removed from the optical path of the photosensitive element receiving the ambient light signal.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • a filter for filtering infrared rays is disposed on an optical path of the photosensitive element receiving the ambient light signal in the camera; controlling the photosensitive element to start working; determining according to the amount of ambient light signal received by the photosensitive element The ambient light intensity and the ambient light intensity are positively correlated with the amount of ambient light signal; thus, at least the photosensitive element of the camera of the terminal can be used to realize the function of approaching the light sensor, and no additional light sensor is needed on the terminal, and the number of openings of the terminal can be reduced. And reduce the hardware manufacturing cost of the terminal.
  • the photosensitive element of the camera of the terminal can be used, so that no additional proximity sensor is needed on the terminal, the number of openings of the terminal can be reduced, and the hardware manufacturing cost of the terminal can be reduced.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Blocking Light For Cameras (AREA)

Abstract

本发明实施例提供了一种检测方法,应用于终端中,所述终端包括摄像头,所述方法包括:在所述摄像头中的感光元件接收环境光信号的光路上设置用于滤除红外线的滤光片;控制所述感光元件开始工作;根据所述感光元件接收的环境光信号的光量,确定所述环境光强度,所述环境光强度与所述环境光信号的光量成正相关;本发明实施例还提供了一种检测装置和计算机可读存储介质。

Description

检测方法、装置及存储介质
相关申请的交叉引用
本申请基于申请号为201710462376.8、申请日为2017年06月19日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的内容在此以引入方式并入本申请。
技术领域
本发明涉及终端传感器技术,尤其涉及一种检测方法、装置和计算机可读存储介质。
背景技术
现有手机等终端产品外壳听筒附近有很多开口,如前摄像头、接近传感器或距离传感器、光传感器、指示灯等,过多的开口会影响手机的整体外观;另一方面各个开口也都有必要性,增加的功能也都很实用,如前摄像头主要用于自拍及视频聊天,接近传感器或距离传感器可以用于在接听电话时灭屏以避免误触发和省电,光传感器主要用于根据环境光调整显示屏亮度,指示灯主要用于信号和电量指示等,只为改善外观而直接去除这些功能也会得不偿失;
如何既可以减少开口数量又不影响相应功能的使用,是亟待解决的问题。
发明内容
本发明实施例提供一种检测方法、装置和计算机可读存储介质,可以利用终端的摄像头实现相应的传感器功能,能够降低终端的制造成本。
本发明实施例的技术方案是这样实现的:
本发明实施例提供了一种检测方法,应用于终端中,所述终端包括摄像头,所述方法包括:
在所述摄像头中的感光元件接收环境光信号的光路上设置用于滤除红外线的滤光片;
控制所述感光元件开始工作;
根据所述感光元件接收的环境光信号的光量,确定所述环境光强度,所述环境光强度与所述环境光信号的光量成正相关。
相应地,本发明实施例还提供了一种检测装置,所述装置位于终端中,所述装置包括摄像头、处理器和配置为滤除红外线的滤光片;其中,
所述滤光片,位于所述摄像头中的感光元件接收环境光信号的光路上;
所述处理器,配置为控制所述摄像头中的感光元件开始工作;
所述感光元件,配置为接收环境光信号,并确定所接收的环境光信号的光量;
所述处理器,还配置为根据所述感光元件接收的环境光信号的光量,确定所述环境光强度,所述环境光强度与所述环境光信号的光量成正相关。
本发明实施例提供的一种检测方法、装置和计算机可读存储介质中,应用于终端中,所述终端包括摄像头,首先在所述摄像头中的感光元件接收环境光信号的光路上设置用于滤除红外线的滤光片;然后,控制所述感光元件开始工作;根据所述感光元件接收的环境光信号的光量,确定所述环境光强度,所述环境光强度与所述环境光信号的光量成正相关;如此,至少可以利用终端的摄像头的感光元件实现接近光传感器的功能,不需要在终端上额外设置光传感器,可以减少终端的开口数量,并降低终端的硬件制造成本。
附图说明
图1为本发明实施例的检测方法的流程图;
图2为本发明实施例终端的一个组成结构示意图;
图3为本发明实施例中光源的电路结构示意图;
图4为本发明实施例中滤光片切换部件的一个组成结构示意图;
图5A为本发明实施例中滤光片切换部件的结构爆炸图;
图5B为本发明实施例中滤光片切换部件的剖视示意图;
图6为本发明实施例中终端的摄像头的结构示意图;
图7为本发明实施例中终端的接近传感器模式的原理示意图;
图8为本发明实施例中实现终端的接近传感器模式的流程图;
图9为本发明实施例中实现终端的光传感器模式的流程图;
图10为本发明实施例中实现终端的黑暗环境拍摄模式的流程图;
图11为本发明实施例中检测装置的组成结构示意图。
具体实施方式
以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
本发明实施例公开了一种检测方法和装置,可以应用于终端中,终端可以是计算机等固定终端,也可以是手机、平板电脑等移动终端;终端上设置有摄像头,该摄像头可以是终端的前置摄像头,也可以是终端的后置摄像头。
摄像头主要由镜头、感光元件、数字信号处理器、输出接口电路组成;在使用摄像头进行拍摄时,镜头将入射光线聚合至感光元件,感光元件将接收到的光线在感光阵列成像,由光信号转换为电信号,数字信号处理器接收电信号,并根据接收的电信号完成计算转化为所需结果从接口电路输出给终端的处理器。
摄像头中的感光元件的类型可以是互补金属氧化物半导体(Complementary Metal-Oxide Semiconductor,CMOS)器件,也可以是电荷耦合器件(Charge Coupled Device,CCD),本发明实施例中并不对感光元件的类型进行限定;摄像头中的感光元件可以用于检测可见光和红外线,这里,可以针对感光元件分别设置可见光增益和红外线增益,其中,可见光增益用于表征感光元件接收可见光的能力,红外线增益用于表征感光元件接收红外线增益的能力;在一个可选的实施例中,感光元件的可见光增益和红外线增益是可调节的。
基于上述记载的终端、摄像头和感光元件,提出以下各具体实施例。
第一实施例
本发明第一实施例提出了一种检测方法,图1为本发明实施例的检测方法的流程图,如图1所示,该流程可以包括:
步骤S1:在所述摄像头中的感光元件接收环境光信号的光路上设置用于滤除红外线的滤光片;
这里,滤光片位于所述感光元件接收环境光信号的光路上,也就是说,滤光片位于摄像头的镜头前,来自外部的光线(包括红外线和可见光)被滤光片进行滤光处理后进入镜头,在经镜头进行处理后,被传输至感光元件上,如此,感光元件接收的环境光信号为经所述滤光片处理后的环境光信号
可以看出,通过滤光片的处理,可以使感光元件对环境中的可见光信号进行检测,降低红外线信号对感光元件的影响,提高了感光元件对环境可见光信号的检测的准确性。
步骤S2:控制所述感光元件开始工作;
可以理解的是,感光元件可以在外部的控制信号的控制下进行工作,感光元件工作时,可以接收来自外部的光线;感光元件接收的光线可以是可见光或红外线。
需要说明的是,在控制感光元件进行工作时,仅仅需要利用摄像头中的一部分器件,并不需要使用摄像头中的所有器件,例如,在感光元件工作时,可以使用摄像头中的镜头、感光元件和输出接口电路,不使用数字信号处理器,此时,可以将感光元件的信号输出端直接连接到输出接口电路的输入端,感光元件在将接收的光信号转换为电信号后,将电信号输出至输出接口电路,之后,由输出接口电路将电信号输出至终端的处理器。
在实际实施时,本步骤可以利用终端的处理器实现。
步骤S3:根据所述感光元件接收的环境光信号的光量,确定所述环境光强度,所述环境光强度与所述环境光信号的光量成正相关。
这里,对于感光元件而言,感光元件接收的光信号的光量由感光元件上检测到环境光信号的像素(感光单元)的个数决定,具体地,检测到环境光信号的像素(感光单元)的个数越多,则感光元件接收的光信号的光量越大。
对于确定环境光强度的实现方式,在一个示例中,所述环境光强度与所述环境光信号的光量成正比;可以理解的是,所述感光元件接收的环境光信号的光量越大,则说明环境光强度越大。
作为一种实施方式,感光元件将自身接收的环境光信号转换为电信号,根据所述电信号的电流大小或电压大小,确定所述环境光强度;其中,所述电信号的电流大小或电压大小与所述环境光信号的光量成正相关,所述环境光强度与所述电信号的电流大小或电压大小成正相关;优选地,所述电信号的电流大 小或电压大小与所述环境光信号的光量成正比,所述环境光强度与所述电信号的电流大小或电压大小成正比。
在实际实施时,可以将上述记载的电信号输出至终端的处理器,之后,由处理器根据所述电信号的电流大小或电压大小,确定所述环境光强度。
在现有技术中,如果要利用终端检测环境光强度,通常是在终端上额外设置光传感器,利用光传感器实现对环境光强度的检测。
与现有技术相比,在本发明实施例中,在需要利用终端检测环境光强度时,可以利用终端的摄像头的感光元件实现,如此,不需要在终端上额外设置光传感器,可以减少终端的开口数量,并降低终端的硬件制造成本。另外,在利用终端的感光元件检测环境光强度时,由于不需要进行成像,因此无需感光元件的所有感光单元工作(也即只需部分行或列的单元阵列工作),在环境光强度的计算时,计算处理简单,如此,感光元件仅使用部分感光单元或使用最低分辨率,数字信号处理器也仅部分电路工作,由感光元件的各个像素的亮度值,就可以换算出所需的环境光强度,便于实现。
在一个实施例中,将所述滤光片从所述感光元件接收环境光信号的光路上移除;控制终端向所述待检测物体发射光信号,其中,所述终端向待检测物体发射的光信号为红外线信号;
根据所述感光元件接收的由所述待检测物体反射的光信号的光量,确定所述待检测物体与所述终端的距离,所述距离与由所述待检测物体反射的光信号的光量成正相关;确定所述距离是否小于第一距离阈值;或者,
根据终端向待检测物体发射光信号的时间和所述感光元件接收的由所述待检测物体反射的光信号的时间,确定所述待检测物体与所述终端的距离;确定所述距离是否小于第一距离阈值。
在实际实施时,可以在终端上设置用于发射红外线信号的二极管,控制二极管向所述待检测物体发送红外线信号;在一个示例中,终端的处理器控制二极管向所述待检测物体发送红外线信号,例如,终端的处理器可以向二极管发送电压控制信号,电压控制信号为高电平信号时,二极管向外发出红外线信号,在电压控制信号为低电平信号时,二极管停止工作,不向外发射光线。这里的二极管可以是红外二极管。
作为一种实施方式,二极管可以与所述摄像头位于所述终端的同一侧,二 极管可以是终端的指示灯的一部分,如此,可以有效的利用终端已有开口,降低硬件制造成本。
优选地,在控制终端向待检测物体发射光信号前,还可以调高所述感光元件的红外光增益,和/或,调低所述感光元件的可见光增益;这样,感光元件检测红外光的能力会增加,和/或,感光元件检测可见光的能力会降低,由于所述待检测物体与所述终端的距离是根据感光元件接收的由所述待检测物体反射的红外线信号确定的,那么通过调高所述感光元件的红外光增益,和/或,调低所述感光元件的可见光增益,可以提高确定所述待检测物体与所述终端的距离的准确性。
对于确定所述待检测物体与所述终端的距离的实现方式,在一个示例中,可以根据所述感光元件接收的由所述待检测物体反射的光信号的光量,确定所述待检测物体与所述终端的距离;所确定的距离与由所述待检测物体反射的光信号的光量成正相关;优选地,所确定的距离与由所述待检测物体反射的光信号的光量成正比。
这里,第一距离阈值可以根据实际应用需求进行设置,第一距离阈值可以小于现有的接近传感器的检测距离,也可以大于现有的接近传感器的检测距离;在实际实施时,可以利用终端的处理器判断待检测物体与所述终端的距离是否小于第一距离阈值;在判断待检测物体与所述终端的距离是否小于第一距离阈值后,可以根据判断结果控制终端执行对应的操作,例如,在判断结果为待检测物体与所述终端的距离小于第一距离阈值时,控制终端执行第一操作;在判断结果为待检测物体与所述终端的距离大于或等于第一距离阈值时,控制终端执行第二操作,第一操作和第二操作可以是两种不同的操作。
作为一种实施方式,所述根据所述感光元件接收的由所述待检测物体反射的光信号的光量,确定所述待检测物体与所述终端的距离,包括:
将所述感光元件接收的由所述待检测物体反射的光信号转换为电信号,根据所述电信号的电流大小或电压大小,确定所述待检测物体与所述终端的距离;其中,所述电信号的电流大小或电压大小与由所述待检测物体反射的光信号的光量成正相关,所确定的距离与所述电信号的电流大小或电压大小成正相关。
优选地,所述电信号的电流大小或电压大小与由所述待检测物体反射的光信号的光量成正比,所确定的距离与所述电信号的电流大小或电压大小成正比。
在现有技术中,在终端上的接近传感器或距离传感器通常是光学式位移传感器,接近传感器或距离传感器主要由发射红外线的红外光源和位置检测元件,在接近传感器或距离传感器工作时,红外光源发出的红外光经过透镜进行聚光后,照射到待检测物体上;由待检测物体反射出的反射光经过受光透镜集中到位置检测元件上,位置检测元件根据接收的光信号确定待检测物体与终端的距离;如果待检测物体的位置(与终端的距离)发生变化,在位置检测元件上的成像位置会发生变化,则由位置检测元件的检测结果会发生变化,也就是说,将投影到位置检测元件上的重心位置换算为距离。这里,位置检测元件可以是位置敏感器件(Position Sensitive Detector,PSD)等等。
与现有技术相比,在本发明实施例中,在需要检测待检测物体与终端的距离时,可以利用终端的摄像头的感光元件实现,如此,不需要在终端上额外设置接近传感器,可以减少终端的开口数量,并降低终端的硬件制造成本。
对于将所述滤光片从所述感光元件接收环境光信号的光路上移除的实现方式,在一个实施例中,可以利用滤光片切换部件来实现滤光片的移除;在实际实施时,滤光片是滤光片切换部件的一部分,滤光片切换部件可以接收来自终端处理器的控制信号,并根据控制信号进行移动,从而使滤光片跟随移动,例如,滤光片切换部件可以利用电磁驱动方式或电机等实现。
在滤光片切换部件的一个示例中,滤光片切换部件采用电磁驱动方式,驱动滤光片从所述感光元件接收环境光信号的光路上移除;滤光片切换部件包括:磁铁组和与所述滤光片固定的线圈,所述线圈在未通电时与所述磁铁组的距离小于第二距离阈值;在需要将滤光片从所述感光元件接收环境光信号的光路上移除时,可以对所述线圈进行通电,使所述线圈在所述磁铁组的磁力驱动下进行运动;所述线圈在所述磁铁组的磁力驱动下运动时,带动所述滤光片从所述感光元件接收环境光信号的光路上移除。在实际实施时,终端的处理器在确定需要将滤光片从所述感光元件接收环境光信号的光路上移除时,可以利用处理器对控制所述线圈进入通电状态。
这里,第二距离阈值可以根据实际需求确定,以保证线圈通电时能够受到足以使自身运动的磁力;示例性地,设定阈值与线圈通电时的电流以及磁铁组的磁通量有关;在线圈与磁铁组的位置的一种实现方式中,磁铁组为圆环形状,线圈在未通电时处于圆环状的磁铁组内部。
优选地,滤光片切换部件还包括弹片;当线圈在所述磁铁组的磁力驱动下运动时,抵压所述弹片,使所述弹片产生弹性形变;当线圈由通电状态转变为断电状态时,线圈在弹片的弹力作用下进行运动,进而带动滤光片移动至感光元件接收环境光信号的光路上;在实际实施时,当终端的处理器确定需要将滤光片移动至感光元件接收环境光信号的光路上时,可以控制所述线圈进入断电状态。
应用本发明的检测方法的第一实施例,可以利用终端已有的摄像头实现光传感器或接近传感器的功能,无需在终端上额外设置光传感器或接近传感器,可以在不影响用户使用终端的习惯的情况下,降低终端的外壳的开口数量,是终端的外表面更平整,美化了终端的外观;由于摄像头的感光元件的检测范围超过现有的终端的接近传感器或光传感器的检测范围,而摄像头的感光元件的检测光的精度大于现有的终端的光传感器的检测光的精度,这样,可以提高终端上实现的光传感器或接近传感器的检测范围,并提高终端上实现的光传感器的检测精度,以此可以开发出多样化的应用。
第二实施例
为了能够更加体现本发明的目的,在本发明第一实施例的基础上,进行进一步的举例说明。
该实施例中,对终端进行拍摄的过程进行举例说明。
示例性地,在确定摄像头开始运行时,即,确定开启拍摄功能时,可以根据所述感光元件接收的环境光信号,确定环境光强度;在所述环境光强度低于设定阈值时,将所述滤光片从所述感光元件接收环境光信号的光路上移除;根据所述感光元件接收的可见光信号和红外线信号,控制所述摄像头进行拍摄。
这里,根据所述感光元件接收的环境光信号确定环境光强度的实现方式已经在本发明第一实施例中作出说明,将所述滤光片从所述感光元件接收环境光信号的光路上移除的实现方式已经在本发明第一实施例中作出说明,这里不再赘述。在实际实施时,终端摄像头的数字信号处理器根据所述感光元件接收的可见光信号和红外线信号,控制所述摄像头进行拍摄。
可以理解的是,当环境光强度低于设定阈值时,说明环境光强度较低,此时,将滤光片从所述感光元件接收环境光信号的光路上移除后,感光元件可以同时接收到可见光信号和红外线信号,由于所有物体都会不断发出红外光,相 比于仅能接收到可见光的摄像头,感光量明显增加,因此,可有效提高黑暗环境拍摄的清晰度。
需要说明的是,在环境光强度大于或等于设定光强阈值时,说明环境光强度较高,此时,保持滤光片位置不变化,即,滤光片处于感光元件接收环境光信号的光路上,根据感光元件接收到的可见光信号,即可以完成拍摄。
应用本发明的第二实施例,在黑暗场景进行拍摄时,感光元件可以同时接收到可见光信号和红外线信号,相比于仅能接收到可见光的摄像头,感光量明显增加,因此,可有效提高黑暗环境拍摄的清晰度;在环境光强度足够的场景如白天场景进行拍摄时,滤光片切换部件不工作,即,来自外部的光线需要经过滤光片处理后才能进入摄像机的镜头;滤光片默认位于镜头前,可以避免拍摄时造成偏色等问题。
第三实施例
为了能够更加体现本发明的目的,在前述实施例的基础上,进行进一步的举例说明。
图2为本发明实施例终端的第一组成结构示意图,如图2所示,该终端包括光源101、滤光片切换部件103、摄像头104以及处理器102;其中,
光源101既能发出可见光,又可以发出红外线,在一种示例中,光源为既能发出可见光又可以发出红外线的两用发光二极管,光源可以根据不同控制信号发出不同种类的光线,光源接收的控制信号可以来自于处理器;在另一种示例中,光源包括两个发光二极管,其中一个发光二极管为发出可见光的发光二极管,另一发光二极管为发出红外线的发光二极管。
处理器102可以由手机的处理器芯片实现,用于控制其他器件进行工作,已完成相应的功能。
在光源101的一个具体的示例中,光源101由既能发出红外光线又能发出普通可见光的两用发光二级管组实现,两用发光二极管包括用于发出可见光的可见光二极管和用于发出红外线的红外线二极管;通常情况下,可见光二极管工作,作为终端的指示灯。在需要测量物体与终端的距离的场景中,控制光源101的可见光二极管关闭,并控制光源101的红外线二极管开启,以发射红外线。
例如,图3为本发明实施例中光源的电路结构示意图,如图3所示,LED01和LED02分别表示手机中的双色指示灯,指示灯LED01和LED02在工作时,可 以发出不同颜色的可见光;LED03为本发明实施例新增的红外线二极管,R01表示电阻,指示灯LED01、指示灯LED02和红外线二极管LED03的阴极的公共节点在串联电阻R01后接地,指示灯LED01、指示灯LED02和红外线二极管LED03分别用于接入电压信号,其中,指示灯LED01的阳极接入的电压信号为FLASH1,指示灯LED02的阳极接入的电压信号为FLASH2,红外线二极管LED03的阳极接入的电压信号为FLASH3,这里可见电压信号FLASH3看作红外线二极管LED03的控制信号,在实际实施时,可以利用处理器向红外线二极管LED03的阳极发送电压信号FLASH3,可以理解的是,在电压信号FLASH3为高电平信号时,红外线二极管LED03发出红外线,在电压信号FLASH3为高电平信号时,红外线二极管LED03不发出红外线(灭光)。
在滤光片切换部件103的一个具体的示例中,参照图4,滤光片切换部件103包括动力部分1031和滤光片1032,动力部分1031用在控制信号的控制下驱动滤光片移动,以控制摄像头感光元件接收不同的光线实现不同的功能。
在滤光片切换部件103的另一个具体的示例中,参照图5A和图5B,滤光片切换部件103包括套筒203、弹片202、线圈201、磁铁组204、载体205和滤光片1032;其中,套筒203固定于终端外壳或主板,或同摄像头固定在一起;载体205与滤光片1032固定在一起,例如,载体205与滤光片1032可以通过连接轴进行固定,套筒203是封闭结构,仅线圈201的供电线以及载体205同滤光片1032的连接轴,套筒203可以用于保护和固定内部组件;弹片202固定在套筒203内,并与线圈201接触,用于限制线圈201或载体205运动的范围;线圈201通过载体205固定在磁铁组204内,线圈201同载体205固定在一起;在线圈201未供电时,滤光片1032位于感光元件接收环境光信号的光路上;当线圈201通电后,线圈201会产生磁场,线圈201磁场和磁铁组204相互作用,使线圈201在套筒203内做直线移动,从而带动载体205以及滤光片1032一起作直线移动,如此,可以将滤光片1032从所述感光元件接收环境光信号的光路上移除;在线圈201停止供电后,线圈201在弹片202的作用下返回初始位置,此时,滤光片1032重新移动至感光元件接收环境光信号的光路上;如此,实现了滤光片1032的移动。
图6为本发明实施例终端的摄像头的结构示意图,在摄像头104的一个具体的示例中,参照图6,摄像头104包括:镜头1041、感光元件1042、数字信号处理器1043和输出接口电路1044,镜头1041将入射光线聚合至感光元件1042,感光元件1042将接收到的光信号转换为电信号,并将该电信号发送至数字信号处 理器,最终由数字信号处理器1043完成计算转化为所需结果从接口电路1044输出给终端的处理器。
终端根据使用场景的不同,可以采用以下几种模式工作:
正常使用模式:处理器根据实际应用需求控制光源发出可见光,以提示用户;滤光片切换部件不工作,即,来自外部的光线需要经过滤光片处理后才能进入摄像机的镜头;滤光片默认位于镜头前,以免拍摄时造成偏色等问题;在处于正常使用模式时,摄像头只有收到开启指令(控制器根据用户的拍摄指令而生成开启指令),才能开启拍摄功能。
接近传感器模式:在需要判断物体与终端是否较为接近的场景,例如,当用户手持接听电话等场景,终端可以工作在接近传感器模式;在接近传感器模式中,处理器控制光源停止发出可见光,并控制光源发出红外线至待检测物体上,利用滤光片切换部件将摄像头镜头前的滤光片去除,摄像头开启红外光强度检测模式(通过调高感光元器件红外光增益,降低可见光增益实现),待检测物体上发射的光束投影到感光元件上,根据感光元件接收的光信号的光量,并通过数字信号处理器换算为距离,之后,由输出接口电路传递给处理器,如此,处理器可以确定出待检测物体与终端的距离;也就是说,可以利用摄像头和发射红外线的红外二极管实现接近传感器。
图7为本发明实施例终端的接近传感器模式的原理示意图,如图7所示,在接近传感器模式中,处理器控制关闭可见光二极管,开启红外线二极管5003以发射红外线,红外线二极管5003发射的红外线投射到待检测物体5001上,滤光片切换部件控制动力部分将摄像头的镜头5004前的滤光片移动。摄像头调高感光元件5005的红外光增益,并调低感光元件5005的可见光增益,使感光元件5005检测由待检测物体5001反射的光束5002的光量,该光量的大小同待检测物体5001与终端的距离成正比,因此,可以根据感光元件5005检测由待检测物体5001反射的光束5002的光量,计算出待检测物体5001与终端的距离,该计算过程可以利用终端的处理器实现,也可以利用摄像头内的数字信号处理器实现,在利用数字信号处理器计算出待检测物体5001与终端的距离时,可以将计算结果经输出接口电路传递给处理器做进一步判断处理。
图8为本发明实施例实现终端的接近传感器模式的流程图,如图8所示,该流程可以包括:
S801:终端处理器接收到接近传感器触发事件。
示例性地,终端处理器可以实时判断是否满足开启接近传感器的条件,在确定满足开启接近传感器的条件,说明处理器接收到接近传感器触发事件;开启接近传感器的条件可以预先设置,例如,在收到用户的拨打电话指令后,确定满足开启接近传感器的条件。
S802:终端的处理器控制关闭可见光二极管,并开启红外线二极管以发射红外线。
本步骤可红外线二极管发射的红外线可以被投射到待检测物体上。
S803:终端的处理器控制滤光片切换部件工作,以将滤光片从镜头前移除。
S804:根据所述感光元件接收的由所述待检测物体反射的光信号,确定所述待检测物体与所述终端的距离。
在一个示例中,摄像头开启红外光强度检测模式(通过调高感光元器件红外光增益,降低可见光增益实现),感光元件将感光元件接收的光信号转换为电信号,并将该电信号发送至数字信号处理器,之后,通过数字信号处理器计算得出所述待检测物体与所述终端的距离,之后,由输出接口电路将所述待检测物体与所述终端的距离传递给处理器,
本步骤的实现方式已经在本发明第一实施例中作出说明,这里不再赘述。
S805:终端处理器接收待检测物体与终端的距离。
S806:终端的处理器控制终端从接近传感器模式切换至正常使用模式。
这里,终端的接近传感器模式和正常使用模式已经作出说明,这里不再赘述。
S807:终端的处理器根据所述待检测物体与终端的距离,判断是否需要继续进行距离测试,如果是,则返回至步骤802,否则,进入步骤S808。
这里,距离测试是指测量所述待检测物体与终端的距离。
S808:终端的处理器根据所述待检测物体与终端的距离,控制终端的其他器件的工作状态,之后,结束流程。
例如,在确定所述待检测物体与终端的距离小于第一距离阈值时,可以关闭终端的显示屏;在确定所述待检测物体与终端的距离大于或等于第一距离阈值时,可以开启终端的显示屏。
光传感器模式:在需要检测环境光强度的场景,如,用户打开屏幕亮度自动调节且屏幕点亮等场景,终端可以工作在光传感器模式;在光传感器模式中,处理器可以控制摄像头开启可见光强度检测模式(即采用默认的光增益设置),根据环境光投影到感光元件的光量,确定出环境光强度。例如,可以将环境光投影到感光元器件的光量大小转化为等比例大小的电信号,之后,由数字信号处理器检测该电信号的大小并换算为环境光强度,数字信号处理器将环境光强度通过输出接口电路传递给终端处理器以进行进一步判断处理。
图9为本发明实施例实现终端的光传感器模式的流程图,如图9所示,该流程可以包括:
S901:终端的处理器接收到光传感器触发事件。
示例性地,终端处理器可以实时判断是否满足开启光传感器的条件,在确定满足开启光传感器的条件时,说明处理器接收到光传感器触发事件,这里,开启光传感器的条件可以预先设置,例如,在收到自动调节屏幕亮度指令,且收到用户点亮屏幕的指令(例如,用户解锁屏幕的指令)时,确定满足开启光传感器的条件。
S902:终端处理器判断摄像头是否处于拍摄模式,若是,在等待摄像头不处于拍摄模式后,进入步骤S903;否则,直接进入步骤S903;
S903:根据所述感光元件接收的环境光信号,确定环境光强度。
在一个示例中,感光元件可以将环境光投影到感光元件的光信号转化为等比例大小的电信号,并将该电信号发送至数字信号处理器,之后,由数字信号处理器检测该电信号的大小并换算为环境光强度,数字信号处理器将环境光强度通过输出接口电路传递给终端处理器。
本步骤的实现方式已经在本发明第一实施例中作出说明,这里不再赘述。
S904:终端的处理器接收到环境光强度。
S905:终端的处理器控制终端从光传感器模式切换至正常使用模式。
这里,终端的光传感器模式和正常使用模式已经作出说明,这里不再赘述。
S906:终端的处理器根据所述环境光强度,控制终端的其他器件的工作状态,之后,结束流程。
例如,控制终端的其他器件的工作状态可以是:调节终端的显示屏的亮度, 这,终端的显示屏可以是液晶显示器(Liquid Crystal Display,LCD)。
黑暗环境拍摄模式:在摄像头开启时,即利用摄像头进行拍摄时,首先利用摄像头的感光元件检测环境光强度,当环境光强度低于设定光强阈值时,处理器判定当前终端所处的环境为黑暗环境,此时,处理器控制滤光片切换部件将滤光片从摄像头的镜头前移除,此时,摄像头的镜头可以直接接收到红外线;之后,控制终端处于正常使用模式,如此,摄像头的感光元件可以同时接收到可见光信号和红外线信号,由于所有物体都会不断发出红外光,相比于仅能接收到可见光的摄像头,感光量明显增加,因此,可有效提高黑暗环境拍摄的清晰度。
图10为本发明实施例实现终端的黑暗环境拍摄模式的流程图,如图10所示,该流程可以包括:
S1001:终端的处理器接收到拍摄指令。
S1002:根据所述感光元件接收的环境光信号,确定环境光强度。
本步骤的实现方式与步骤S903的实现方式相同,这里不再赘述。
S1003:终端的处理器接收到环境光强度。
S1004:终端的处理器判断环境光强度是否低于设定光强阈值,如果是,则进入步骤S1005,否则,进入步骤S1006。
S1005:终端的处理器控制滤光片切换部件工作,以将滤光片从镜头前移除,之后,执行步骤S1006。
S1006:终端的处理器控制摄像头进入正常拍摄模式,之后,结束流程。
第四实施例
针对前述实施例的检测方法,本发明第四实施例提出了一种检测装置。
图11为本发明实施例的检测装置的组成结构示意图,如图11所示,该装置位于终端中,该装置包括摄像头104、处理器102和配置为滤除红外线的滤光片;其中,
所述滤光片,位于所述摄像头中的感光元件接收环境光信号的光路上;
所述处理器102,配置为控制所述摄像头中的感光元件开始工作;
所述感光元件,配置为接收环境光信号,并确定所接收的环境光信号的光 量;
所述处理器102,还配置为根据所述感光元件接收的环境光信号的光量,确定所述环境光强度,所述环境光强度与所述环境光信号的光量成正相关。
作为一种实施方式,所述处理器102,还配置为在确定所述摄像头开始工作后,在确定所述环境光强度低于设定光强阈值时,控制所述滤光片从所述感光元件接收环境光信号的光路上移除;根据所述感光元件接收的可见光信号和红外线信号,控制所述摄像头进行拍摄。
作为一种实施方式,所述处理器102,还配置为控制所述滤光片从所述感光元件接收环境光信号的光路上移除;控制终端向所述待检测物体发射光信号,其中,所述终端向待检测物体发射的光信号为红外线信号;
所述处理器102,还配置为根据所述感光元件接收的由所述待检测物体反射的光信号的光量,确定所述待检测物体与所述终端的距离,所述距离与由所述待检测物体反射的光信号的光量成正相关;确定所述距离是否小于第一距离阈值;或者,
根据终端向待检测物体发射光信号的时间和所述感光元件接收的由所述待检测物体反射的光信号的时间,确定所述待检测物体与所述终端的距离;确定所述距离是否小于第一距离阈值。
作为一种实施方式,所述装置还包括配置为发射红外线信号的二极管;
所述处理器102,具体配置为控制所述二极管向所述待检测物体发送红外线信号。
作为一种实施方式,所述装置还包括滤光片切换部件,所述滤光片切换部件配置为根据接收的控制信号,驱动滤光片移动;
所述处理器102,具体配置为向所述滤光片切换部件发送控制信号,使所述滤光片切换部件驱动滤光片从所述感光元件接收环境光信号的光路上移除。
作为一种实施方式,所述滤光片切换部件配置为采用电磁驱动方式,驱动滤光片从所述感光元件接收环境光信号的光路上移除。
作为一种实施方式,所述滤光片切换部件包括:磁铁组和与所述滤光片固定的线圈,所述线圈在未通电时与所述磁铁组的距离小于第二距离阈值;
所述处理器102,具体配置为控制所述线圈进行通电,使所述线圈在所述 磁铁组的磁力驱动下进行运动;所述线圈配置为在所述磁铁组的磁力驱动下运动时,带动所述滤光片从所述感光元件接收环境光信号的光路上移除。
在示例性实施例中,本发明实施例还提供了一种计算机可读存储介质,例如包括计算机程序的存储器,上述计算机程序可由在终端上实现传感器的装置的处理器102执行,以完成前述方法所述步骤。计算机可读存储介质可以是磁性随机存取存储器(FRAM,Ferromagnetic Random Access Memory)、只读存储器(ROM,Read Only Memory)、可编程只读存储器(PROM,Programmable Read-Only Memory)、可擦除可编程只读存储器(EPROM,Erasable Programmable Read-Only Memory)、电可擦除可编程只读存储器(EEPROM,Electrically Erasable Programmable Read-Only Memory)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(CD-ROM,Compact Disc Read-Only Memory)等存储器;也可以是包括上述存储器之一或任意组合的各种设备,如移动电话、计算机、平板设备、个人数字助理等。
本发明实施例提供的计算机可读存储介质,位于终端,所述终端包括摄像头,在所述摄像头中的感光元件接收环境光信号的光路上设置有用于滤除红外线的滤光片;所述计算机可读存储介质存储有计算机程序,该计算机程序被处理器运行时,执行:
控制所述感光元件开始工作;
根据所述感光元件接收的环境光信号的光量,确定所述环境光强度,所述环境光强度与所述环境光信号的光量成正相关。
作为一种实施方式,所述计算机程序被处理器运行时,还执行:
将所述感光元件将接收的环境光信号转换为电信号,根据所述电信号的电流大小或电压大小,确定所述环境光强度;其中,所述电信号的电流大小或电压大小与所述环境光信号的光量成正相关,所述环境光强度与所述电信号的电流大小或电压大小成正相关。
作为一种实施方式,所述计算机程序被处理器运行时,还执行:
在确定所述摄像头开始工作后,在所述环境光强度低于设定光强阈值时,将所述滤光片从所述感光元件接收环境光信号的光路上移除;根据所述感光元件接收的可见光信号和红外线信号,控制所述摄像头进行拍摄。
作为一种实施方式,所述计算机程序被处理器运行时,还执行:
控制所述滤光片从所述感光元件接收环境光信号的光路上移除;
控制终端向所述待检测物体发射光信号,其中,所述终端向待检测物体发射的光信号为红外线信号;
根据所述感光元件接收的由所述待检测物体反射的光信号的光量,确定所述待检测物体与所述终端的距离,所述距离与由所述待检测物体反射的光信号的光量成正相关;确定所述距离是否小于第一距离阈值;或者,
根据终端向待检测物体发射光信号的时间和所述感光元件接收的由所述待检测物体反射的光信号的时间,确定所述待检测物体与所述终端的距离;确定所述距离是否小于第一距离阈值。
作为一种实施方式,所述计算机程序被处理器运行时,还执行:
将所述感光元件接收的由所述待检测物体反射的光信号转换为电信号,根据所述电信号的电流大小或电压大小,确定所述待检测物体与所述终端的距离;其中,所述电信号的电流大小或电压大小与由所述待检测物体反射的光信号的光量成正相关,所确定的距离与所述电信号的电流大小或电压大小成正相关。
作为一种实施方式,所述计算机程序被处理器运行时,还执行:
在控制终端向待检测物体发射光信号前,所述方法还包括:增加所述感光元件的红外光增益,和/或,降低所述感光元件的可见光增益。
作为一种实施方式,所述终端上设置有滤光片切换部件,所述滤光片切换部件用于根据接收的控制信号,驱动滤光片移动;
所述计算机程序被处理器运行时,还执行:
向所述滤光片切换部件发送控制信号,使所述滤光片切换部件驱动滤光片从所述感光元件接收环境光信号的光路上移除。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方 框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。
工业实用性
本发明实施例中,在摄像头中的感光元件接收环境光信号的光路上设置用于滤除红外线的滤光片;控制所述感光元件开始工作;根据感光元件接收的环境光信号的光量,确定环境光强度,环境光强度与环境光信号的光量成正相关;如此,至少可以利用终端的摄像头的感光元件实现接近光传感器的功能,不需要在终端上额外设置光传感器,可以减少终端的开口数量,并降低终端的硬件制造成本。
此外,在需要检测待检测物体与终端的距离时,可以利用终端的摄像头的感光元件实现,如此,不需要在终端上额外设置接近传感器,可以减少终端的开口数量,并降低终端的硬件制造成本。

Claims (19)

  1. 一种检测方法,应用于终端中,所述终端包括摄像头,所述方法包括:
    在所述摄像头中的感光元件接收环境光信号的光路上设置用于滤除红外线的滤光片;
    控制所述感光元件开始工作;
    根据所述感光元件接收的环境光信号的光量,确定所述环境光强度,所述环境光强度与所述环境光信号的光量成正相关。
  2. 根据权利要求1所述的方法,其中,所述根据所述感光元件接收的环境光信号的光量,确定所述环境光强度,包括:
    将所述感光元件将接收的环境光信号转换为电信号,根据所述电信号的电流大小或电压大小,确定所述环境光强度;其中,所述电信号的电流大小或电压大小与所述环境光信号的光量成正相关,所述环境光强度与所述电信号的电流大小或电压大小成正相关。
  3. 根据权利要求1所述的方法,其中,所述方法还包括:
    在确定所述摄像头开始工作后,在所述环境光强度低于设定光强阈值时,将所述滤光片从所述感光元件接收环境光信号的光路上移除;根据所述感光元件接收的可见光信号和红外线信号,控制所述摄像头进行拍摄。
  4. 根据权利要求1所述的方法,其中,所述方法还包括:
    将所述滤光片从所述感光元件接收环境光信号的光路上移除;
    控制终端向所述待检测物体发射光信号,其中,所述终端向待检测物体发射的光信号为红外线信号;
    根据所述感光元件接收的由所述待检测物体反射的光信号的光量,确定所述待检测物体与所述终端的距离,所述距离与由所述待检测物体反射的光信号的光量成正相关;确定所述距离是否小于第一距离阈值;或者,
    根据终端向待检测物体发射光信号的时间和所述感光元件接收的由所述待检测物体反射的光信号的时间,确定所述待检测物体与所述终端的距离;确定所述距离是否小于第一距离阈值。
  5. 根据权利要求4所述的方法,其中,所述根据所述感光元件接收的由所述待检测物体反射的光信号的光量,确定所述待检测物体与所述终端的距离,包括:
    将所述感光元件接收的由所述待检测物体反射的光信号转换为电信号,根据所述电信号的电流大小或电压大小,确定所述待检测物体与所述终端的距离;其中,所述电信号的电流大小或电压大小与由所述待检测物体反射的光信号的光量成正相关,所确定的距离与所述电信号的电流大小或电压大小成正相关。
  6. 根据权利要求4所述的方法,其中,所述终端上设置有用于发射红外线信号的二极管;
    所述控制终端向所述待检测物体发射光信号包括:控制所述二极管向所述待检测物体发送红外线信号。
  7. 根据权利要求4所述的方法,其中,在控制终端向待检测物体发射光信号前,所述方法还包括:增加所述感光元件的红外光增益,和/或降低所述感光元件的可见光增益。
  8. 根据权利要求3或4所述的方法,其中,所述方法还包括:在所述终端上设置滤光片切换部件,所述滤光片切换部件用于根据接收的控制信号,驱动滤光片移动;
    所述将所述滤光片从所述感光元件接收环境光信号的光路上移除,包括:
    向所述滤光片切换部件发送控制信号,使所述滤光片切换部件驱动滤光片从所述感光元件接收环境光信号的光路上移除。
  9. 根据权利要求8所述的方法,其中,所述滤光片切换部件驱动滤光片从所述感光元件接收环境光信号的光路上移除,包括:
    所述滤光片切换部件采用电磁驱动方式,驱动滤光片从所述感光元件接收环境光信号的光路上移除。
  10. 根据权利要求9所述的方法,其中,所述滤光片切换部件包括:磁铁组和与所述滤光片固定的线圈,所述线圈在未通电时与所述磁铁组的距离小于第二距离阈值;
    所述滤光片切换部件根据采用电磁驱动方式,驱动滤光片从所述感光元件接收环境光信号的光路上移除,包括:
    对所述线圈进行通电,使所述线圈在所述磁铁组的磁力驱动下进行运动;所述线圈在所述磁铁组的磁力驱动下运动时,带动所述滤光片从所述感光元件接收环境光信号的光路上移除。
  11. 根据权利要求10所述的方法,其中,所述滤光片切换部件还包括弹片;
    所述方法还包括:所述线圈在所述磁铁组的磁力驱动下运动时,抵压所述弹片,所述弹片产生弹力,所述弹力能够使滤光片移动至感光元件接收环境光信号的光路上。
  12. 一种检测装置,所述装置位于终端中,所述装置包括摄像头、处理器和配置为滤除红外线的滤光片;其中,
    所述滤光片,位于所述摄像头中的感光元件接收环境光信号的光路上;
    所述处理器,配置为控制所述摄像头中的感光元件开始工作;
    所述感光元件,配置为接收环境光信号,并确定所接收的环境光信号的光量;
    所述处理器,还配置为根据所述感光元件接收的环境光信号的光量,确定所述环境光强度,所述环境光强度与所述环境光信号的光量成正相关。
  13. 根据权利要求12所述的装置,其中,所述处理器,还配置为在确定所述摄像头开始工作后,在确定所述环境光强度低于设定光强阈值时,控制所述滤光片从所述感光元件接收环境光信号的光路上移除;根据所述感光元件接收的可见光信号和红外线信号,控制所述摄像头进行拍摄。
  14. 根据权利要求12所述的装置,其中,所述处理器,还配置为控制所述滤光片从所述感光元件接收环境光信号的光路上移除;控制终端向所述待检测物体发射光信号,其中,所述终端向待检测物体发射的光信号为红外线信号;
    所述处理器,还配置为根据所述感光元件接收的由所述待检测物体反射的光信号的光量,确定所述待检测物体与所述终端的距离,所述距离与由所述待检测物体反射的光信号的光量成正相关;确定所述距离是否小于第一距离阈值;或者,
    向待检测物体发射光信号的时间和所述感光元件接收的由所述待检测物体反射的光信号的时间,确定所述待检测物体与所述终端的距离;确定所述距离是否小于第一距离阈值。
  15. 根据权利要求14所述的装置,其中,所述装置还包括配置为发射红外线信号的二极管;
    所述处理器,具体配置为控制所述二极管向所述待检测物体发送红外线信号。
  16. 根据权利要求13或14所述的装置,其中,所述装置还包括滤光片切换部件,配置为根据接收的控制信号,驱动滤光片移动;
    所述处理器,还配置为向所述滤光片切换部件发送控制信号,使所述滤光片切换部件驱动滤光片从所述感光元件接收环境光信号的光路上移除。
  17. 根据权利要求16所述的装置,其中,所述滤光片切换部件,配置为采用电磁驱动方式,驱动滤光片从所述感光元件接收环境光信号的光路上移除。
  18. 根据权利要求17所述的装置,其中,所述滤光片切换部件包括:磁铁组和与所述滤光片固定的线圈,所述线圈在未通电时与所述磁铁组的距离小于第二距离阈值;
    所述处理器,还配置为控制所述线圈进行通电,使所述线圈在所述磁铁组的磁力驱动下进行运动;所述线圈配置为在所述磁铁组的磁力驱动下运动时,带动所述滤光片从所述感光元件接收环境光信号的光路上移除。
  19. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,计算机程序至少用于执行前述权利要求1至11任一项所述的检测方法。
PCT/CN2018/071611 2017-06-19 2018-01-05 检测方法、装置及存储介质 WO2018233277A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710462376.8 2017-06-19
CN201710462376.8A CN109151331A (zh) 2017-06-19 2017-06-19 一种检测方法和装置

Publications (1)

Publication Number Publication Date
WO2018233277A1 true WO2018233277A1 (zh) 2018-12-27

Family

ID=64737510

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/071611 WO2018233277A1 (zh) 2017-06-19 2018-01-05 检测方法、装置及存储介质

Country Status (2)

Country Link
CN (1) CN109151331A (zh)
WO (1) WO2018233277A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112398970A (zh) * 2019-07-31 2021-02-23 北京小米移动软件有限公司 光传感器、移动终端和可见光光强检测方法
CN110727314A (zh) * 2019-09-27 2020-01-24 武汉华星光电技术有限公司 显示装置
CN111641766B (zh) * 2020-06-03 2021-12-03 一汽解放汽车有限公司 一种摄像头装置及车辆
CN114063094A (zh) * 2021-11-16 2022-02-18 上海索迪龙自动化有限公司 基于光电传感器的激光測距方法及光电传感器
CN116794068B (zh) * 2023-05-31 2024-07-26 成都瑞波科材料科技有限公司 用于涂布工艺的彩虹纹检测装置、方法及涂布工艺设备

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1996035977A1 (en) * 1995-05-10 1996-11-14 Korea Communications Co., Ltd. An opening and shutting device of infrared-ray filter for cameras
CN203313287U (zh) * 2013-06-17 2013-11-27 深圳警翼数码科技有限公司 一种摄影装置
CN104717347A (zh) * 2013-12-13 2015-06-17 中兴通讯股份有限公司 管理液晶显示屏背光灯的方法、装置及终端
CN104883484A (zh) * 2015-01-23 2015-09-02 宁波舜宇光电信息有限公司 安防系统、安防摄像模组及其制造方法
CN104980639A (zh) * 2014-04-03 2015-10-14 杭州华为企业通信技术有限公司 红外控制装置、方法及摄像机
CN105933519A (zh) * 2016-04-22 2016-09-07 广东欧珀移动通信有限公司 一种屏幕亮度调节方法、装置和移动终端
CN106161728A (zh) * 2015-03-24 2016-11-23 联想(北京)有限公司 一种传感装置、电子设备及检测方法

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102055898A (zh) * 2009-11-09 2011-05-11 中美强科技股份有限公司 可依特定时段设定彩色或黑白画面的监视摄影机
CN103515371B (zh) * 2012-06-27 2016-09-21 格科微电子(上海)有限公司 集成型光传感器封装
US9831373B2 (en) * 2012-09-11 2017-11-28 Sharp Kabushiki Kaisha Illuminance sensor, proximity sensor, and display device including the sensor
US20140111953A1 (en) * 2012-10-19 2014-04-24 Apple Inc. Electronic Devices With Components Mounted to Touch Sensor Substrates
CN103066087B (zh) * 2012-12-20 2016-03-02 格科微电子(上海)有限公司 图像传感器模组和手持式电子装置
US20170019577A1 (en) * 2015-07-17 2017-01-19 Dell Products L.P. Safety circuit for infrared and laser imaging devices
CN106657737B (zh) * 2016-12-14 2019-08-06 北京小米移动软件有限公司 摄像头组件及终端

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1996035977A1 (en) * 1995-05-10 1996-11-14 Korea Communications Co., Ltd. An opening and shutting device of infrared-ray filter for cameras
CN203313287U (zh) * 2013-06-17 2013-11-27 深圳警翼数码科技有限公司 一种摄影装置
CN104717347A (zh) * 2013-12-13 2015-06-17 中兴通讯股份有限公司 管理液晶显示屏背光灯的方法、装置及终端
CN104980639A (zh) * 2014-04-03 2015-10-14 杭州华为企业通信技术有限公司 红外控制装置、方法及摄像机
CN104883484A (zh) * 2015-01-23 2015-09-02 宁波舜宇光电信息有限公司 安防系统、安防摄像模组及其制造方法
CN106161728A (zh) * 2015-03-24 2016-11-23 联想(北京)有限公司 一种传感装置、电子设备及检测方法
CN105933519A (zh) * 2016-04-22 2016-09-07 广东欧珀移动通信有限公司 一种屏幕亮度调节方法、装置和移动终端

Also Published As

Publication number Publication date
CN109151331A (zh) 2019-01-04

Similar Documents

Publication Publication Date Title
WO2018233277A1 (zh) 检测方法、装置及存储介质
CN101800853B (zh) 能够判别与物体的邻近度的图像传感器
CN105352601A (zh) 测量照度、接近度以及色温的图像传感器
CN105959581A (zh) 具有动态控制闪光灯的用于图像捕捉的电子设备及相关的控制方法
CN1804714B (zh) 光学设备
US7167201B2 (en) Device incorporating eye-start capability
JP2005136751A5 (zh)
KR20180035816A (ko) 센서 기반 카메라 초기화
KR102668233B1 (ko) 관심 영역을 통해 움직이는 외부 객체에 대해 프레임 레이트를 제어하여 이미지들을 획득하는 전자 장치 및 그의 동작 방법
TWI558201B (zh) 具有紅外光濾鏡切換功能的影像擷取裝置
KR102707136B1 (ko) 카메라 센서를 이용하여 외부 조도를 획득하는 방법 및 해당 방법을 적용한 전자 장치
US20120108291A1 (en) Image pickup apparatus and mobile phone equipped therewith
US7756410B2 (en) Camera accessory and camera
JP5036334B2 (ja) 撮像装置、撮像方法およびその方法をコンピュータが実行するためのプログラム
JP4743868B2 (ja) 画像記録装置
US20040032522A1 (en) Digital camera and power supply control thereof
TW201512701A (zh) 取像裝置及其控制方法
JP3207944B2 (ja) カメラ
JP5293037B2 (ja) 連写駆動制御装置
JP2008244587A (ja) カメラおよび電子機器
JP2004186721A (ja) カメラ
EP2605505B1 (en) Apparatus and method for controlling a camera and infrared illuminator in an electronic device
KR100978661B1 (ko) 카메라 플래시 광량 제어 방법 및 장치
JP2009177680A (ja) カメラ
JP2019132586A (ja) センサおよび電子機器

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18820643

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18820643

Country of ref document: EP

Kind code of ref document: A1