Depth information acquisition system, method, electronic device, and storage medium
By detecting and adjusting the control parameters of the speckle projection module using a photosensitive module, the problem of image overexposure in depth information acquisition of high-reflectivity objects was solved, thereby improving the accuracy and reliability of depth information.
Patent Information
- Application Number
- CN202310618000.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-29
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-05-29
AI Technical Summary
When acquiring depth information of objects with high reflectivity, the structured light images acquired by the camera module are too bright and overexposed, resulting in the loss of speckle texture details and reducing the accuracy and reliability of the depth information.
The light signal reflected by the object under test is detected by the photosensitive module, and the control parameters of the speckle projection module are adjusted to output a light signal of appropriate intensity to avoid overexposure of the image acquired by the camera module. The main control chip determines the target control parameters based on the photosensitive parameters and adjusts the power of the speckle projection module.
It improves the accuracy and reliability of depth information acquisition, avoids overexposure of acquired images, and ensures the integrity of speckle texture details.
Smart Images

Figure CN116697931B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of structured light technology, and in particular to a depth information acquisition system, method, electronic device, and storage medium. Background Technology
[0002] Structured light technology can not only image objects but also acquire their depth information. With its development, structured light technology is finding increasingly wider applications in fields such as robot obstacle avoidance, facial recognition payment, and scene modeling, where it can be used to collect depth information of objects.
[0003] In related technologies, a clear pseudo-random speckle pattern is first projected onto the object under test to increase spatial texture information. Then, the camera module receives the structured light image of the speckle pattern reflected from the object's surface. Based on this structured light image, the three-dimensional coordinates of each point on the object's surface can be calculated, thereby acquiring the object's depth information.
[0004] However, when collecting depth information from highly reflective objects, the limited exposure time adjustment of the chip in the camera module causes the structured light image collected by the camera module to be too bright and overexposed. This results in a decrease in the contrast of speckles on the surface of the object under test, loss of speckle texture details, and reduced accuracy and reliability of the collected depth information.
[0005] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this disclosure, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention
[0006] This disclosure provides a depth information acquisition system, method, electronic device, and storage medium, which at least to some extent overcomes the problems in related technologies where structured light images acquired by camera modules are overexposed, the contrast of speckles on the surface of the object under test decreases, speckle texture details are lost, and the accuracy and reliability of the acquired depth information are reduced.
[0007] Other features and advantages of this disclosure will become apparent from the following detailed description, or may be learned in part from practice of this disclosure.
[0008] According to one aspect of the present disclosure, a depth information acquisition system is provided, the system comprising: a speckle projection module, a photosensitive module, a main control chip, and a camera module;
[0009] The speckle projection module is used to emit a first optical signal through initial control parameters.
[0010] The photosensitive module is used to receive a second light signal obtained by the reflection of the first light signal by the object under test; determine a first photosensitive parameter based on the second light signal; and send the first photosensitive parameter to the main control chip.
[0011] The main control chip is used to determine the target control parameter based on the first photosensitive parameter when the first photosensitive parameter and the preset initial photosensitive parameter meet the first preset adjustment condition;
[0012] The speckle projection module is also used to transmit a third optical signal through the target control parameters;
[0013] The camera module is used to acquire an image of the object under test through the third light signal, and to obtain the acquired image to obtain the depth information of the object under test based on the acquired image.
[0014] In some embodiments of this disclosure, the main control chip is used to determine the target control parameter corresponding to the first photosensitive parameter through a preset correspondence, wherein the preset correspondence is used to indicate the correspondence between the target control parameter and the photosensitive parameter.
[0015] In some embodiments of this disclosure, the main control chip includes at least one set of preset correspondences between preset control parameters and photosensitive parameter ranges, wherein the target control parameter belongs to any preset control parameter, any photosensitive parameter range corresponds to a type of high reflectivity object, and any type of high reflectivity object corresponds to a preset control parameter;
[0016] The main control chip is also used to determine the photosensitive parameter range of the first photosensitive parameter; determine the type of high reflectivity object based on the photosensitive parameter range of the first photosensitive parameter; and determine the target control parameter based on the type of the high reflectivity object.
[0017] In some embodiments of this disclosure, the main control chip is also used to send an image acquisition command to the camera module after the speckle projection module emits the third light signal;
[0018] The camera module is used to acquire an image of the object under test by means of the third light signal after receiving the image acquisition command, thereby obtaining the acquired image.
[0019] In some embodiments of this disclosure, the photosensitive module is further configured to receive a fourth optical signal obtained by the object under test reflecting the third optical signal; determine a second photosensitive parameter based on the fourth optical signal; and send the second photosensitive parameter to the main control chip.
[0020] The main control chip is used to send an image acquisition command to the camera module when the second photosensitive parameter and the preset initial photosensitive parameter do not meet the second preset adjustment conditions.
[0021] In some embodiments of this disclosure, the main control chip is further configured to send an image acquisition command to the camera module when the first photosensitive parameter does not meet the first preset adjustment condition with respect to the preset initial photosensitive parameter;
[0022] The camera module is used to acquire an image of the object under test by means of the first light signal after receiving the image acquisition command, thereby obtaining the acquired image.
[0023] In some embodiments of this disclosure, the first optical signal is infrared light of the target wavelength;
[0024] The camera module includes an infrared lens, a narrowband filter for the target wavelength, and a photosensitive chip.
[0025] According to another aspect of this disclosure, a depth information acquisition method is provided, the method being executed by a main control chip, comprising:
[0026] The first photosensitive parameter is received from the photosensitive module, wherein the photosensitive module is used to receive the second light signal obtained by the reflection of the first light signal by the object under test, and to determine the first photosensitive parameter based on the second light signal, wherein the first light signal is emitted by the speckle projection module through initial control parameters;
[0027] When the first photosensitive parameter and the preset initial photosensitive parameter meet the first preset adjustment condition, the target control parameter is determined according to the first photosensitive parameter. The target control parameter is used to instruct the speckle projection module to emit a third light signal through the target control parameter, so that the camera module can acquire an image of the object under test through the third light signal to obtain an acquired image, so as to obtain the depth information of the object under test based on the acquired image.
[0028] According to another aspect of this disclosure, a depth information acquisition device is provided, which is applied to a main control chip, comprising:
[0029] The first photosensitive parameter receiving module is used to receive the first photosensitive parameter sent by the photosensitive module. The photosensitive module is used to receive the second light signal obtained by the object under test reflecting the first light signal, and to determine the first photosensitive parameter based on the second light signal. The first light signal is emitted by the speckle projection module through initial control parameters.
[0030] The target control parameter determination module is used to determine the target control parameter according to the first photosensitive parameter when the first photosensitive parameter and the preset initial photosensitive parameter meet the first preset adjustment condition. The target control parameter is used to instruct the speckle projection module to emit a third light signal through the target control parameter, so that the camera module can acquire an image of the object under test through the third light signal to obtain an acquired image, so as to obtain the depth information of the object under test based on the acquired image.
[0031] According to another aspect of this disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the aforementioned depth information acquisition method by executing the executable instructions.
[0032] According to another aspect of this disclosure, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the depth information acquisition method described above.
[0033] According to another aspect of this disclosure, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the depth information acquisition method provided in various alternative embodiments of this disclosure.
[0034] The technical solution provided in this disclosure allows for the adjustment of control parameters of the light signal emitted by the speckle projection module by setting a photosensitive module, thereby enabling it to output a third light signal of appropriate intensity. Therefore, this application embodiment can effectively avoid overexposure and over-brightness in the acquired images obtained by the camera module, thus improving the accuracy and reliability of depth information acquisition.
[0035] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0036] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure. It is obvious that the drawings described below are merely some embodiments of this disclosure, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.
[0037] Figure 1 A schematic diagram of a system architecture according to an embodiment of this disclosure is shown;
[0038] Figure 2 This diagram illustrates the structure of a photosensitive module according to an embodiment of the present disclosure.
[0039] Figure 3 A schematic diagram of a photoresistor included in a photosensitive module according to an embodiment of the present disclosure is shown;
[0040] Figure 4 This diagram illustrates a process for depth information acquisition in an embodiment of the present disclosure.
[0041] Figure 5 This diagram illustrates a flowchart of a depth information acquisition method according to an embodiment of the present disclosure;
[0042] Figure 6 This diagram illustrates another depth information acquisition method according to an embodiment of the present disclosure.
[0043] Figure 7 A schematic diagram showing an infrared camera image and a corresponding depth map according to an embodiment of this disclosure;
[0044] Figure 8 A schematic diagram showing another infrared camera image and corresponding depth map in an embodiment of this disclosure;
[0045] Figure 9 This diagram illustrates a depth information acquisition device according to an embodiment of the present disclosure.
[0046] Figure 10 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown. Detailed Implementation
[0047] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, they are provided so that this disclosure will be more comprehensive and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0048] Furthermore, the accompanying drawings are merely illustrative of this disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and therefore repeated descriptions of them will be omitted. Some block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0049] Figure 1 A schematic diagram of an exemplary system architecture that can be applied to the depth information acquisition system of the embodiments of this disclosure is shown.
[0050] like Figure 1 As shown, the system architecture 100 may include a speckle projection module 101, a photosensitive module 102, a main control chip 103, and a camera module 104.
[0051] The speckle projection module 101 can be used to emit a first light signal based on initial control parameters. The photosensitive module 102 can be used to receive a second light signal obtained by reflecting the first light signal from the object under test; determine a first photosensitive parameter based on the second light signal; and send the first photosensitive parameter to the main control chip 104. The main control chip 104 can be used to determine target control parameters based on the first photosensitive parameter when the first photosensitive parameter and the preset initial photosensitive parameter meet a first preset adjustment condition. The speckle projection module 101 can also be used to emit a third light signal based on the target control parameters. The camera module 104 can be used to acquire an image of the object under test using the third light signal, obtain an acquired image, and obtain the depth information of the object under test based on the acquired image.
[0052] Those skilled in the art will know that Figure 1 The number of speckle projection module 101, photosensitive module 102, main control chip 103, and camera module 104 in the above-mentioned embodiment is merely illustrative. Depending on actual needs, any number of speckle projection module 101, photosensitive module 102, main control chip 103, and camera module 104 may be included. This disclosure does not limit the number of such components.
[0053] In an exemplary embodiment, the first optical signal may be in the form of a pseudo-random speckle or an array speckle. Alternatively, the first optical signal may also be in other forms, and this embodiment of the present disclosure does not limit this.
[0054] For example, when the first optical signal is an array of speckles, the speckle projection module 101 can output the array of speckles according to the initial control parameters, and collimate the light of the first optical signal onto the DOE (Diffractive Optical Elements) through the collimating lens, thereby replicating the array of speckles into multiple horizontal and vertical blocks and projecting them onto the object under test.
[0055] In some embodiments, the speckle projection module 101 can output an array of speckles using a laser semiconductor VCSEL (Vertical Cavity Surface Emitting Laser).
[0056] For example, the initial control parameter may indicate the operating power of the speckle projection module 101. This disclosure does not limit the content of the initial control parameter; for example, the initial control parameter may include at least one of the output current, output voltage, signal period, and duty cycle of the speckle projection module 101.
[0057] The values of output current, output voltage, signal period, and duty cycle included in the initial control parameters can all be set based on experience or application scenarios. In one possible implementation, the initial control parameters may include an output current of 3V, an output voltage of 2A, a signal period of 3 milliseconds, and a 10% duty cycle.
[0058] After the speckle projection module 101 emits a first optical signal, the photosensitive module 102 can receive a second optical signal and determine a first photosensitive parameter based on the second optical signal. For example, the photosensitive module 102 may include a photoresistor and a voltage divider resistor. Therefore, the first photosensitive parameter can be, for example, the output current of the photoresistor, the output voltage of the photoresistor, or the resistance value of the photoresistor.
[0059] It should be noted that the photoresistor included in the photosensitive module 102 can be used to detect the second light signal reflected by the object under test. This photoresistor can be made of any photosensitive material, such as cadmium sulfide, selenium, aluminum sulfide, lead sulfide, and bismuth sulfide. All of these photosensitive materials have the characteristic that their resistance decreases rapidly under illumination of light of a specific wavelength. Therefore, this application can detect the intensity of the second light signal using the first photosensitive parameter.
[0060] In addition, the voltage divider resistors included in the photosensitive module 102 can be used to divide the voltage of the photoresistor, thereby protecting the photoresistor.
[0061] In an exemplary embodiment, the photosensitive module 102 can send the first photosensitive parameters to the main control chip 103. The main control chip 103 may include pre-configured preset initial photosensitive parameters and first preset adjustment conditions.
[0062] For example, the preset initial photosensitivity parameter can be the photosensitivity parameter corresponding to the second light signal reflected when the object under test is a normal object (i.e., a non-high reflectivity object). When the difference between the first photosensitivity parameter and the preset initial photosensitivity parameter is greater than the first preset parameter threshold, the object under test can be considered to be a high reflectivity object, and the first photosensitivity parameter and the preset initial photosensitivity parameter satisfy the first preset adjustment condition. Therefore, when the difference between the first photosensitivity parameter and the preset initial photosensitivity parameter is greater than the first preset parameter threshold, the main control chip 103 can determine the target control parameter based on the first photosensitivity parameter.
[0063] In an exemplary embodiment, the first preset parameter threshold can be set empirically. Taking the first photosensitive parameter as the resistance value of a photoresistor as an example, the first preset parameter threshold can be 1000Ω, 1000kΩ, etc. Alternatively, the first photosensitive parameter can also be the output current or output voltage of the photoresistor. This embodiment does not limit the magnitude of the first preset parameter threshold.
[0064] For example, when the first photosensitive parameter is the resistance value of a photoresistor, the corresponding preset initial photosensitive parameter can also be a resistance value. Taking the initial control parameters as an output current of 3V, an output voltage of 2A, a signal period of 3 milliseconds, and a duty cycle of 10% as an example, the corresponding preset initial photosensitive parameter can be 1MΩ. If the object under test is a highly reflective object, the resistance value of the photoresistor corresponding to the first photosensitive parameter can be less than the preset initial photosensitive parameter.
[0065] In some embodiments, the main control chip 103 can be used to determine the target control parameter corresponding to the first photosensitive parameter through a preset correspondence, wherein the preset correspondence is used to indicate the correspondence between the target control parameter and the photosensitive parameter.
[0066] For example, the target control parameter can be used to indicate the operating power of the speckle projection module 101. It should be noted that the operating power corresponding to the target control parameter can be less than the operating power corresponding to the initial control parameter.
[0067] In some embodiments, the main control chip 103 includes at least one set of preset correspondences between preset control parameters and photosensitive parameter ranges, wherein the target control parameter belongs to any preset control parameter, any photosensitive parameter range corresponds to a type of high reflectivity object, and any type of high reflectivity object corresponds to a preset control parameter. In this case, the main control chip 103 is further configured to determine the photosensitive parameter range of the first photosensitive parameter; determine the type of high reflectivity object based on the photosensitive parameter range of the first photosensitive parameter; and determine the target control parameter based on the type of high reflectivity object.
[0068] It should be noted that since the intensity of the second light signal obtained by reflecting the first light signal from any type of highly reflective object is different, the photosensitive module 102 can obtain different first photosensitive parameters. Therefore, this application can preset a photosensitive parameter range for each type of highly reflective object. Thus, by determining the photosensitive parameter range to which the first photosensitive parameter belongs, the type of highly reflective object corresponding to it can be determined. Subsequently, the target control parameter can be determined based on the type of the highly reflective object.
[0069] This disclosure does not limit the range of photosensitivity parameters for different types of highly reflective objects. For example, this disclosure can pre-set a photosensitivity parameter for each type of highly reflective object and set an error range for each photosensitivity parameter, thereby obtaining the range of each photosensitivity parameter.
[0070] For example, types of highly reflective objects include mirror types, metal tabletop types, and glossy tile types.
[0071] Taking the photoresistor resistance value as an example, in one possible implementation, the preset correspondence between each set of preset control parameters and the photoresistor parameter range in the main control chip 103 can be shown in Table 1 below.
[0072] Table 1
[0073]
[0074]
[0075] In one possible implementation, the first type of high-reflectivity object shown in Table 1 can be a mirror-type high-reflectivity object. The second type of high-reflectivity object can be a metal tabletop-type high-reflectivity object. The third type of high-reflectivity object can be a glossy ceramic tile-type high-reflectivity object.
[0076] In Table 1, the photoresistor resistance value corresponding to the first type of high reflectivity object is 300 ohms. If the value of the first photosensitive parameter is within the error range of 300 ohms, then the type of high reflectivity object can be determined as the first type. The reflection coefficient of this type of high reflectivity object ranges from 0.8 to 0.95. Additionally, the corresponding preset control parameters are: output voltage 3V, output current 0.5A, signal period 3 milliseconds, and 10% duty cycle.
[0077] In Table 1, the photoresistor resistance value corresponding to the second type of high reflectivity object is 1000Ω. If the value of the first photosensitive parameter is within the error range of 1000Ω, the type of high reflectivity object can be determined to be the second type. The reflection coefficient of this type of high reflectivity object ranges from 0.6 to 0.75. The corresponding preset control parameters are: output voltage 3V, output current 1A, signal period 3 milliseconds, and duty cycle 10%.
[0078] In Table 1, the photoresistor resistance value corresponding to the second type of high reflectivity object is 4000Ω. If the value of the first photosensitive parameter is within the error range of 4000Ω, the type of high reflectivity object can be determined to be the third type. The reflection coefficient of this type of high reflectivity object ranges from 0.55 to 0.65. The corresponding preset control parameters are: output voltage 3V, output current 1.5A, signal period 3 milliseconds, and 10% duty cycle.
[0079] In addition, Table 1 shows that the photoresistor resistance value for a normal object can be 1MΩ. If the value of the first photosensitive parameter is within the 1MΩ error range, the object under test can be determined to be a normal object. The reflectance coefficient of a normal object ranges from 0.1 to 0.55. The preset control parameters at this time are the initial control parameters, such as an output voltage of 3V, an output current of 2A, a signal period of 3 milliseconds, and a duty cycle of 10%.
[0080] As shown in Table 1, the output voltage, signal period, and duty cycle in each preset control parameter can all be kept the same. Power control of the speckle projection module 101 can be achieved simply by changing the output current. In other embodiments, the power of the speckle projection module 101 can also be controlled by changing only the output voltage, only the duty cycle, or two or three of the output voltage, output current, and duty cycle simultaneously. Furthermore, while adjusting at least one of the output voltage, output current, and duty cycle, the signal period can also be adaptively adjusted.
[0081] For example, after determining the target control parameters based on the first photosensitivity parameter, the speckle projection module 101 can emit a third light signal through the target control parameters. The camera module 104 then uses the third light signal to acquire an image of the object under test, thus obtaining an acquired image. Therefore, it is possible to avoid the decrease in contrast of the speckles on the surface of the object under test due to overexposure of the acquired image, and the loss of speckle texture details, thereby improving the accuracy and reliability of the acquired depth information.
[0082] In some embodiments, the main control chip 103 can also be used to send an image acquisition command to the camera module 104 after the speckle projection module 101 emits the third light signal. In this case, the camera module 104 can be used to acquire an image of the object under test by means of the third light signal after receiving the image acquisition command, thereby obtaining an acquired image.
[0083] For example, after the speckle projection module 101 emits the third light signal through the target control parameters, it can send an instruction to the main control chip 103 to instruct the main control chip 103 to send an image acquisition command to the camera module 104. By having the camera module 104 receive the image acquisition command before performing image acquisition, it ensures that the acquired image is obtained through the third light signal. This avoids the camera module 104 acquiring an image of the object under test before the speckle projection module 101 emits the third light signal through the target control parameters, further improving the reliability of the acquired image and thus enhancing the accuracy and reliability of the acquired depth information.
[0084] In some embodiments, the main control chip 103 can also be used to send an image acquisition command to the camera module 104 when the first photosensitive parameter does not meet the first preset adjustment condition with respect to the preset initial photosensitive parameter. The camera module 104 can then, upon receiving the image acquisition command, acquire an image of the object under test using the first light signal to obtain the acquired image.
[0085] For example, when the first photosensitivity parameter and the preset initial photosensitivity parameter do not meet the first preset adjustment condition, the object under test is a normal object. In this case, the initial control parameters do not need to be adjusted, and the camera module 104 can directly acquire the image of the object under test based on the first light signal to obtain the acquired image.
[0086] In some embodiments, the photosensitive module 102 can also be used to receive a fourth light signal obtained by the object under test reflecting the third light signal; determine a second photosensitive parameter based on the fourth light signal; and send the second photosensitive parameter to the main control chip 103. The main control chip 103 can be used to send an image acquisition command to the camera module 104 when the second photosensitive parameter does not meet the second preset adjustment condition compared with the preset initial photosensitive parameter.
[0087] In an exemplary embodiment, after adjusting the initial control parameters to the target control parameters, the main control chip 103 can continue to adjust the target control parameters. For example, when the second photosensitive parameter and the preset initial photosensitive parameter do not meet the second preset adjustment condition, it proves that the intensity of the third light signal can prevent the acquired image from being too bright or overexposed. Therefore, an image acquisition command can be sent to the camera module 104. However, if the target control parameters and the preset initial photosensitive parameter meet the second preset adjustment condition, it proves that the intensity of the third light signal still cannot prevent the acquired image from being too bright or overexposed. Therefore, the target control parameters can continue to be adjusted to obtain a third light signal that meets the requirements.
[0088] It should be noted that the second preset adjustment condition here may be the same as or different from the first preset adjustment condition, and this embodiment does not limit this. For example, the second preset adjustment condition may be that the difference between the first photosensitizing parameter and the preset initial photosensitizing parameter is greater than the second preset parameter threshold. The second preset parameter threshold may be less than the first preset parameter threshold, so that the target control parameter at this time can be fine-tuned through the second preset adjustment condition.
[0089] This embodiment of the present disclosure determines whether the second photosensitive parameter and the preset initial photosensitive parameter meet the second preset adjustment conditions, thereby further adjusting the power of the speckle projection module 101, further avoiding overexposure of the acquired image obtained by the camera module 104, and ensuring the accuracy and reliability of depth information acquisition.
[0090] This disclosure does not limit the method for obtaining depth information of an object under test from acquired images. Exemplarily, a structured light depth chip may also be included in the depth information acquisition system. After the camera module 104 acquires an image, it can send the acquired image to the structured light depth chip. The structured light depth chip can then obtain the depth information of the object under test based on the acquired image. Alternatively, the camera module 104 can send the acquired image to a terminal or server for depth information calculation.
[0091] In some embodiments, the first optical signal may be infrared light of the target wavelength. Exemplarily, the camera module 104 includes an infrared lens, a narrowband filter of the target wavelength, and a photosensitive chip.
[0092] In an exemplary embodiment, the target wavelength can be, for example, between 700 nanometers and 1000 nanometers. Infrared light at 940 nanometers exhibits minimal attenuation when propagating through air, and the human eye is not sensitive to 940-nanometer infrared light; therefore, 940-nanometer infrared light can be used in fields such as infrared lighting and night vision surveillance. Thus, the target wavelength can be set to 940 nanometers.
[0093] This disclosure does not limit the type of infrared lens, the narrowband filter for the target wavelength, or the photosensitive chip. Exemplarily, the infrared lens can be any lens, and the photosensitive chip can be a CMOS (Complementary Metal Oxide Semiconductor) chip. After the camera module 104 receives the second light signal reflected back from the first light signal, the photosensitive chip in the camera module 104 can automatically expose and form an image.
[0094] The system provided in this disclosure can adjust the control parameters of the light signal emitted by the speckle projection module 101 by setting the photosensitive module 102, so that it outputs a third light signal of appropriate intensity. Therefore, this application embodiment can effectively avoid overexposure of the acquired image obtained by the camera module 104, thereby improving the accuracy and reliability of depth information acquisition.
[0095] For example, a schematic diagram of the structure of a photosensitive module provided in this disclosure embodiment can be as follows: Figure 2 As shown.
[0096] exist Figure 2 In this circuit, the photosensitive module includes a photoresistor and a voltage divider resistor. The voltage divider resistor is a highly stable resistor, with a resistance value of, for example, 2KΩ. VCC represents the circuit's supply voltage. GND (GrouND) is the ground terminal.
[0097] For example, according to Figure 2The current I of the second optical signal in the photosensitive module structure shown can be calculated by the following formula (1).
[0098] I = (VCC - Vout) / Rss (Formula 1)
[0099] Where Vout is the output voltage of the photosensitive module, and Rss is the resistance value of the voltage divider resistor.
[0100] For example, as can be seen from formula (1), the smaller the value of Vout, the stronger the light of the second light signal. If the light of the second light signal is too strong, it will cause the image captured by the camera module to be too bright and overexposed. Therefore, it is necessary to adjust the power of the speckle projection module to ensure the effect of the image captured by the camera module and to ensure the accuracy and reliability of the depth information acquisition.
[0101] Figure 3 A schematic diagram of a photoresistor included in a photosensitive module is shown.
[0102] like Figure 3 As shown, with the vertical direction in front of the photoresistor as the center, the light signal receiving angle range of the photoresistor can be ±35°. The working range of this photoresistor is 15 meters, that is, the maximum distance between the photoresistor and the object to be measured is 15 meters.
[0103] In addition, this photoresistor includes three pins: VCC, GND, and OUT (data output). VCC corresponds to the positive power supply, GND to the negative power supply, and OUT outputs data, which can be the first photosensitive parameter. Taking the photoresistor resistance value as the first photosensitive parameter as an example, the resistance value is inversely proportional to the intensity of the second light signal received by the photosensitive element in the photoresistor. When the intensity of the second light signal received by the photosensitive element increases, the resistance value decreases; conversely, when the intensity of the second light signal received by the photosensitive element decreases, the resistance value increases.
[0104] Therefore, by detecting and measuring the change in the resistance of the photoresistor through an external circuit, the light signal emitted by the speckle projection module can be monitored and controlled.
[0105] For example, Figure 4 A schematic diagram of a depth information acquisition process provided in an embodiment of this disclosure is shown.
[0106] exist Figure 4In this design, the speckle projection module, the photosensitive module, and the camera module can be respectively fixed on the main board of the bracket. The photosensitive module can be located between the speckle projection module and the camera module to ensure that the photosensitive module can receive the first light signal emitted by the speckle projection module, thereby ensuring that the intensity of the first light signal can be adjusted.
[0107] This disclosure does not limit the method of fixing the speckle projection module, photosensitive module, and camera module to the bracket motherboard, for example, by dispensing glue or screw fastening.
[0108] Additionally, the main control chip can be included within the bracket motherboard, allowing it to interact with the speckle projection module, photosensitive module, and camera module respectively. Furthermore, the bracket motherboard may also contain a structured light depth chip.
[0109] The speckle projection module can emit a first light signal based on initial control parameters. After reaching the object under test, the object reflects the first light signal to obtain a second light signal. The photosensitive module then receives this second light signal and determines a first photosensitive parameter based on it. The photosensitive module can then send this first photosensitive parameter to the main control chip.
[0110] Then, when the first photosensitive parameter and the preset initial photosensitive parameter meet the first preset adjustment condition, the main control chip determines the target control parameter based on the first photosensitive parameter. Afterward, the speckle projection module can emit a third light signal through this target control parameter.
[0111] Finally, the camera module can acquire an image of the object under test using a third light signal. The depth information of the object under test is then obtained from this acquired image using a structured light depth chip in the mainboard of the support.
[0112] The following detailed description of this exemplary implementation method is provided in conjunction with the accompanying drawings and embodiments.
[0113] In addition, this disclosure provides a depth information acquisition method, which can be executed by the main control chip.
[0114] Figure 5 This diagram illustrates a flowchart of a depth information acquisition method according to an embodiment of the present disclosure, as follows: Figure 5 As shown, the depth information acquisition method provided in this embodiment includes the following steps S502 to S504.
[0115] S502, receiving the first photosensitive parameter sent by the photosensitive module, wherein the photosensitive module is used to receive the second light signal obtained by the reflection of the first light signal by the object under test, and to determine the first photosensitive parameter according to the second light signal, wherein the first light signal is emitted by the speckle projection module through initial control parameters.
[0116] S504, when the first photosensitive parameter and the preset initial photosensitive parameter meet the first preset adjustment condition, the target control parameter is determined according to the first photosensitive parameter; the target control parameter is used to instruct the speckle projection module to emit a third light signal through the target control parameter, so that the camera module can acquire an image of the object under test through the third light signal to obtain an acquired image, so as to obtain the depth information of the object under test based on the acquired image.
[0117] It should be noted that the implementation methods of each step in the depth information acquisition method provided in this disclosure can be found in the relevant descriptions in the depth information acquisition system, and will not be repeated here.
[0118] The method provided in this disclosure allows for the adjustment of control parameters of the light signal emitted by the speckle projection module by setting a photosensitive module, thereby enabling it to output a third light signal of appropriate intensity. Therefore, this embodiment effectively avoids overexposure and over-brightness in the acquired images obtained by the camera module, thus improving the accuracy and reliability of depth information acquisition.
[0119] For example, this disclosure provides a depth information acquisition method, such as... Figure 6 As shown. The depth information acquisition method includes the following steps S602 to S610.
[0120] S602, the photosensitive module receives the second light signal obtained by reflecting the first light signal from the object under test.
[0121] S604, the photosensitive module determines the first photosensitive parameter based on the second optical signal and sends the first photosensitive parameter to the main control chip.
[0122] S606, when the first photosensitive parameter and the preset initial photosensitive parameter meet the first preset adjustment condition, the main control chip determines the target control parameter based on the first photosensitive parameter.
[0123] S608, when the modulated speckle projection module emits a third light signal through the target control parameters, the camera module acquires an image of the object under test through the third light signal.
[0124] S610: Obtain the depth information of the object under test based on the acquired image, and output the depth information.
[0125] It should be noted that, Figure 6The implementation methods for each step can be found in the relevant descriptions in the depth information acquisition system, and will not be repeated here.
[0126] Based on the same inventive concept, this disclosure also provides a depth information acquisition device, as described in the following embodiments. Since the principle by which this device embodiment solves the problem is similar to that of the above-described method embodiments, the implementation of this device embodiment can refer to the implementation of the above-described method embodiments, and repeated details will not be elaborated further.
[0127] For example, if the camera module is an infrared camera, then the acquired image is an infrared camera image. Figure 7 An infrared camera image and a corresponding depth map are shown, obtained by an infrared camera acquiring an image of the object under test based on a first light signal.
[0128] It can be seen that, Figure 7 The infrared camera image shown, without adjusting the power of the speckle projection module, exhibits overexposure in its central region, resulting in a loss of detail in the speckle texture. For example... Figure 7 As shown, the accuracy and reliability of the depth information collected from the depth map corresponding to the infrared camera image are reduced.
[0129] Taking an infrared camera module as an example again, Figure 8 An infrared camera image and corresponding depth map are shown, obtained by an infrared camera acquiring an image of the object under test based on a third light signal.
[0130] It can be seen that by adjusting the power of the speckle projection module, the problem of overexposure and excessive brightness in the central area of the infrared camera image, as well as the loss of speckle texture details, can be effectively avoided. For example... Figure 8 As shown, the infrared camera image restored the texture details and contrast of the central area, and the quality of depth information acquisition was also greatly improved.
[0131] Figure 9 This diagram illustrates a depth information acquisition device according to an embodiment of the present disclosure, such as... Figure 9 As shown, this device is applied to the main control chip and includes:
[0132] The first photosensitive parameter receiving module 901 is used to receive the first photosensitive parameter sent by the photosensitive module. The photosensitive module is used to receive the second light signal obtained by the object under test reflecting the first light signal, and to determine the first photosensitive parameter based on the second light signal. The first light signal is emitted by the speckle projection module through initial control parameters.
[0133] The target control parameter determination module 902 is used to determine the target control parameter according to the first photosensitive parameter when the first photosensitive parameter and the preset initial photosensitive parameter meet the first preset adjustment condition; the target control parameter is used to instruct the speckle projection module to emit a third light signal through the target control parameter, so that the camera module can acquire an image of the object under test through the third light signal to obtain an acquired image, so as to obtain the depth information of the object under test based on the acquired image.
[0134] The apparatus provided in this disclosure can adjust the control parameters of the light signal emitted by the speckle projection module by setting a photosensitive module, so as to make it output a third light signal with appropriate intensity. Therefore, the embodiments of this application can effectively avoid overexposure of the acquired image obtained by the camera module, thereby improving the accuracy and reliability of depth information acquisition.
[0135] Those skilled in the art will understand that various aspects of this disclosure can be implemented as a system, method, or program product. Therefore, various aspects of this disclosure can be specifically implemented in the following forms: a completely hardware implementation, a completely software implementation (including firmware, microcode, etc.), or a combination of hardware and software aspects, collectively referred to herein as a "circuit," "module," or "system."
[0136] The following reference Figure 10 To describe an electronic device 1000 according to such an embodiment of the present disclosure. Figure 10 The electronic device 1000 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments disclosed herein.
[0137] like Figure 10 As shown, the electronic device 1000 is manifested in the form of a general-purpose computing device. The components of the electronic device 1000 may include, but are not limited to: at least one processing unit 1010, at least one storage unit 1020, and a bus 1030 connecting different system components (including storage unit 1020 and processing unit 1010).
[0138] The storage unit stores program code that can be executed by the processing unit 1010, causing the processing unit 1010 to perform the steps described in the "Detailed Description" section of this specification according to various exemplary embodiments of this disclosure.
[0139] Storage unit 1020 may include readable media in the form of volatile storage units, such as random access memory (RAM) 10201 and / or cache memory 10202, and may further include read-only memory (ROM) 10203.
[0140] Storage unit 1020 may also include a program / utility 10204 having a set (at least one) program module 10205, such program module 10205 including but not limited to: operating system, one or more application programs, other program modules and program data, each or some combination of these examples may include an implementation of a network environment.
[0141] Bus 1030 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the multiple bus structures.
[0142] Electronic device 1000 can also communicate with one or more external devices 1040 (e.g., keyboard, pointing device, Bluetooth device, etc.), one or more devices that enable a user to interact with electronic device 1000, and / or any device that enables electronic device 1000 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via input / output (I / O) interface 1050. Furthermore, electronic device 1000 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 1060. As shown, network adapter 1060 communicates with other modules of electronic device 1000 via bus 1030. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 1000, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0143] From the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, terminal device, or network device, etc.) to execute the methods according to the embodiments of this disclosure.
[0144] In exemplary embodiments of this disclosure, a computer-readable storage medium is also provided, which may be a readable signal medium or a readable storage medium. A program product capable of implementing the methods described above is stored thereon. In some possible implementations, various aspects of this disclosure may also be implemented as a program product including program code, which, when run on a terminal device, causes the terminal device to perform the steps of the various exemplary embodiments of this disclosure described in the "Detailed Description" section of this specification.
[0145] More specific examples of computer-readable storage media in this disclosure may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0146] In this disclosure, a computer-readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium, capable of transmitting, propagating, or transmitting a program for use by or in connection with an instruction execution system, apparatus, or device.
[0147] Optionally, the program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.
[0148] In practical implementation, program code for performing the operations of this disclosure can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java and C++, and conventional procedural programming languages such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0149] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to embodiments of this disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0150] Furthermore, although the steps of the method in this disclosure are described in a specific order in the accompanying drawings, this does not require or imply that the steps must be performed in that specific order, or that all the steps shown must be performed to achieve the desired result. Additional or alternative steps may be omitted, multiple steps may be combined into one step, and / or a step may be broken down into multiple steps.
[0151] From the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, mobile terminal, or network device, etc.) to execute the methods according to the embodiments of this disclosure.
[0152] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the appended claims.
Claims
1. A depth information acquisition system, characterized in that, The system includes: a speckle projection module, a photosensitive module, a main control chip, and a camera module; The speckle projection module is used to emit a first optical signal through initial control parameters; The photosensitive module is used to receive a second light signal obtained by reflecting the first light signal onto the object under test; determine a first photosensitive parameter based on the second light signal; and send the first photosensitive parameter to the main control chip. The photosensitive module includes a photoresistor, and the first photosensitive parameter is any one of the output current, output voltage, and resistance value of the photoresistor. The main control chip is used to determine a target control parameter based on the first photosensitive parameter when the first photosensitive parameter and the preset initial photosensitive parameter meet the first preset adjustment condition. The photosensitive parameter range of the first photosensitive parameter corresponds to a type of high reflectivity object, and any type of high reflectivity object corresponds to a preset control parameter. The target control parameter belongs to any preset control parameter. The speckle projection module is also used to emit a third optical signal through the target control parameters; The camera module is used to acquire an image of the object under test through the third light signal, and to obtain the acquired image, so as to obtain the depth information of the object under test based on the acquired image; The photosensitive module is further configured to receive a fourth light signal obtained by reflecting the third light signal onto the object under test; determine a second photosensitive parameter based on the fourth light signal; and send the second photosensitive parameter to the main control chip. The main control chip is further configured to send an image acquisition command to the camera module when the second photosensitive parameter and the preset initial photosensitive parameter do not meet the second preset adjustment condition. Wherein, the first preset adjustment condition is that the difference between the first photosensitive parameter and the preset initial photosensitive parameter is greater than the first preset parameter threshold; the second preset adjustment condition is that the difference between the second photosensitive parameter and the preset initial photosensitive parameter is greater than the second preset parameter threshold, and the second preset parameter threshold is less than the first preset parameter threshold.
2. The depth information acquisition system according to claim 1, characterized in that, The main control chip is used to determine the target control parameter corresponding to the first photosensitive parameter through a preset correspondence relationship, wherein the preset correspondence relationship is used to indicate the correspondence between the target control parameter and the photosensitive parameter.
3. The depth information acquisition system according to claim 2, characterized in that, The main control chip includes at least one set of preset correspondences between preset control parameters and photosensitive parameter ranges, wherein the target control parameter belongs to any preset control parameter, any photosensitive parameter range corresponds to a type of high reflectivity object, and any type of high reflectivity object corresponds to a preset control parameter. The main control chip is also used to determine the photosensitive parameter range of the first photosensitive parameter; determine the type of high reflectivity object based on the photosensitive parameter range of the first photosensitive parameter; and determine the target control parameter based on the type of the high reflectivity object.
4. The depth information acquisition system according to any one of claims 1 to 3, characterized in that, The main control chip is also used to send an image acquisition command to the camera module after the speckle projection module emits the third light signal; The camera module is used to acquire an image of the object under test by means of the third light signal after receiving the image acquisition command, thereby obtaining the acquired image.
5. The depth information acquisition system according to any one of claims 1 to 3, characterized in that, The main control chip is also used to send an image acquisition command to the camera module when the first photosensitive parameter and the preset initial photosensitive parameter do not meet the first preset adjustment condition; The camera module is used to acquire an image of the object under test by means of the first light signal after receiving the image acquisition command, thereby obtaining the acquired image.
6. The depth information acquisition system according to any one of claims 1 to 3, characterized in that, The first optical signal is infrared light of the target wavelength; The camera module includes an infrared lens, a narrowband filter for the target wavelength, and a photosensitive chip.
7. A depth information acquisition method, characterized in that, The method is executed by the main control chip and includes: The first photosensitive parameter is received from the photosensitive module, wherein the photosensitive module is used to receive the second light signal obtained by the reflection of the first light signal by the object under test, and to determine the first photosensitive parameter according to the second light signal, wherein the first light signal is emitted by the speckle projection module through initial control parameters, the photosensitive module includes a photoresistor, and the first photosensitive parameter is any one of the output current, output voltage, and resistance value of the photoresistor; When the first photosensitive parameter and the preset initial photosensitive parameter meet the first preset adjustment condition, a target control parameter is determined based on the first photosensitive parameter. The photosensitive parameter range of the first photosensitive parameter corresponds to one type of high-reflectivity object, and any type of high-reflectivity object corresponds to a preset control parameter. The target control parameter belongs to any preset control parameter. The target control parameter is used to instruct the speckle projection module to emit a third light signal through the target control parameter, so that the camera module can acquire an image of the object under test through the third light signal to obtain an acquired image, and obtain the depth information of the object under test based on the acquired image. The photosensitive module receives a second photosensitive parameter sent by the photosensitive module, wherein the photosensitive module is further configured to receive a fourth light signal obtained by reflecting the third light signal by the object under test, and determine the second photosensitive parameter based on the fourth light signal; When the second photosensitive parameter and the preset initial photosensitive parameter do not meet the second preset adjustment condition, an image acquisition command is sent to the camera module. Wherein, the first preset adjustment condition is that the difference between the first photosensitive parameter and the preset initial photosensitive parameter is greater than the first preset parameter threshold; the second preset adjustment condition is that the difference between the second photosensitive parameter and the preset initial photosensitive parameter is greater than the second preset parameter threshold, and the second preset parameter threshold is less than the first preset parameter threshold.
8. An electronic device, characterized in that, include: processor; as well as Memory for storing the executable instructions of the processor; The processor is configured to execute the depth information acquisition method of claim 7 by executing the executable instructions.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the depth information acquisition method of claim 7.
Citation Information
Patent Citations
Depth recovery adjustment method and electronic equipment
CN105338255A
Dynamic adjustment of light source power in structured light active depth sensing system
CN109612404A
