Method, device and equipment for calibrating speckle emission module
By controlling the emitter to emit light through the secondary luminous area to obtain the speckle image, and adjusting parameters according to the image, the problem of difficulty in calibrating the wide-angle speckle emission module is solved, and effective calibration of the speckle emission module is achieved.
Patent Information
- Application Number
- CN202410713903.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-10-08
AI Technical Summary
When calibrating a wide-angle speckle emitting module, the existing technology cannot accurately determine the full speckle pattern while only displaying partial speckles, resulting in inability to effectively calibrate.
By controlling the emitter to emit light through the emission hole of the secondary light-emitting area, the first speckle image processed by the optical element is obtained, and parameters are adjusted according to the speckles displayed in the image to achieve calibration of the speckle emission module.
The calibration of the speckle emission module is achieved when the global speckle cannot be presented, ensuring the accuracy and effectiveness of the calibration.
Smart Images

Figure CN118748711A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to light processing technology, and relate to but are not limited to a calibration method, device and equipment for a speckle emission module. Background Art
[0002] In smart products such as sweeping robots, depth cameras are usually installed to capture images. During the production process of the depth camera, the speckle emission module usually needs to be calibrated so that the depth camera can capture accurate images after leaving the factory.
[0003] In the related art, the calibration method adopted is to perform corresponding calibration directly based on the global speckle image of the emitted light. However, for different speckle emission modules, for example, a wide-angle speckle emission module, the acquired speckle image may not be able to present the global speckle. In addition, when only local speckles are displayed, the speckles are relatively dense and the overall picture of the speckles cannot be determined, which makes it impossible to calibrate the speckle emission module. Summary of the invention
[0004] In view of this, the calibration method, device and equipment of the speckle emission module provided in the embodiments of the present application can realize the calibration of the speckle emission module when the speckle image cannot present the global speckle. The calibration method, device and equipment of the speckle emission module provided in the embodiments of the present application are realized as follows:
[0005] In one aspect of an embodiment of the present application, a calibration method for a speckle emission module is provided, which is applied to the speckle emission module. The speckle emission module includes: an emitter and an optical element. The emitter includes: a main light-emitting area and a secondary light-emitting area. The number of emission holes in the secondary light-emitting area is less than the number of emission holes in the main light-emitting area. The method includes:
[0006] Controlling the emitter to emit light through the emission holes of the secondary light-emitting area, wherein the secondary light-emitting area includes at least two emission holes;
[0007] Acquire a first speckle image projected after being processed by an optical element;
[0008] The adjustable parameters of the speckle emission module are adjusted according to the first speckle image to calibrate the speckle emission module, and the adjustable parameters include: a relative distance between the emitter and the optical element in a target direction, a position of the emitter in a vertical section in the target direction, and a relative angle between the emitter and the optical element, and the target direction is the direction of a preset central axis.
[0009] In another aspect of the embodiment of the present application, a calibration device for a speckle emission module is provided, which is applied to the speckle emission module. The speckle emission module includes:
[0010] An emitter and an optical element, wherein the emitter comprises: a main light-emitting area and a secondary light-emitting area, the number of emission holes in the secondary light-emitting area is smaller than the number of emission holes in the main light-emitting area, and the device comprises: an emission module, an acquisition module and an adjustment module;
[0011] An emission module, used to control the emitter to emit light through the emission holes of the secondary light-emitting area, wherein the secondary light-emitting area includes at least two emission holes;
[0012] An acquisition module, used for acquiring a first speckle image projected after being processed by an optical element;
[0013] The adjustment module is used to adjust the adjustable parameters of the speckle emission module according to the first speckle image to calibrate the speckle emission module, wherein the adjustable parameters include: the relative distance between the emitter and the optical element in the target direction, the position of the emitter in the vertical section in the target direction, and the relative angle between the emitter and the optical element, wherein the target direction is the direction of a preset central axis.
[0014] The computer device provided in the embodiment of the present application includes a memory and a processor. The memory stores a computer program that can be run on the processor. When the processor executes the program, the method of the embodiment of the present application is implemented.
[0015] The computer-readable storage medium provided in the embodiment of the present application has a computer program stored thereon, and when the computer program is executed by a processor, the method provided in the embodiment of the present application is implemented.
[0016] In the calibration method, device and apparatus of the speckle emission module provided in the embodiments of the present application, the emitter can be controlled to emit light through the emission hole of the secondary light-emitting area, thereby obtaining a first speckle image obtained by projection after processing by the optical element, and the adjustable parameters of the speckle emission module can be adjusted according to the first speckle image to calibrate the speckle emission module. Among them, the way of emitting light through the emission hole of the secondary light-emitting area can obtain a first speckle image in which only part of the speckle is displayed, and then the speckle full picture is estimated according to the speckle displayed in the first speckle image, thereby adjusting the adjustable parameters of the speckle emission module, that is, the calibration of the speckle emission module can be completed. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 This is a schematic diagram of the structure of the speckle emission module provided in an embodiment of the present application;
[0019] Figure 2 A schematic diagram of an ideal speckle image provided in an embodiment of the present application;
[0020] Figure 3 A schematic diagram of an ideal speckle image after the adjustable parameters provided in an embodiment of the present application are changed;
[0021] Figure 4 A schematic diagram of a wide-angle ideal speckle image provided in an embodiment of the present application;
[0022] Figure 5 A schematic diagram of a flow chart of a calibration method for a speckle emission module provided in an embodiment of the present application;
[0023] Figure 6 Another schematic diagram of the process of calibrating the speckle emission module provided in an embodiment of the present application;
[0024] Figure 7 A schematic diagram of a first speckle image provided in an embodiment of the present application;
[0025] Figure 8 is another schematic diagram of the first speckle image provided in an embodiment of the present application;
[0026] Fig. 9 A schematic diagram of the structure of the transmitting hole of the transmitter provided in an embodiment of the present application;
[0027] Fig.10 Another schematic diagram of the process of calibrating the speckle emission module provided in an embodiment of the present application;
[0028] Fig.11 Another schematic diagram of the process of calibrating the speckle emission module provided in an embodiment of the present application;
[0029] Fig.12 Another schematic diagram of the process of calibrating the speckle emission module provided in an embodiment of the present application;
[0030] Fig.13 Another schematic diagram of the process of calibrating the speckle emission module provided in an embodiment of the present application;
[0031] Fig.14 is a schematic diagram of a second speckle image provided in an embodiment of the present application;
[0032] Fig.15 is another schematic diagram of a second speckle image provided in an embodiment of the present application;
[0033] Fig.16 is another schematic diagram of a second speckle image provided in an embodiment of the present application;
[0034] Fig.17 A schematic diagram of a speckle image provided in an embodiment of the present application when some emission holes are not adjacent to each other;
[0035] Fig.18 Another schematic diagram of a speckle image provided in an embodiment of the present application when some of the emission holes are not adjacent;
[0036] Fig.19 Another schematic diagram of a speckle image provided in an embodiment of the present application when some of the emission holes are not adjacent;
[0037] Fig. 20 Another schematic diagram of a speckle image provided in an embodiment of the present application when some of the emission holes are not adjacent;
[0038] Fig.21 A schematic diagram of the structure of a calibration device for a speckle emission module provided in an embodiment of the present application;
[0039] Fig. 22 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not used to limit the scope of the present application.
[0041] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0042] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0043] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0044] In order to more clearly explain the speckle emission module provided in the embodiment of the present application, the structure of the speckle emission module is specifically explained below.
[0045] Figure 1 This is a schematic diagram of the structure of the speckle emission module provided in the embodiment of the present application, please refer to Figure 1 The speckle emission module may include: a transmitter 110 and an optical element 120.
[0046] Among them, the emitter 110 is used to emit light. A plurality of emission holes may be provided on the emitter 110. The light emitted through the emission holes can hit a camera or other device for presenting light projection results after passing through the optical element 120, thereby obtaining a corresponding speckle image.
[0047] Optionally, the emitter 110 may be, for example, a VCSEL (Vertical Cavity Surface Emitting Laser).
[0048] The optical element 120 may include a plurality of different lenses, for example, a collimator and a diffraction optical lens, or a collimator and a super lens. No specific limitation is made here, and any suitable one or more optical elements may be used as long as the light refraction function is realized.
[0049] Optionally, a light receiving device, such as a camera, may be provided on one side of the speckle emission module to obtain a corresponding speckle image by shooting light.
[0050] in, Figure 1 The left sub-image shows the structure of the speckle emission module under vertical viewing angle. Figure 1 The right sub-image is the structure of the speckle emission module from a three-dimensional perspective.
[0051] It should be noted that the calibration method of the speckle emission module provided in the embodiment of the present application is achieved by adjusting the adjustable parameters of the speckle emission module.
[0052] Among them, the relative distance between the emitter and the optical element in the target direction, the position of the emitter in the vertical section of the target direction, the relative angle between the emitter and the optical element, and the target direction is the direction of the preset central axis.
[0053] Please refer to Figure 1 , Figure 1 In the left sub-figure, the Z axis is the preset central axis, where the relative distance between the emitter and the optical element in the target direction is the distance on the Z axis, that is, Figure 1 The distance z in the left sub-image.
[0054] Figure 1In the right sub-figure, the transmitter is in a vertical section with the Z axis. The section is a vertical plane perpendicular to the Z axis. The zero point of the plane is the position of the Z axis. The position of the transmitter in the vertical section in the target direction can be a two-dimensional coordinate, that is, Figure 1 (x, y) in the right subgraph.
[0055] Figure 1 In the left sub-figure, R is the relative angle between the emitter and the optical element, where Figure 1 In the left sub-figure, the optical element can be placed completely horizontally, and the transmitter can be placed non-horizontally, with a certain angle relative to the horizontal plane, and the size of the angle is R.
[0056] in, Figure 1 The z in it can represent the relative distance between the emitter and the optical element in the target direction; (x, y) can represent the position of the emitter in the vertical section in the target direction; R can represent the relative angle between the emitter and the optical element.
[0057] It should be noted that the speckle image may be an image with multiple speckles obtained by a camera or other imaging device by shooting and acquiring light. The solution provided in the embodiment of the present application is to calibrate the speckle emission module by determining the speckle image. When the speckle image is an ideal speckle image, it can be determined that the speckle emission module has been calibrated.
[0058] The following is an explanation of the distribution of speckles in the ideal speckle image provided in the embodiments of the present application.
[0059] Figure 2 This is a schematic diagram of an ideal speckle image provided in an embodiment of the present application. Please refer to Figure 2 , Figure 2 The speckle image shown is an ideal speckle image. For an ideal speckle image, all speckles are concentrated at the center of the speckle image and diverge toward four corners.
[0060] As Figure 2 The speckle distribution shown in Figure 2 Each white dot in the image is a speckle, and each speckle is the result displayed in a camera or other imaging device after light is emitted through the emission hole of the emitter.
[0061] In the process of calibrating the speckle emission module, it is necessary to make the speckle appear like this: Figure 2 After the results are shown, it can be determined that the speckle emission module is calibrated.
[0062] It should be noted that, for the above three adjustable parameters, any change in any of the parameters will cause the speckle image to change. The following explains the distribution of the ideal speckle image after the adjustable parameters change.
[0063] Figure 3 This is a schematic diagram of an ideal speckle image after the adjustable parameters are changed in the embodiment of the present application. Please refer to Figure 3 It should be noted that the relative distance z between the emitter and the optical element in the target direction affects the magnification of the speckle image. For example, if Figure 2 After the z value in the ideal speckle image shown is adjusted, the ideal speckle image can be enlarged or reduced. This parameter does not affect the change of the overall distribution of the speckle. Therefore, Figure 3 The main focus is on the changes in the ideal speckle image when the two parameters, the position of the emitter in the vertical section in the target direction and the relative angle between the emitter and the optical element, change.
[0064] in, Figure 3 The upper left sub-image in the middle shows the ideal speckle image after the position of the emitter in the vertical section in the target direction changes; Figure 3 The upper right sub-image in the middle shows the ideal speckle image after the relative angle between the emitter and the optical element changes; Figure 3 The lower left sub-image is the ideal speckle image after the position of the emitter in the vertical section in the target direction and the relative angle between the emitter and the optical element have changed within a small range; Figure 3 The lower right sub-image is the ideal speckle image after the position of the emitter in the vertical section in the target direction and the relative angle between the emitter and the optical element have changed over a large range.
[0065] It should be noted that in Figure 2 Based on the ideal speckle image shown in the figure, if only the position of the emitter in the vertical section in the target direction changes, the following can be obtained: Figure 3 The speckle distribution is shown in the upper left sub-figure. If only the relative angle between the emitter and the optical element changes, the following can be obtained: Figure 3 The speckle distribution is shown in the upper right sub-figure. If both of the above parameters change and the change value is small, the following can be obtained: Figure 3 The speckle distribution is shown in the lower left sub-figure. If both of the above parameters change and the change value is large, the following can be obtained: Figure 3 The speckle distribution is shown in the lower right sub-figure.
[0066] In the actual implementation process, it can be determined based on the actual speckle distribution. Figure 3One of the four sub-graphs is identified to determine whether one or two adjustable parameters corresponding to the situation need to be adjusted.
[0067] Optionally, Figure 2 as well as Figure 3 All of them are speckle distributions under normal circumstances. However, in actual application scenarios, such as scenes such as a sweeping robot, in order to meet the actual needs of the sweeping robot, the range of light emitted by the speckle emission module is usually set to be larger, that is, the so-called wide-angle speckle emission module. For the wide-angle speckle emission module, due to the large range of its light, the speckle may not be completely presented in the camera or other imaging devices. The distribution of each speckle in the ideal speckle image under the wide-angle condition provided in the embodiment of the present application is explained below.
[0068] Figure 4 This is a schematic diagram of a wide-angle ideal speckle image provided in an embodiment of the present application. Please refer to Figure 4 , Figure 4 The left sub-image is the speckle distribution of the theoretical wide-angle ideal speckle image. Figure 4 The right sub-image is the speckle distribution of the wide-angle ideal speckle image actually captured by the camera.
[0069] based on Figure 4 It can be seen from the left and right sub-images that the speckle distribution shown in the right sub-image is a part of the speckle distribution in the left sub-image, which may be a certain area therein. Since the camera can map a limited amount of light, only partial speckle exists.
[0070] In smart products such as sweeping robots and food delivery robots, depth cameras with depth sensors are usually installed. In the production process of the depth camera, the speckle emission module is usually required to be calibrated so that the depth camera can capture accurate images after leaving the factory.
[0071] In the related art, the calibration method used is to perform corresponding calibration directly based on the global speckle image of the emitted light. However, for different speckle emission modules, for example, a wide-angle speckle emission module, the acquired speckle image may not present the global speckle. In addition, when only local speckles are displayed, many speckles are displayed in an irregular and scattered manner in the actual display area, which may make it impossible to accurately determine the overall speckle picture. In this case, it may be impossible to calibrate the image based on the global speckle image. Figure 3 The four sub-images are used to determine which parameters need to be adjusted, which makes it impossible to calibrate the speckle emission module.
[0072] To solve the above problems existing in the related art, an embodiment of the present application provides a calibration method, device, and equipment for a speckle emission module. The following explains the specific implementation process of the calibration method for the speckle emission module.
[0073] Figure 5 The following is a schematic flowchart of the calibration method for the speckle emission module provided in the embodiment of the present application. Please refer to Figure 5 , the method includes:
[0074] S510: Control the emitter to emit light through the emission holes in the secondary light-emitting area.
[0075] Among them, the emitter includes a main light-emitting area and a secondary light-emitting area. The number of emission holes in the secondary light-emitting area is less than the number of emission holes in the main light-emitting area, and the emission holes in the secondary light-emitting area include at least two emission holes.
[0076] The execution subject of this method can be the above-mentioned speckle emission module, which can control the corresponding emission holes of the emitter to open, so that the emission holes in the secondary light-emitting area emit light. Among them, the number of emission holes in the secondary light-emitting area needs to be greater than or equal to two. Preferably, 2-3 emission holes can be set to emit light.
[0077] Among them, the number of emission holes in the main light-emitting area needs to be much greater than the number of emission holes in the secondary light-emitting area. For example, the number of emission holes in the secondary light-emitting area can be set to <a * the number of emission holes in the main light-emitting area (a is an empirical coefficient, such as 0.01).
[0078] Example: There are 400 emission holes in the main light-emitting area and 2 emission holes in the secondary light-emitting area.
[0079] It should be noted that in the actual control process, the speckle emission module can control the corresponding emission holes to open or close through the corresponding control circuit; or, all the emission holes can be set to be normally open. For the emission holes that need to emit light, the internal light-emitting circuit is made to work to emit light. Any of the above two methods can be used to achieve the emission of light.
[0080] S520: Obtain the first speckle image projected after being processed by the optical element.
[0081] Optionally, after the light is emitted from the emitter, it can be processed by the optical element. Among them, for different optical elements, the processing process can be different. For example: it can include various ways of projection such as refraction, and then the speckle image corresponding to these lights can be obtained by a camera or other imaging device. Among them, after only the emission holes in the secondary light-emitting area are made to emit light through the above method, the first speckle image can be obtained, and the camera or other imaging device can send the first speckle image to the speckle emission module.
[0082] It should be noted that the maximum number of speckles that can be displayed in the first speckle image can be determined according to the number of emission holes in the secondary light-emitting area. For example, if the number of emission holes is N and the number of light projections by the optical element is M, the maximum number of speckles that can be displayed in the first speckle image is N×M. Of course, in the actual display process, the number of displayed speckles may be less than the maximum number because some speckles exceed the image display range.
[0083] Each time the optical element projects the emission hole, a speckle of one order is generated, that is, there are M orders of speckles in the first speckle image. In the first speckle image, the speckles of different orders are not closely connected, that is, speckles of different orders will not overlap or be adjacent.
[0084] These speckles can be divided into different groups in the first speckle image, that is, there are M groups of speckles in the first speckle image.
[0085] S530: Adjust the adjustable parameters of the speckle emission module according to the first speckle image to calibrate the speckle emission module.
[0086] Among them, the adjustable parameters include: the relative distance between the emitter and the optical element in the target direction, the position of the emitter in the vertical section of the target direction, and the relative angle between the emitter and the optical element. The target direction is the direction of the preset central axis.
[0087] The detailed explanation of each parameter in the above adjustable parameters is in the above Figure 1 The corresponding explanation has been given in , so I will not repeat it here.
[0088] Optionally, after obtaining the first speckle image, relevant information such as the position of each speckle in the first speckle image may be determined, and then the adjustable parameters of the speckle emission module may be adjusted based on the information.
[0089] It should be noted that one or more parameters that need to be adjusted may be determined from a plurality of adjustable parameters, and then the parameters that need to be adjusted may be adjusted, thereby realizing the calibration process of the speckle emission module.
[0090] In the calibration method of the speckle emission module provided in the embodiment of the present application, the emitter can be controlled to emit light through the emission hole of the secondary light-emitting area, thereby obtaining a first speckle image obtained by projection after processing by the optical element, and the adjustable parameters of the speckle emission module can be adjusted according to the first speckle image to calibrate the speckle emission module. Among them, the way of emitting light through the emission hole of the secondary light-emitting area can obtain a first speckle image in which only part of the speckle is displayed, and then the speckle is estimated according to the speckle displayed in the first speckle image, so as to adjust the adjustable parameters of the speckle emission module, that is, the calibration of the speckle emission module can be completed.
[0091] The specific implementation process of calibrating the speckle emission module is explained below.
[0092] Figure 6 Another flow chart of the calibration method of the speckle emission module provided in the embodiment of the present application is shown in FIG. Figure 6 , adjusting adjustable parameters of the speckle emission module according to the first speckle image to calibrate the speckle emission module, including:
[0093] S610: Extracting image features from a first speckle image.
[0094] The image features are used to represent the distribution of each speckle in the speckle image.
[0095] It should be noted that the image feature refers to the distribution of each speckle in the speckle image, for example, the position of each speckle in the entire speckle image.
[0096] In one embodiment, the light emitted from the emission holes of the secondary light-emitting area is processed by an optical element and then projected multiple times. There is a gap between the projection results obtained by each projection. Each projection result includes multiple speckles, and the number of speckles in each projection result is equal to the number of emission holes in the secondary light-emitting area of the emitter.
[0097] That is to say, the first speckle image includes multiple groups of speckles, the number and relative positions of speckles in each group of speckles correspond to the number and relative positions of emission holes in the secondary light-emitting area, and there are gaps between the groups of speckles.
[0098] In the process of emitting light, the emitter will be processed and projected by the optical element, wherein the optical element will project the light into multiple groups, and the number of groups is the same as the number of the above-mentioned levels, that is, the number of speckles in each group is equal to the number of emitting holes, and the number of speckle groups is the number of times the optical element processes and projects, that is, the number of levels in the first speckle image.
[0099] For example, if the portion of the transmitting holes is 3 transmitting holes, the number of speckles in each group is 3.
[0100] It should be noted that, by providing gaps between each group of speckles, it is possible to prevent the overlap between different groups of speckles, thereby more accurately identifying image features.
[0101] In the case of multiple groups of speckles, the image features may specifically include the relative positions between different groups of speckles and the relative positions of the speckles in the same group of speckles, wherein the relative positions and the relative positions of the speckles in the same group of speckles may be used to estimate the global speckle image.
[0102] In one embodiment, each group of speckles in the first speckle image is distributed in a regular shape, and the regular shape includes: an L-shape or a straight shape.
[0103] It should be noted that each group of speckles can be distributed in a regular shape to facilitate the estimation of the global speckle image. For example, if each group of speckles has two or more, a straight shape can be used; if each group of speckles has three or more, an L shape can be used.
[0104] Correspondingly, for the emission holes of the emitter, the arrangement of the emission holes of the secondary light-emitting area that emits light can also be L-shaped or straight-shaped; the shapes of the two can be one-to-one corresponding, or can have a certain mapping deviation, and no specific restrictions are made here.
[0105] S620: Adjust the adjustable parameters according to the image features to calibrate the speckle emission module.
[0106] It should be noted that after obtaining the above-mentioned image features, the adjustable parameters can be adjusted. For example, the specific adjustable parameters that need to be adjusted can be determined based on the relative positions between different groups of speckles and the relative positions of the speckles in the same group of speckles, and then the corresponding adjustable parameters can be adjusted to achieve calibration of the speckle emission module.
[0107] For example, in the actual process of calibrating the speckle emission module, the image features of the first speckle image can be determined first, that is, the position of each speckle in the image can be obtained, which can be represented by specific coordinates or the like, and then the adjustable parameters that need to be adjusted corresponding to the image features can be determined according to the coordinates of the speckles, which can be determined by a preset part of the reference image, or can be determined by inputting into a neural network model or the like, and no specific limitation is made here. After the adjustable parameters are obtained based on the image features, the adjustable parameters can be adjusted, thereby realizing the calibration of the speckle emission module.
[0108] In the calibration method of the speckle emission module provided in the embodiment of the present application, the image features in the first speckle image can be extracted; the adjustable parameters are adjusted according to the image features to calibrate the speckle emission module. The distribution of each speckle in the first speckle image can be more accurately and reasonably represented by the image features, and then the adjustable parameters that need to be adjusted can be determined based on the actual distribution, thereby completing the calibration of the speckle emission module.
[0109] The speckle distribution of the first speckle image provided in the embodiment of the present application under different circumstances is explained in detail below.
[0110] Figure 7 This is a schematic diagram of a first speckle image provided in an embodiment of the present application. Please refer to Figure 7 , Figure 7 The upper left sub-image shows the distribution of the first speckle image actually obtained when the corresponding global speckle image is an ideal speckle image. Figure 7 The upper right sub-image shows the distribution of the first speckle image actually obtained after the (x, y) of the upper left sub-image changes. Figure 7 The lower left sub-image shows the distribution of the first speckle image actually obtained after R of the upper left sub-image changes. Figure 7 The lower right sub-image shows the distribution of the first speckle image actually obtained after (x, y) and R of the upper left sub-image are changed.
[0111] Figure 8 This is another schematic diagram of the first speckle image provided in the embodiment of the present application. Please refer to Figure 8 , Figure 8 The upper left sub-image is Figure 7 The overall picture of the speckle corresponding to all the emitted light in the upper left sub-image, Figure 8 The upper right sub-image is Figure 7 The overall picture of the speckle corresponding to all the emitted light in the upper right sub-image, Figure 8 The lower left sub-image is Figure 7 The overall picture of the speckle corresponding to all the emitted light in the lower left sub-image, Figure 8 The lower right sub-image is Figure 7 The overall picture of the speckle corresponding to all the emitted light in the lower right sub-image.
[0112] In the actual implementation process, Figure 7 The distribution in the Figure 8 The distribution shown in Figure 8 The adjustable parameters that need to be adjusted are determined based on the distribution in order to calibrate the speckle emission module.
[0113] Fig. 9This is a schematic diagram of the structure of the transmitting hole of the transmitter provided in the embodiment of the present application, please refer to Fig. 9 It should be noted that Fig. 9 The left sub-figure in the middle is explained by taking two adjacent transmitting holes as an example. In the actual implementation process, there may be more transmitting holes, and no specific limitation is made here.
[0114] Fig. 9 The right sub-figure in the middle is explained by taking multiple groups of transmitting holes as an example. The arrangement of each group of transmitting holes is the same as that in the left sub-figure, except that multiple groups can be set. Fig. 9 In the right sub-figure of , setting two groups is taken as an example. In the actual implementation process, more groups can also be set, and no specific limitation is made here.
[0115] in, Fig. 9 The portion framed by the square box is the emission hole of the sub-luminescent area explained above.
[0116] The specific implementation process of determining image features provided in the embodiments of the present application is explained below.
[0117] Fig.10 Another flow chart of the calibration method of the speckle emission module provided in the embodiment of the present application is shown in FIG. Fig.10 , extracting image features from the first speckle image, including:
[0118] S1010: Determine and extract image features of the first speckle image according to position information of each speckle in the first speckle image.
[0119] Alternatively, S1020: determining and extracting image features of the first speckle image according to position information of each speckle in the first speckle image and position information of each speckle in the second speckle image.
[0120] Optionally, in the process of determining the image features, the image features may be determined directly based on the first speckle image, or may be determined in combination with the first speckle image and the second speckle image, wherein the second speckle image is a speckle image obtained by projecting light after light is emitted from all emission holes in the primary light-emitting area and the secondary light-emitting area of the emitter and processed by an optical element.
[0121] In the process of extracting image features directly based on the first speckle image, the image feature can be determined according to the position information of each speckle in the first speckle image, for example, the specific position coordinates of each speckle. The specific position of each speckle can be recorded in the image feature.
[0122] In the process of extracting image features by combining the first speckle image and the second speckle image, the image feature can be determined according to the specific position coordinates of each speckle in the first speckle image and the trend of speckle distribution determined according to the specific position coordinates of each speckle in the second speckle image. The specific position of each speckle and the predicted position of the speckle not shown in the speckle image can be recorded in the image feature.
[0123] It should be noted that, in actual implementation, the image features of the first speckle image may be determined based on any one of the above two methods, and no specific limitation is made herein.
[0124] Another specific implementation process of the speckle emission module calibration method provided in the embodiment of the present application is explained below.
[0125] Fig.11 Another flow chart of the calibration method of the speckle emission module provided in the embodiment of the present application is shown in FIG. Fig.11 , the adjustable parameters are adjusted according to the image characteristics to calibrate the speckle emission module, including:
[0126] S1110: Compare the image feature with reference image features in a plurality of pre-stored reference images to determine a target pre-stored reference image having the highest matching degree with the image feature.
[0127] Each pre-stored reference image corresponds to at least one parameter to be adjusted.
[0128] Optionally, feature comparison can be performed specifically, that is, comparing image features with reference image features in multiple pre-stored reference images to determine the feature matching degree, which can indicate the degree of matching between the two. The pre-stored reference image with the highest matching degree is used as the target pre-stored reference image.
[0129] Optionally, after the image feature is obtained, the image feature may be compared with the reference image feature, and at least one parameter to be adjusted may be determined according to the comparison result.
[0130] The reference image feature may be an image feature in any pre-stored reference image, and each pre-stored reference image may be an ideal speckle distribution image after at least one parameter to be adjusted is adjusted. Figure 7 or Figure 8 The global speckle distribution image corresponding to any sub-image in .
[0131] For example: If the corresponding pre-stored reference image is Figure 7 or Figure 8 The global speckle distribution image corresponding to the upper left sub-image in the middle can be determined to be accurate and does not need to be adjusted; if the corresponding pre-stored reference image is Figure 7 or Figure 8 The global speckle distribution image corresponding to the upper right sub-image in the middle can determine that the position of the transmitter in the vertical section in the target direction needs to be adjusted; if the corresponding pre-stored reference image is Figure 7 or Figure 8 The global speckle distribution image corresponding to the lower left sub-image in the figure can determine that the relative angle between the emitter and the optical element needs to be adjusted; if the corresponding pre-stored reference image is Figure 7 or Figure 8 From the global speckle distribution image corresponding to the lower right sub-image, it can be determined that the position of the emitter in the vertical section in the target direction and the relative angle between the emitter and the optical element need to be adjusted.
[0132] S1120: Taking at least one target parameter to be adjusted corresponding to the target pre-stored reference image as at least one parameter to be adjusted among the adjustable parameters.
[0133] Optionally, after the target pre-stored reference image is determined, at least one target parameter to be adjusted corresponding to the target pre-stored reference image may be used as at least one parameter to be adjusted among the adjustable parameters, thereby implementing subsequent calibration work on the speckle emission module.
[0134] S1130: Adjust at least one parameter to be adjusted to calibrate the speckle emission module.
[0135] Optionally, after at least one parameter to be adjusted is determined in the above manner, a corresponding adjustment may be performed to achieve calibration of the speckle emission module.
[0136] In the calibration method of the speckle emission module provided in the embodiment of the present application, the image feature can be compared with the reference image feature in a plurality of pre-stored reference images to determine the target pre-stored reference image with the highest matching degree with the image feature; at least one target parameter to be adjusted corresponding to the target pre-stored reference image is used as at least one parameter to be adjusted in the adjustable parameters, and the at least one parameter to be adjusted is adjusted to calibrate the speckle emission module. Among them, the target pre-stored reference image can be obtained more accurately, quickly and reasonably by the feature comparison method, thereby improving the efficiency and accuracy of determining the parameter to be adjusted, and further calibrating the speckle emission module more accurately.
[0137] Another specific implementation process of the calibration method of the speckle emission module provided in the embodiment of the present application is explained below.
[0138] Fig.12 Another flow chart of the calibration method of the speckle emission module provided in the embodiment of the present application is shown in FIG. Fig.12, the adjustable parameters are adjusted according to the image characteristics to calibrate the speckle emission module, including:
[0139] S1210: Determine the adjustment value of each adjustable parameter according to the feature difference between the image feature and the initial image feature of the pre-stored initial image, and the mapping relationship between the feature difference and the adjustment value of the adjustable parameter.
[0140] The pre-stored initial image is an ideal speckle distribution image.
[0141] Optionally, the pre-stored initial image may be the above Figure 4 The left sub-image in the middle is the global image of the ideal speckle distribution image under wide-angle conditions.
[0142] The feature difference between the image feature and the initial image feature of the pre-stored initial image, for example, the difference in the position coordinates of each speckle, can be determined by feature comparison, and the adjustment value of each adjustable parameter can be determined based on the mapping relationship between the preset feature difference and the adjustment value of the adjustable parameter.
[0143] It should be noted that the mapping relationship between the preset feature difference and the adjustment value of the adjustable parameter can be stored in the form of a mapping table, or can be obtained by inputting into a pre-trained neural network model and output, which is not specifically limited here.
[0144] The adjustment value of each adjustable parameter can be determined through a mapping table or a neural network model.
[0145] Among them, if it is a mapping table, the corresponding mapping situations under various positional relationships can be stored; if it is a neural network model, a converged neural network model can be obtained in advance through training with a large number of feature differences and adjustment values.
[0146] S1220: According to the adjustment value of each adjustable parameter, the corresponding adjustable parameter is adjusted to calibrate the speckle emission module.
[0147] Optionally, after determining the adjustment value of the adjustable parameter, the corresponding adjustable parameter may be adjusted, that is, the adjustable parameter may be increased, decreased or adjusted in other ways according to the adjustment value, so as to calibrate the speckle emission module.
[0148] In the calibration method of the speckle emission module provided in the embodiment of the present application, the adjustment value of each adjustable parameter can be determined according to the feature difference between the image feature and the initial image feature of the pre-stored initial image, and the mapping relationship between the feature difference and the adjustment value of the adjustable parameter; according to the adjustment value of each adjustable parameter, the corresponding adjustable parameter is adjusted to calibrate the speckle emission module. Among them, determining the adjustment value of the adjustable parameter through the preset mapping relationship can be more intuitive and fast, thereby improving the efficiency of calibrating the speckle emission module.
[0149] Another implementation process performed before acquiring the first speckle image provided in an embodiment of the present application is explained below.
[0150] Fig.13 Another flow chart of the calibration method of the speckle emission module provided in the embodiment of the present application is shown in FIG. Fig.13 Before controlling part of the emission holes of the emitter to emit light through the optical element, the method further comprises:
[0151] S1310: Control the emitter to emit light through the emission holes of the main light-emitting area and the emission holes of the secondary light-emitting area.
[0152] S1320: Acquire a second speckle image obtained by projecting the processed image through the optical element.
[0153] Optionally, when controlling the emission holes of the secondary light-emitting area of the emitter to emit light through the optical element, the emitter can be controlled to emit light through all the emission holes. After the light is emitted from the emitter, it can be processed by the optical element and then projected, and then the speckle image corresponding to the light can be acquired by a camera or other imaging device. After all the emission holes emit light in the above manner, a second speckle image can be obtained, and the camera or other imaging device can send the second speckle image to the speckle emission module.
[0154] Control the emitter to emit light through some of the emission holes, including:
[0155] S1330: When the second speckle image is a local speckle image, control the emitter to emit light through part of the emission holes.
[0156] The second speckle image includes a global speckle image or a local speckle image, and the number of speckles in the local speckle image is smaller than the number of speckles in the global speckle image.
[0157] It should be noted that after obtaining the second speckle image, it can be determined whether it is a global speckle image or a local speckle image, wherein the global speckle image means that all light rays are displayed on the speckle image, and the local speckle image means that only part of the light rays are displayed on the speckle image.
[0158] After identification by the speckle emission module, the corresponding identification result can be obtained. If it is a global speckle image, it means that there is no problem of wide angle, and the solution used in the relevant technology can be used for identification calibration; if it is a local speckle image, it means that there is a problem of wide angle, and the calibration method of the speckle emission module provided in the embodiment of the present application can be used for identification calibration.
[0159] That is to say, when the second speckle image is a local speckle image, the emitter is controlled to emit light through part of the emission holes.
[0160] The distribution of the second speckle image provided in the embodiment of the present application is explained below.
[0161] Fig.14 This is a schematic diagram of a second speckle image provided in an embodiment of the present application. Please refer to Fig.14 , Fig.14 Shown Figure 2 After the (x, y) of the wide-angle ideal speckle image in the right sub-image in the middle changes, the corresponding global speckle image and local speckle image are: Fig.14 The left sub-image is the global speckle image in this case, and the right sub-image is the local speckle image in this case.
[0162] Fig.15 This is another schematic diagram of the second speckle image provided in the embodiment of the present application. Please refer to Fig.15 , Fig.15 Shown Figure 2 After the R of the wide-angle ideal speckle image in the right sub-image in the middle changes, the corresponding global speckle image and local speckle image are: Fig.15 The left sub-image is the global speckle image in this case, and the right sub-image is the local speckle image in this case.
[0163] Fig.16 This is another schematic diagram of the second speckle image provided in the embodiment of the present application. Please refer to Fig.16 , Fig.16 Shown Figure 2 The corresponding global and local speckle images are shown in the right sub-image of the wide-angle ideal speckle image after (x, y) and R are changed. Fig.16 The left sub-image is the global speckle image in this case, and the right sub-image is the local speckle image in this case.
[0164] It should be noted that the above Figure 14-16 The left sub-image in can be used as the aforementioned pre-stored reference image.
[0165] Optionally, when there are multiple groups of emitting holes, the speckle image may also change, for example: Fig. 9 When the sub-image on the right side is used as the arrangement of the emitting holes, the speckle image will change accordingly, as follows:
[0166] Fig.17 is a schematic diagram of a speckle image provided in an embodiment of the present application when some of the emission holes are not adjacent to each other, Fig.17 The upper left sub-image in the middle is the global speckle image under ideal conditions, which is different from Figure 2 The middle right sub-figure is the same; Fig.17 The upper right sub-image is the local speckle image under ideal conditions. Fig.17 A portion of the left sub-image; Fig.17 The lower left sub-image shows the theoretical full picture of all speckles in an ideal situation when some of the emission holes are not adjacent and only some of the emission holes emit light; Fig.17 The right sub-image is an ideal case where some emitting holes are not adjacent and only some of the emitting holes emit light. The speckle image actually obtained can be used as one of the first speckle images.
[0167] For example, in the actual calibration process, if the first speckle image is determined to be Fig.17 In the lower right sub-image, it can be determined based on the image features of the speckle image that there are no parameters that need to be adjusted, that is, the speckle emission module in the current state does not need to be calibrated.
[0168] Fig.18 This is another schematic diagram of a speckle image provided in an embodiment of the present application when some of the emission holes are not adjacent to each other. Fig.18 , Fig.18 The upper left sub-image is Fig.17 The speckle distribution after the (x, y) in the upper left sub-image in the middle is changed; Fig.18 The upper right sub-image is Fig.17 The speckle distribution after the (x, y) in the upper right sub-image in the middle is changed; Fig.18 The lower left sub-image is Fig.17 The speckle distribution after the (x, y) in the lower left sub-image is changed; Fig.18 The lower right sub-image is Fig.17 The speckle distribution after the (x, y) in the lower right sub-image is changed.
[0169] For example, in the actual calibration process, if the first speckle image is determined to be Fig.18 In the lower right sub-figure, the corresponding adjustment parameter can be determined as the position of the emitter in the vertical section in the target direction based on the image features of the speckle image, so that the parameter can be adjusted to achieve calibration of the speckle emission module.
[0170] Fig.19This is another schematic diagram of a speckle image provided in an embodiment of the present application when some of the emission holes are not adjacent to each other. Fig.19 , Fig.19 The upper left sub-image is Fig.17 The speckle distribution after R changes in the upper left sub-image; Fig.19 The upper right sub-image is Fig.17 The speckle distribution after R changes in the upper right sub-image; Fig.19 The lower left sub-image is Fig.17 The speckle distribution after R changes in the lower left sub-image; Fig.19 The lower right sub-image is Fig.17 Speckle distribution after R changes in the lower right sub-image.
[0171] For example, in the actual calibration process, if the first speckle image is determined to be Fig.19 In the lower right sub-figure, the corresponding adjustment parameter can be determined as the relative angle between the emitter and the optical element based on the image features of the speckle image, so that the parameter can be adjusted to achieve calibration of the speckle emission module.
[0172] Fig. 20 This is another schematic diagram of a speckle image provided in an embodiment of the present application when some of the emission holes are not adjacent to each other. Fig. 20 , Fig. 20 The upper left sub-image is Fig.17 The speckle distribution after (x, y) and R in the upper left sub-image are changed; Fig. 20 The upper right sub-image is Fig.17 The speckle distribution after (x, y) and R in the upper right sub-image are changed; Fig. 20 The lower left sub-image is Fig.17 The speckle distribution after (x, y) and R in the lower left sub-image are changed; Fig. 20 The lower right sub-image is Fig.17 The speckle distribution after (x, y) and R in the lower right sub-figure are changed.
[0173] For example, in the actual calibration process, if the first speckle image is determined to be Fig. 20 In the lower right sub-figure, the corresponding adjustment parameters can be determined based on the image features of the speckle image, which are the position of the emitter in the vertical section in the target direction and the relative angle between the emitter and the optical element. The above two parameters can be adjusted to achieve the calibration of the speckle emission module.
[0174] It should be noted that setting multiple groups of transmitting holes can improve the accuracy of determining the parameters to be adjusted or the adjustment values of the adjustable parameters. The steps performed are the same as setting one group of transmitting holes and will not be repeated here.
[0175] It should be understood that, although the steps in the above-mentioned flowcharts are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above-mentioned flowcharts may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0176] Based on the foregoing embodiments, an embodiment of the present application provides a calibration device for a speckle emission module, which includes various modules included and various units included in each module, and can be implemented by a processor; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.
[0177] Fig.21 This is a schematic diagram of the structure of the calibration device of the speckle emission module provided in the embodiment of the present application, please refer to Fig.21 In another aspect of the embodiment of the present application, a calibration device for a speckle emission module is provided, which is applied to the speckle emission module. The speckle emission module includes: an emitter, an optical element, wherein the emitter includes: a main light-emitting area and a secondary light-emitting area, and the number of emission holes in the secondary light-emitting area is less than the number of emission holes in the main light-emitting area. The device includes: an emission module 2110, an acquisition module 2120, and an adjustment module 2130;
[0178] The emission module 2110 is used to control the emitter to emit light through the emission holes of the secondary light-emitting area, and the secondary light-emitting area includes at least two emission holes;
[0179] An acquisition module 2120, configured to acquire a first speckle image projected after being processed by an optical element;
[0180] The adjustment module 2130 is used to adjust the adjustable parameters of the speckle emission module according to the first speckle image to calibrate the speckle emission module, wherein the adjustable parameters include: the relative distance between the emitter and the optical element in the target direction, the position of the emitter in the vertical section in the target direction, and the relative angle between the emitter and the optical element, wherein the target direction is the direction of a preset central axis.
[0181] In one embodiment, the adjustment module 2130 is specifically used to extract image features in the first speckle image, where the image features are used to represent the distribution of each speckle in the speckle image; and adjust the adjustable parameters according to the image features to calibrate the speckle emission module.
[0182] In one embodiment, in the device, light emitted from the emission holes of the secondary light-emitting area is processed by an optical element and then projected multiple times. There is a gap between the projection results obtained by each projection. Each projection result includes multiple speckles, and the number of speckles in each projection result is equal to the number of emission holes in the secondary light-emitting area of the emitter.
[0183] In one embodiment, in the device, the emission holes in the secondary light-emitting area are distributed in a regular shape, and the regular shape includes: L-shape or straight shape.
[0184] In one embodiment, the adjustment module 2130 is specifically used to compare the image features with the reference image features in a plurality of pre-stored reference images, determine the target pre-stored reference image with the highest matching degree with the image features, each pre-stored reference image corresponds to at least one parameter to be adjusted; use the at least one target parameter to be adjusted corresponding to the target pre-stored reference image as at least one parameter to be adjusted among the adjustable parameters; and adjust the at least one parameter to be adjusted to calibrate the speckle emission module.
[0185] In one embodiment, the adjustment module 2130 is specifically configured to determine the adjustment value of each adjustable parameter according to the feature difference between the image feature and the initial image feature of the pre-stored initial image, and the mapping relationship between the feature difference and the adjustment value of the adjustable parameter, wherein the pre-stored initial image is an ideal speckle distribution image; and according to the adjustment value of each adjustable parameter, adjust the corresponding adjustable parameter to calibrate the speckle emission module.
[0186] In one embodiment, the emission module 2110 is further used to control the emitter to emit light through the emission holes of the main light-emitting area and the emission holes of the secondary light-emitting area; the acquisition module 2120 is further used to acquire a second speckle image obtained by projection after being processed by the optical element; the adjustment module is specifically used to control the emitter to emit light through the emission holes of the secondary light-emitting area when the second speckle image is a local speckle image, the second speckle image includes a global speckle image or a local speckle image, and the number of speckles in the local speckle image is less than the number of speckles in the global speckle image.
[0187] In an embodiment, the adjustment module 2130 is specifically configured to determine and extract image features of the first speckle image according to position information of each speckle in the first speckle image; or, determine and extract image features of the first speckle image according to position information of each speckle in the first speckle image and position information of each speckle in the second speckle image.
[0188] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.
[0189] It should be noted that in the embodiments of this application Fig.21 The division of modules in the calibration device of the speckle emission module shown is schematic, which is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit. It may also be implemented in the form of a combination of software and hardware.
[0190] It should be noted that in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.
[0191] Fig. 22 For a schematic diagram of the structure of the computer device provided in the embodiment of the present application, please refer to Fig. 22 , an embodiment of the present application provides a computer device, which may be a control unit of the above-mentioned speckle emission module, and its internal structure diagram may be as shown in Fig. 22As shown. The computer device includes a processor 2220, a memory and a network interface 2240 connected via a system bus 2210. Among them, the processor 2220 of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium 2231 and an internal memory 2232. The non-volatile storage medium 2231 stores an operating system, a computer program and a database. The internal memory 2232 provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium 2231. The database of the computer device is used to store data. The network interface 2240 of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor 2220, the above method is implemented.
[0192] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the method provided in the above embodiment are implemented.
[0193] An embodiment of the present application provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps of the method provided in the above method embodiment.
[0194] Those skilled in the art will understand that Fig. 22 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0195] In one embodiment, the calibration device of the speckle emission module provided in the present application can be implemented in the form of a computer program. The computer program can be Fig. 22 The computer device shown in the figure is run. The memory of the computer device can store various program modules constituting the above-mentioned device. The computer program composed of various program modules enables the processor to execute the steps in the method of each embodiment of the present application described in this specification.
[0196] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0197] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of each embodiment tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. For the sake of brevity, this article will not repeat them.
[0198] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.
[0199] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0200] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.
[0201] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed on multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0202] In addition, all functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may be a separate unit, or two or more modules may be integrated into one unit; the above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0203] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.
[0204] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0205] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0206] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0207] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0208] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for calibrating a speckle emission module, characterized in that: Applied to a speckle emission module, the speckle emission module comprises: an emitter, an optical element, wherein the emitter comprises: a main light-emitting area and a secondary light-emitting area, the number of emission holes in the secondary light-emitting area is less than the number of emission holes in the main light-emitting area, and the method comprises: Controlling the emitter to emit light through the emission holes of the secondary light-emitting area, wherein the secondary light-emitting area includes at least two emission holes; Acquire a first speckle image projected after being processed by the optical element; The adjustable parameters of the speckle emission module are adjusted according to the first speckle image to calibrate the speckle emission module, wherein the adjustable parameters include: a relative distance between the emitter and the optical element in a target direction, a position of the emitter in a vertical cross section in the target direction, and a relative angle between the emitter and the optical element, wherein the target direction is a direction of a preset central axis.
2. The method according to claim 1, characterized in that The step of adjusting the adjustable parameters of the speckle emission module according to the first speckle image to calibrate the speckle emission module includes: extracting image features from the first speckle image, where the image features are used to represent the distribution of each speckle in the speckle image; The adjustable parameters are adjusted according to the image features to calibrate the speckle emission module.
3. The method according to claim 2, characterized in that The adjusting the adjustable parameter according to the image feature to calibrate the speckle emission module includes: Comparing the image feature with reference image features in a plurality of pre-stored reference images, determining a target pre-stored reference image with the highest matching degree with the image feature, each of the pre-stored reference images corresponding to at least one parameter to be adjusted; taking at least one target parameter to be adjusted corresponding to the target pre-stored reference image as at least one parameter to be adjusted among the adjustable parameters; At least one of the parameters to be adjusted is adjusted to calibrate the speckle emission module.
4. The method according to claim 2, characterized in that: The adjusting the adjustable parameter according to the image feature to calibrate the speckle emission module includes: determining the adjustment value of each adjustable parameter according to a feature difference between the image feature and an initial image feature of a pre-stored initial image, and a mapping relationship between the feature difference and the adjustment value of the adjustable parameter, wherein the pre-stored initial image is an ideal speckle distribution image; According to the adjustment value of each adjustable parameter, the corresponding adjustable parameter is adjusted to calibrate the speckle emission module.
5. The method according to any one of claims 2 to 4, characterized in that: Before controlling part of the emission holes of the emitter to emit light through the optical element, the method further includes: Controlling the emitter to emit light through the emission holes of the main light-emitting area and the emission holes of the secondary light-emitting area; Acquire a second speckle image projected after being processed by the optical element; The controlling the emitter to emit light through the emission hole of the secondary light-emitting area comprises: In the case that the second speckle image is a local speckle image, the emitter is controlled to emit light through the emission hole of the secondary light-emitting area, the second speckle image includes a global speckle image or a local speckle image, and the number of speckles in the local speckle image is less than the number of speckles in the global speckle image.
6. The method according to claim 5, characterized in that The extracting image features from the first speckle image comprises: determining and extracting image features of the first speckle image according to position information of each speckle in the first speckle image; or, The image feature of the first speckle image is determined and extracted according to the position information of each speckle in the first speckle image and the position information of each speckle in the second speckle image.
7. The method according to claim 1, characterized in that The light emitted by the emission holes of the secondary light-emitting area is projected multiple times after being processed by the optical element, and there is a gap between the projection results obtained by each projection. Each projection result includes multiple speckles, and the number of speckles in each projection result is equal to the number of emission holes in the secondary light-emitting area of the emitter.
8. The method according to claim 1, characterized in that: The emission holes in the secondary light-emitting area are distributed in a regular shape, and the regular shape includes: L-shape or straight shape.
9. A calibration device for a speckle emission module, characterized in that: Applied to a speckle emission module, the speckle emission module comprises: an emitter, an optical element, wherein the emitter comprises: a main light-emitting area and a secondary light-emitting area, the number of emission holes in the secondary light-emitting area is less than the number of emission holes in the main light-emitting area, and the device comprises: an emission module, an acquisition module and an adjustment module; The emission module is used to control the emitter to emit light through the emission holes of the secondary light-emitting area, and the secondary light-emitting area includes at least two emission holes; The acquisition module is used to acquire a first speckle image projected after being processed by the optical element; The adjustment module is used to adjust the adjustable parameters of the speckle emission module according to the first speckle image to calibrate the speckle emission module, wherein the adjustable parameters include: a relative distance between the emitter and the optical element in a target direction, a position of the emitter in a vertical section in the target direction, and a relative angle between the emitter and the optical element, wherein the target direction is a direction of a preset central axis.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the program, the steps of the method according to any one of claims 1 to 8 are implemented.
