Laser safety control device and control method
By combining the depth camera and the color camera module, the proportion of the face size is used to determine the distance of the face, which solves the problem of misjudgment of the distance sensor due to strong reflective materials, and improves the accuracy of laser safety control and the efficiency of the depth camera.
Patent Information
- Application Number
- CN202010262348.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-06
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-04-06
AI Technical Summary
In existing 3D structured light face recognition equipment, the distance sensor causes misjudgment of distance due to interference from strong reflective materials, affecting the accuracy of laser safety control.
The combination of depth camera and color camera module is used to calculate the proportion of the face size to determine the distance of the face through the detection results of the face in the color image and the change trend of the distance value, and then control the opening and power of the laser light source.
It improves the accuracy of judging the distance of the target, avoids misjudgments caused by the interference of strong reflective materials on the distance sensor, ensures laser safety and enhances the efficiency of the depth camera.
Smart Images

Figure CN111487632B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of optics and electronic technology, and in particular to a laser safety control device and a control method. Background Art
[0002] With the continuous development and progress of 3D structured light and face recognition technology, more and more 3D structured light cameras are used in face-swiping payment devices. 3D structured light face recognition is not only highly accurate, but also applicable to a wide range of scenarios. It can realize skin color detection and stereo detection, and has a high degree of face recognition security.
[0003] 3D structured light solutions generally include infrared laser transmitters and receivers. The infrared laser transmitter emits a specific pattern of near-infrared light (such as laser speckle) to hit the object. After reflection from the object, the deformed patterned light beam is received by the receiver (such as an infrared image sensor), and the depth information of the object is obtained through calculation and processing. In order to prevent the harm of laser to the human body, the transmitter needs to be specially designed to ensure laser safety. Especially in face recognition devices, the human body needs to be close to the device, so laser safety becomes particularly important.
[0004] In order to improve the laser safety of structured light cameras, distance sensors (P-Sensors) are generally added to sense the approach or distance of objects. When the object is sensed to be approaching, the laser light is turned off, and when the object is sensed to be far away, the laser light is turned on. The distance sensor sends a specific light source and receives the light signal reflected by the object, and judges the distance of the object according to the intensity of the reflected light signal; however, for objects of different materials, the reflection intensity is different. For objects of strong reflective materials, the reflected light signal is stronger, which can easily affect the accuracy of the distance sensor and cause serious misjudgment of distance. Taking the face recognition application scenario as an example, in the actual scenario, when the human body is wearing fluorescent clothing, even if the human body stands at a distance away from the maximum damage distance of the laser, due to the strong reflection intensity of the fluorescent clothing, the distance value detected by the distance sensor will be less than the maximum damage distance value of the laser. Therefore, even if the human body is within the safe distance range, the laser protection will still be triggered.
[0005] The disclosure of the above background technology content is only used to assist in understanding the inventive concept and technical solution of the present invention. It does not necessarily belong to the prior art of this patent application. In the absence of clear evidence that the above content has been disclosed on the filing date of this patent application, the above background technology should not be used to evaluate the novelty and creativity of the present application. Summary of the invention
[0006] The object of the present invention is to provide a laser safety control device and a control method to solve at least one of the above-mentioned background technical problems.
[0007] To achieve the above object, the technical solution of the embodiment of the present invention is implemented as follows:
[0008] A laser safety control device includes a depth camera, a distance sensor and a processor; wherein:
[0009] The depth camera includes a laser light source and a color camera module, the laser light source is used to emit a light beam, and the color camera module is used to collect a color image of the target;
[0010] The distance sensor is used to detect a series of distance values of the target;
[0011] The processor is respectively connected to the depth camera and the distance sensor to control the depth camera and the distance sensor, and controls the laser light source according to the change trend of the series of distance values and the detection result of the face in the color image.
[0012] In some embodiments, if the distance value gradually decreases and no human face is detected in the color image, the processor will control the laser light source.
[0013] In some embodiments, if the distance value gradually decreases and a face is detected in the color image, the processing will determine the distance of the face in the color image and control the laser light source according to the distance of the face in the color image.
[0014] In some embodiments, the processor determines the distance of the face by calculating the ratio of the face size in the color image, wherein the ratio of the face size in the color image is negatively correlated with the distance between the face and the depth camera.
[0015] In some embodiments, controlling the laser light source includes turning off the laser light source or reducing the power of the laser light source.
[0016] Another technical solution of the present invention is:
[0017] A laser safety control method comprises the following steps:
[0018] S300, detecting a series of distance values of the target by a distance sensor;
[0019] S310, using a color camera module in a depth camera to collect a color image of the target; wherein the depth camera also includes a laser light source;
[0020] S320, controlling the laser light source according to the change trend of the series of distance values detected in step S300 and the face detection result of the color image collected in step S310.
[0021] In some embodiments, in step S320, when the changing trend of the series of distance values is that the distance values gradually become smaller and no human face is detected in the color image, the laser light source is started to be controlled; or, when the changing trend of the series of distance values is that the distance values gradually become smaller and a human face is detected in the color image, and the state of the human face in the color image is judged to be close, the laser light source is started to be controlled.
[0022] In some embodiments, the processor determines the distance of the face by calculating the ratio of the face size in the color image, wherein the ratio of the face size in the color image is negatively correlated with the distance between the face and the depth camera.
[0023] In some embodiments, controlling the laser light source includes turning off the laser light source or reducing the power of the laser light source.
[0024] Another technical solution of the embodiment of the present invention is:
[0025] A computer-readable storage medium is used to store a computer program, which, when executed, at least performs the method described in the aforementioned technical solution.
[0026] The beneficial effects of the technical solution of the present invention are:
[0027] The laser safety control device and control method of the present invention utilize a color camera module to collect a color image of the target, utilize a distance sensor to detect a series of distance values of the target, and determine the distance of the target by combining the color image with the distance sensor, thereby avoiding the situation in which the distance sensor misjudges the distance of the target due to interference from strongly reflective materials, greatly improving the accuracy of the target distance judgment, ensuring laser safety, and enhancing the efficiency of the use of the depth camera. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0029] Figure 1 It is a schematic diagram of the principle structure of a laser safety control device according to an embodiment of the present invention.
[0030] Figure 2 is a flowchart illustrating a laser safety control method according to an embodiment of the present invention.
[0031] Figure 3FIG. 1 is a schematic diagram of the principle structure of a laser safety device according to another embodiment of the present invention.
[0032] Figure 4 is a flowchart illustrating a laser safety control method according to another embodiment of the present invention.
[0033] Figure 5 It is a schematic diagram of the principle structure of a laser safety control device according to another embodiment of the present invention.
[0034] Figure 6 is a flowchart illustrating a laser safety control method according to yet another embodiment of the present invention. DETAILED DESCRIPTION
[0035] In order to make the technical problems, technical solutions and beneficial effects to be solved by the embodiments of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0036] It should be noted that when a component is referred to as being "fixed to" or "disposed on" another component, it can be directly on the other component or indirectly on the other component. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element. In addition, connection can be used for fixing or for circuit connection.
[0037] It should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing the embodiments of the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0038] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0039] Reference Figure 1As shown, as an embodiment of the present invention, a laser safety control device is provided, including: a depth camera, a distance sensor, and a processor connected to the depth camera and the distance sensor respectively; wherein the depth camera includes a laser light source and a color camera module, the laser light source is used to emit a light beam, and the color camera module is used to collect a color image of the target; the distance sensor is used to detect the distance state of the target; the processor is used to control the depth camera and the distance sensor, and detect whether there is a face in the color image and judge the distance of the face from the depth camera: when there is no face in the color image or there is a face and the face is close, the distance sensor is controlled to detect the distance state of the target, if the state of the target is close, the laser light source is controlled; if the state of the target is far, the normal operation of the laser light source is maintained; when there is a face in the color image and the face is far, the normal operation of the laser light source is maintained.
[0040] In one embodiment, the depth camera can be a structured light-based depth camera, which includes a projection module, an imaging module and a color camera module; wherein the projection module is used to emit a laser beam to project a structured light image onto a target, and includes a laser light source and a diffraction optical element; the imaging module is used to capture the structured light image reflected back by the target; and the color camera module is used to capture the color image of the target.
[0041] In one embodiment, the projection module may be composed of a laser light source such as a vertical cavity surface laser emitter (VCSEL), a VCSEL array, a light emitting diode (LED), and an optical element such as a diffuser and a diffractive optical element (DOE); the laser light source may be a visible light source or an invisible light source, such as infrared light, ultraviolet light, etc. In other embodiments, the depth camera may also be a time-of-flight (TOF) camera, which includes a laser projection unit and a depth image sensor; wherein the laser projection unit is used to emit a laser to a target; and the depth image sensor is used to receive the laser reflected back by the target. It is understandable that when the depth image is collected using the above-mentioned depth camera, since a laser light source is included, when the distance between the target and the depth camera is less than the maximum damage distance value d0 of the laser (the maximum distance at which the laser can cause damage to the target), the laser will cause damage to the target (e.g., the human body).
[0042] In one embodiment, the distance sensor includes an optical signal transmitting unit and an optical signal receiving unit, wherein the optical signal transmitting unit is used to transmit a distance detection optical signal to a target; the optical signal receiving unit is used to receive the distance detection optical signal reflected back by the target to detect the distance value of the target. When the received distance detection optical signal is strong, it is judged that the distance between the target and the distance sensor is close.
[0043] Specifically, the color camera collects the color image of the target and transmits it to the processor. After receiving the color image, the processor analyzes it and detects whether there is a face in the color image based on the face detection algorithm. When the processor does not recognize a face in the color image, the processor activates the distance sensor to detect the distance state of the target. If the state of the target is close, the laser light source is controlled; if the state of the target is far, the laser light source is kept working normally. When the processor recognizes a face in the color image, the processor further calculates the distance of the face in the color image: when the face is close, the processor activates the distance sensor to detect the distance state of the target. If the state of the target is close, the laser light source is controlled. If the state of the target is far, the laser light source is kept working normally; when the face is far, the laser light source is kept working normally. At this time, the distance state of the target detected by the distance sensor can be ignored, and the distance sensor can also be not activated. In one embodiment, controlling the laser light source includes turning off the laser light source or reducing the power of the laser light source. For example, when the laser light source is working normally, the current is 1A. When it may cause harm to the human body, it can be reduced to 500mA. It is understandable that the face detection algorithm may adopt the existing geometric feature analysis method, characteristic face analysis method, local feature analysis method, artificial neural network method, etc., which is not particularly limited in this embodiment.
[0044] In one embodiment, the processor measures the distance of the face by calculating the proportion of the face size in the color image. The proportion of the face size in the color image is negatively correlated with the distance between the face and the depth camera, that is, the higher the proportion of the face size in the color image, the closer the face is to the depth camera. A threshold value of the distance between the face and the depth camera is set, and corresponding to the threshold, the face size has a proportion value in the color image, which is recorded as a preset proportion value. When the face is close, the distance between the face and the depth camera is less than the threshold, and at this time, the face proportion value is greater than the preset proportion value; when the face is far, the distance between the face and the depth camera is greater than or equal to the threshold, and at this time, the face proportion value is less than or equal to the preset proportion value; that is, when the face proportion value is greater than the preset proportion value, it is judged that the face is close, and when the face proportion value is less than or equal to the preset proportion value, it is judged that the face is far. For example: assuming that the maximum damage distance is d0, the threshold is set to d1, and corresponding to d1, the face proportion value is 80%, which is recorded as the preset proportion value. When the face ratio is greater than 80%, that is, the distance between the face and the depth camera is less than d1, the face is judged to be close; when the face ratio is less than or equal to 80%, that is, the distance between the face and the depth camera is greater than or equal to d1, the face is judged to be far. In one embodiment, d1 is greater than or equal to d0.
[0045] It is understandable that the size of different people's faces is very different, that is, when two different people stand at the same distance, the proportion of the face in the collected color image may be very different, so there will be a large error in the judgment of the distance of the face. Therefore, in one embodiment, a first color image can be collected for each person at a preset distance (for example, d2) in advance, and the corresponding face proportion in the first color image is calculated as a reference value, recorded as the first proportion, and the first color image and the first proportion are stored. When in an actual scene, when a color image containing a face of the target is collected, after calculating the second proportion of the face in the color image, it is also necessary to find a pre-stored first color image matching the collected face, and read the corresponding first proportion, compare the second proportion with the first proportion, if the second proportion is greater than the first proportion, that is, the distance between the face and the depth camera is less than d2, then the face is judged to be close, if the second proportion is less than or equal to the first proportion, that is, the distance between the face and the depth camera is greater than or equal to d2, then the face is judged to be far. It is understandable that the step of matching the color image with the first color image can be performed first, or the step of calculating the face ratio value in the color image can be performed first. In one embodiment, d2 is greater than or equal to d0. It should be understood that although the result of judging the distance of the face in this embodiment will be more accurate, compared with the above solution, the steps will be more complicated, and therefore it will take longer time.
[0046] In one embodiment, the maximum damage distance value of the laser is set to d0, and the distance value between the distance sensor and the target is detected and set to d3; the detected distance value d3 is compared with the maximum damage distance of the laser d0: when d3 is less than d0, the target state is judged to be close; when d3 is greater than or equal to d0, the target state is judged to be far.
[0047] In some embodiments, the distance sensor and the depth camera are fixedly mounted together, and the distance between the distance sensor and the depth camera can be ignored, so that the distance from the target to the depth camera can be considered to be equal to the distance from the target to the distance sensor.
[0048] It is understandable that the processor can be connected to and controlled by each module and distance sensor of the depth camera through a circuit board (not shown) and a connector (not shown), wherein the circuit board can be a flexible circuit board FPC, a printed circuit board PCB or a soft-hard combination board, etc., and the connector can include any form, such as a board-to-board (BTB) connector, a zero insertion force (ZIF) connector, etc. The processor can be a dedicated processor, including but not limited to a CPU, a GPU, a digital signal processor (DSP), a physical processing unit (PPU) and an image signal processor (ISP). The processor can also be a system on chip (SoC), which combines multiple dedicated processors, such as an application processor, a baseband processor, etc. When the above-mentioned laser safety control device is used in some embodiments of mobile devices (e.g., smart phones, tablet computers, glasses, watches, virtual reality / augmented reality headsets, laptop computers, etc.), the same processor can be shared.
[0049] Reference Figure 2 As shown, the present invention also provides a laser safety control method, comprising the following steps:
[0050] S100, collecting a color image of the target;
[0051] Specifically, a color image of a target is acquired by using a color camera module in a depth camera; wherein the depth camera further comprises a laser light source. In some embodiments, the depth camera may be a structured light-based depth camera, which comprises a projection module, an imaging module and a color camera module; wherein the projection module is used to emit a laser beam to project a structured light image onto a target, and comprises a laser light source and a diffractive optical element; the imaging module is used to acquire a structured light image reflected back by the target; and the color camera module is used to acquire a color image of the target.
[0052] S110, detecting whether there is a human face in the collected color image and determining the distance of the human face;
[0053] Specifically, the processor receives and analyzes the color image collected in step S100, and detects whether there is a face in the color image based on the face detection algorithm. When a face is detected in the color image, the distance of the face is measured by calculating the proportion of the face size in the color image. If the proportion of the face size in the color image is high, it is judged that the face is close to the depth camera. Otherwise, it is judged that the face is far from the depth camera.
[0054] In one embodiment, a threshold of the distance between the face and the depth camera is set, and corresponding to the threshold, the face size has a proportion value in the color image, which is recorded as the preset proportion value (that is, when the distance between the face and the depth camera is the threshold, the face size in the color image The proportion value). When the face is close, the distance between the face and the depth camera is less than the threshold, at this time, the face proportion value is greater than the preset proportion value; and when the face is far, the distance between the face and the depth camera is greater than or equal to the threshold, at this time, the face proportion value is less than or equal to the preset proportion value; that is, when the face proportion value is greater than the preset proportion value, it is judged that the face is close, and when the face proportion value is less than or equal to the preset proportion value, it is judged that the face is far. For example: assuming that the maximum damage distance is d0, the threshold is set to d1, corresponding to d1, the face proportion value is 80%, which is recorded as the preset proportion value. When the face ratio is greater than 80%, that is, the distance between the face and the depth camera is less than d1, the face is judged to be close; when the face ratio is less than or equal to 80%, that is, the distance between the face and the depth camera is greater than or equal to d1, the face is judged to be far.
[0055] In one embodiment, a first color image can be collected at a preset distance in advance, and the corresponding face ratio in the first color image is calculated and recorded as the first ratio, and the first color image and the first ratio are stored. When the collected target includes a color image of a face, a second ratio of the face in the color image is calculated and a pre-stored first color image matching the collected face color image is found, the corresponding first ratio is read, and the second ratio is compared with the first ratio. If the second ratio is greater than the first ratio, the face is judged to be near; if the second ratio is less than or equal to the first ratio, the face is judged to be far.
[0056] S120, according to the detection result of step S110, controlling the distance sensor to detect the distance state of the target, and controlling the laser light source according to the distance state of the target;
[0057] Specifically, when no face or a face that is close is detected in the color image, the distance sensor is controlled to detect the distance state of the target. If the target state is close, the laser light source is controlled; if the target state is far, the laser light source is kept working normally.
[0058] In one embodiment, the maximum damage distance value of the laser is set to d0, and the distance value between the laser and the target is detected by a distance sensor and set to d3; the detected distance value d3 is compared with the maximum damage distance of the laser d0: when d3 is less than d0, the target state is judged to be close, and when d3 is greater than d0, the target state is judged to be far.
[0059] The laser safety control device and the laser safety control method of the aforementioned embodiments use a color camera module to capture color images of the target, and judge the distance of the target by combining the color image with a distance sensor, thereby avoiding the situation where the distance sensor misjudges the distance of the target due to interference from strongly reflective materials, greatly improving the accuracy of judging the distance of the target, ensuring laser safety, and enhancing the efficiency of using the depth camera.
[0060] It should also be noted that the solution described in the above embodiment is applicable to when the target is static, to determine the distance to it, and then control the laser light source. A technical solution applicable to when the target is dynamic will be described below, which can be applicable to when the target is dynamic, to determine the distance to it, and then control the laser light source.
[0061] Reference Figure 3 As shown, the present application also provides a laser safety device, including a depth camera, a distance sensor and a processor; wherein the depth camera includes a laser light source and a color camera module, the laser light source is used to emit a light beam, and the color camera module is used to collect multiple frames of color images of the target; the distance sensor is used to detect the distance state of the target; the processor is respectively connected to the depth camera and the distance sensor to control the depth camera and the distance sensor, and judge the face change state of the target according to the multiple frames of color images, and control the laser light source or maintain the normal operation of the laser light source according to the face change state and the distance state of the target. Wherein, the face change state includes from presence to absence or from absence to presence. In one embodiment, controlling the laser light source includes turning off the laser light source or reducing the power of the laser light source.
[0062] In one embodiment, the depth camera can be a structured light-based depth camera, which includes a projection module, an imaging module and a color camera module; wherein the projection module is used to emit a laser beam to project a structured light image onto a target, and includes a laser light source and a diffraction optical element; the imaging module is used to capture the structured light image reflected back by the target; the color camera module is used to capture multi-frame color images of the target.
[0063] In one embodiment, when the state of the face changes from presence to absence and the state of the target is near, the processor will control the laser light source; and when the state of the face changes from presence to absence and the state of the target is far, the processor will keep the laser light source working normally. When the state of the face changes from absence to presence and the state of the target is far, the processor will keep the laser light source working normally; and when the state of the face changes from absence to presence and the state of the target is near, the processor will judge the distance of the face in the current frame color image, if the face in the current color image is near, the processor will control the laser light source; if the face in the current color image is far, the processor will keep the laser light source working normally.
[0064] In one embodiment, the color camera continuously collects multiple frames of color images of the target and transmits them to the processor, and the processor analyzes the multiple frames of color images after receiving them. Specifically, the processor detects whether there is a face in the color image based on the face detection algorithm, and further determines the face change state in the multiple frames of color images of the target, wherein the face change state is from presence to absence or from absence to presence. It can be understood that when the target is within the ideal camera range of the color camera, there will always be a face in the color image, and as the target approaches, the proportion of the face in the color image will become larger and larger, that is, as the target approaches, the proportion of the face in the color image gradually increases. When the target is too close or too far away from the color camera, the face will not be detected in the color image. Therefore, when the face change state is from absence to presence, it is necessary to measure the distance state of the target through a distance sensor to determine which of the above situations the target belongs to (too far or too close). Specifically, when the target state is close, it is judged that the target is too close to the color camera, so the face cannot be recognized, so the processor will control the laser light source; when the target state is far, it is judged that the target is too far from the color camera, so the face cannot be recognized, so the processor will maintain the normal operation of the laser light source.
[0065] When the processor analyzes multiple frames of color images and determines that the face state changes from none to present, the processor will further combine the distance sensor to measure the distance state of the target to determine whether the target is within a safe range. When the distance sensor measures that the target state is far, the processor will maintain the normal operation of the laser light source. When the distance sensor measures that the target state is near, the processor needs to further calculate the distance of the face in the current frame of the color image to determine whether the target is within a safe distance range to avoid the distance sensor being interfered by strong reflective materials and causing misjudgment of the target distance state; further, if the face in the current color image is near, the processor will control the laser light source; if the face in the current color image is far, the processor will maintain the normal operation of the laser light source. It should be noted that the detection of the distance of the face in the color image and the detection of the distance of the target using the distance sensor can also be performed using the method described in the aforementioned embodiment scheme, which will not be repeated here.
[0066] Reference Figure 4 As shown, the embodiment of the present application also provides a laser safety control method, comprising the following steps:
[0067] S200, collecting multiple frames of color images of the target;
[0068] Specifically, a color camera module in a depth camera is used to collect multiple color images of a target; wherein the depth camera also includes a laser light source. In some embodiments, the depth camera may be a structured light-based depth camera, which includes a projection module, an imaging module, and a color camera module; wherein the projection module is used to emit a laser beam to project a structured light image onto a target, and includes a laser light source and a diffractive optical element; the imaging module is used to collect the structured light image reflected back by the target; and the color camera module is used to collect multiple color images of the target.
[0069] S210, judging the face change state of the target according to the multiple frames of color images collected in step S200; wherein the face change state is from presence to absence or from absence to presence;
[0070] Specifically, the processor detects whether there is a face in the color image based on the face detection algorithm, and further determines the face change state in the target's multiple frames of color images, including from presence to absence or from absence to presence. It can be understood that when the target is within the ideal camera range of the color camera, there will always be a face in the color image, and as the target approaches, the proportion of the face in the color image will increase, that is, as the target approaches, the proportion of the face in the color image gradually increases.
[0071] S220, detecting the distance state of the target by using a distance sensor;
[0072] Specifically, the distance sensor includes an optical signal transmitting unit and an optical signal receiving unit, wherein the optical signal transmitting unit is used to transmit a distance detection optical signal to the target; the optical signal receiving unit is used to receive the distance detection optical signal reflected back by the target to detect the distance value of the target. When the received distance detection optical signal is strong, it is judged that the distance between the target and the distance sensor is close, otherwise, the distance is far.
[0073] S230, controlling the laser light source or maintaining normal operation of the laser light source according to the changing state of the human face and the distance of the target.
[0074] Specifically, when the face state changes from presence to absence and the target state is close, or when the face state changes from absence to presence and the target state and the face in the current frame color image are close, the processor will control the laser light source; and when the face state changes from presence to absence and the target state is far, or when the face state changes from absence to presence and the target state and the face in the current frame color image are far, the processor will maintain the normal operation of the laser light source. It should be noted that the detection of the distance of the face in the color image and the detection of the distance of the target using the distance sensor can also be performed using the method described in the aforementioned embodiment scheme, which will not be repeated here.
[0075] In the above-mentioned embodiment of the present application, a color camera module is used to collect multi-frame color images of the target, and the distance of the target is judged by combining the color image with the distance sensor. This avoids the situation where the distance sensor misjudges the distance of the target due to interference from strongly reflective materials, greatly improves the accuracy of judging the distance of the target, ensures laser safety, and enhances the efficiency of using the depth camera.
[0076] The present application also provides a laser safety control device and method, which are suitable for judging the distance of a target when it is in a dynamic state, and then controlling the laser light source. This scheme will be described in detail below.
[0077] Reference Figure 5 As shown, as an embodiment of the present invention, a laser safety control device includes: a depth camera, a distance sensor and a processor; wherein the depth camera includes a laser light source and a color camera module, the laser light source is used to emit a light beam, and the color camera module is used to collect a color image of the target; the distance sensor is used to detect a series of distance values of the target; the processor is respectively connected to the depth camera and the distance sensor and controls the depth camera and the distance sensor, and controls the laser light source according to the changing trend of the series of distance values and the detection result of the face in the color image.
[0078] Specifically, the change trend of the series of distance values includes the distance value gradually increasing and the distance value gradually decreasing. If the change trend of the series of distance values is that the distance value gradually increases, the processor will maintain the normal operation of the laser light source; if the change trend of the series of distance values is that the distance value gradually decreases, the processor will control the depth camera to collect the color image of the target and detect whether there is a face in the color image. If there is no face in the color image, the processor will control the laser light source; if there is a face in the color image, the processor will further determine the distance of the face in the color image. If the face in the color image is close, the processor will control the laser light source; if the face in the color image is far, the processor will maintain the normal operation of the laser light source. In one embodiment, controlling the laser light source includes turning off the laser light source or reducing the power of the laser light source.
[0079] It is understandable that by measuring a series of distance values through the distance sensor, when the distance value becomes larger and larger, it is judged that the target is getting farther and farther away from the depth camera, and the processor will keep the laser light source working normally. When the distance value becomes smaller and smaller, it is judged that the target is getting closer and closer to the depth camera, but whether the target is within a safe range, the processor will further combine the color image captured by the depth camera to judge the distance state of the face, so as to avoid the distance sensor being interfered by strong reflective materials and causing misjudgment of the target distance state; further, if the face in the current color image is close, the processor will control the laser light source; if the face in the current color image is far, the processor will keep the laser light source working normally. It should be noted that the detection of faces in color images and the detection of the distance of faces in color images can also be performed using the method described in the aforementioned embodiment scheme, which will not be repeated here.
[0080] In the embodiment of the present application, a color camera module is used to collect a color image of the target, and a distance sensor is used to detect a series of distance values of the target. The distance of the target is judged by combining the color image and the distance sensor, thereby avoiding the situation where the distance sensor misjudges the distance of the target due to interference from strongly reflective materials, greatly improving the accuracy of judging the distance of the target, ensuring laser safety, and enhancing the efficiency of using the depth camera.
[0081] Reference Figure 6 As shown, as another embodiment of the present application, a laser safety control method is also provided, comprising the following steps:
[0082] S300, detecting a series of distance values of the target by a distance sensor;
[0083] S310, collecting a color image of the target;
[0084] Specifically, a color camera module in the depth camera is used to collect a color image of the target; wherein the depth camera also includes a laser light source. In some embodiments, the depth camera can be a structured light-based depth camera, which includes a projection module, an imaging module, and a color camera module; wherein the projection module is used to emit a laser beam to project a structured light image to the target, and includes a laser light source and a diffractive optical element; the imaging module is used to collect the structured light image reflected back by the target; and the color camera module is used to collect the color image of the target.
[0085] S320, controlling the laser light source according to the change trend of the series of distance values detected in step S300 and the face detection result of the color image collected in step S310;
[0086] Specifically, the changing trend of a series of distance values detected in step S300 is judged, and face detection is performed on the color image collected in step S310; wherein, when the changing trend of the series of distance values is that the distance values gradually become smaller and no face is detected in the color image, the laser light source is started to be controlled; or, when the changing trend of the series of distance values is that the distance values gradually become smaller and a face is detected in the color image, and the face state in the color image is judged to be close, the laser light source is started to be controlled.
[0087] Specifically, if the changing trend of the series of distance values is that the distance values gradually increase, the processor will maintain the normal operation of the laser light source; if the changing trend of the series of distance values is that the distance values gradually decrease, the processor will control the depth camera to capture the color image of the target and detect whether there is a human face in the color image. If there is no human face in the color image, the processor will control the laser light source; if there is a human face in the color image, the processor will further determine the distance of the human face in the color image. If the human face in the color image is near, the processor will control the laser light source; if the human face in the color image is far, the processor will maintain the normal operation of the laser light source.
[0088] The above-mentioned laser safety control method can be executed using the above-mentioned laser safety control device, and the specific details are not repeated here. It should be understood that the above-mentioned method can realize the corresponding functions by electronic hardware, computer software or a combination of the two. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0089] An embodiment of the present application also provides a computer-readable storage medium for storing a computer program, which at least performs the method described above when executed.
[0090] The storage medium may be implemented by any type of volatile or non-volatile storage device, or a combination thereof. Among them, the non-volatile memory may be 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 magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory may be a disk memory or a tape memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), direct memory bus random access memory (DRRAM). The storage media described in the embodiments of the present invention are intended to include, but are not limited to, these and any other suitable types of memory.
[0091] It is to be understood that the above content is a further detailed description of the present invention in conjunction with specific / preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For those of ordinary skill in the technical field to which the present invention belongs, without departing from the concept of the present invention, it can also make several substitutions or modifications to these described embodiments, and these substitutions or modifications should be deemed to belong to the protection scope of the present invention. In the description of this specification, the description of reference terms "an embodiment", "some embodiments", "preferred embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention.
[0092] In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples without contradicting each other. Although the embodiments of the present invention and their advantages have been described in detail, it should be understood that various changes, substitutions and modifications can be made herein without departing from the scope defined by the appended claims.
[0093] Furthermore, the scope of the present invention is not intended to be limited to the particular embodiments of the processes, machines, manufactures, compositions of matter, means, methods, and steps described in the specification. One of ordinary skill in the art will readily appreciate that the above disclosures, processes, machines, manufactures, compositions of matter, means, methods, or steps, currently existing or to be developed, may be utilized to perform substantially the same functions as the corresponding embodiments described herein or to obtain substantially the same results as the embodiments described herein. Therefore, the appended claims are intended to include within their scope such processes, machines, manufactures, compositions of matter, means, methods, or steps.
Claims
1. A laser safety control device, characterized in that: It is suitable for judging the distance of a target when the target is in motion, and then safely controlling the laser. The device includes a depth camera, a distance sensor and a processor; wherein, The depth camera includes a laser light source and a color camera module, the laser light source is used to emit a light beam, and the color camera module is used to collect a color image of the target; The distance sensor is used to detect a series of distance values of the target; The processor is respectively connected to the depth camera and the distance sensor to control the depth camera and the distance sensor, and controls the laser light source according to the change trend of the series of distance values and the detection result of the human face in the color image; If the variation trend of the series of distance values is that the distance values gradually increase, the processor will maintain the normal operation of the laser light source; If the change trend of the series of distance values is that the distance values gradually become smaller, the processor will control the depth camera to collect a color image of the target and detect whether there is a human face in the color image; if there is no human face in the color image, the processor will control the laser light source; If there is a face in the color image, the processor will determine the distance of the face in the color image. If the face in the color image is near, the processor will control the laser light source; if the face in the color image is far, the processor will maintain the normal operation of the laser light source.
2. The laser safety control device according to claim 1, characterized in that: The processor determines the distance of the face by calculating the proportion of the face size in the color image, wherein the proportion of the face size in the color image and the distance between the face and the depth camera are negatively correlated.
3. The laser safety control device according to claim 2, characterized in that: The controlling of the laser light source includes turning off the laser light source or reducing the power of the laser light source.
4. A laser safety control method, characterized in that: It is suitable for judging the distance of the target when the target is in motion, and then controlling the laser safely, including the following steps: S300, detecting a series of distance values of the target by a distance sensor; S310, using a color camera module in a depth camera to collect a color image of the target; wherein the depth camera also includes a laser light source; S320, controlling the laser light source according to the change trend of the series of distance values detected in step S300 and the face detection result of the color image collected in step S310; If the variation trend of the series of distance values is that the distance values gradually increase, the processor will maintain the normal operation of the laser light source; If the change trend of the series of distance values is that the distance values gradually become smaller, the processor will control the depth camera to collect the color image of the target and detect whether there is a human face in the color image. If there is no human face in the color image, the processor will control the laser light source; If there is a face in the color image, the processor will further determine the distance of the face in the color image. If the face in the color image is close, the processor will control the laser light source; if the face in the color image is far, the processor will maintain the normal operation of the laser light source.
5. The laser safety control method according to claim 4, characterized in that: The processor determines the distance of the face by calculating the proportion of the face size in the color image, wherein the proportion of the face size in the color image and the distance between the face and the depth camera are negatively correlated.
6. The laser safety control method according to any one of claims 4 to 5, characterized in that: The controlling of the laser light source includes turning off the laser light source or reducing the power of the laser light source.
7. A computer-readable storage medium for storing a computer program, characterized in that: When the computer program is executed, at least the method according to any one of claims 4 to 6 is performed.
Citation Information
Patent Citations
Iris collection method, electronic device and computer readable storage medium
CN107463877A
Laser safety control method and device based on rang sensor
CN107863678A
Control method, control device, terminal, computer equipment and storage medium
CN108281880A
Control system for laser projector, terminal and control method for laser projector
CN108767653A
Control method and device, depth camera and electronic device
CN109194869A
