Offset measurement method, device, system and equipment of laser module

By analyzing the offset of the speckle image of the laser module, calculating and calibrating the offset angle of the laser speckle projector and the diffractive optical element, the problem of poor alignment recognition accuracy in the existing technology is solved, and the construction efficiency and imaging quality are improved. .

CN118794659APending Publication Date: 2024-10-18KUNSHAN QIUTI PHOTOELECTRIC TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410818915.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In the existing technology, when building a laser module, the method of manually identifying whether the laser speckle projector and the diffractive optical element are aligned has poor accuracy and low efficiency, resulting in poor imaging quality.

Method used

By analyzing the offset of the speckle image projected by the laser module, calculating the offset angle between the laser speckle projector and the diffractive optical element, and using the preset mapping relationship table or mapping relationship function to determine whether the two are aligned, thereby performing calibration.

Benefits of technology

It improves the accuracy and efficiency of laser module construction and ensures the uniformity and imaging quality of speckle images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118794659A_ABST
    Figure CN118794659A_ABST
Patent Text Reader

Abstract

The invention discloses an offset measurement method, device, system and equipment of a laser module, the laser module comprises a laser speckle projector and a diffractive optical element, the method comprises the following steps: obtaining a to-be-measured speckle image, the to-be-measured speckle image comprises a reference image unit and an offset image unit; calculating a target offset of the offset image unit relative to the reference image unit; and according to the target offset, a target offset angle is determined, and the target offset angle is an included angle between the laser speckle projector and the diffractive optical element. According to the technical scheme, the deviation angle between the laser speckle projector and the diffractive optical element can be calculated, and whether the laser speckle projector and the diffractive optical element are aligned and matched or not is determined according to the deviation angle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of laser module measurement technology, and in particular, relates to a method, device, system and equipment for measuring the offset of a laser module. Background Art

[0002] Laser modules are widely used in the transmitting end of various optical systems, for example, in the transmitter of iTOF (Indirect Time-of-Flight) modules to realize light beam projection; laser modules usually include a laser speckle projector VCSEL and a diffractive optical element DOE.

[0003] When building a laser module, it is necessary to align the laser speckle projector and the diffractive optical element to avoid uneven diffraction images. Currently, the alignment of the laser speckle projector and the diffractive optical element is mainly determined manually, which has poor accuracy and low efficiency. Summary of the invention

[0004] The embodiments of the present application provide a method, device, system and equipment for measuring the offset of a laser module, thereby determining the offset angle between a laser speckle projector and a diffractive optical element at least to a certain extent by analyzing the offset of a speckle image projected by the laser module, thereby determining whether the two are aligned and matched based on the offset angle.

[0005] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0006] According to a first aspect of an embodiment of the present application, a method for measuring an offset of a laser module is provided, wherein the laser module comprises a laser speckle projector and a diffractive optical element, and the method comprises:

[0007] Acquire a speckle image to be measured, wherein the speckle image to be measured includes a reference image unit and an offset image unit;

[0008] Calculating a target offset of the offset image unit relative to the reference image unit;

[0009] According to the target offset, a target offset angle is determined, where the target offset angle is the angle between the laser speckle projector and the diffractive optical element.

[0010] In some embodiments of the present application, based on the above solution, calculating the target offset of the offset image unit relative to the reference image unit includes:

[0011] Positioning adjacent image areas of the offset image unit and the reference image unit, wherein the adjacent image areas are scattered speckle array units with misalignment and offset;

[0012] Obtaining position coordinates of at least one row of scattered spots in the scattered spot array unit;

[0013] The target offset is calculated according to the position coordinates of at least one row of scattered spots.

[0014] In some embodiments of the present application, based on the above-mentioned solution, the scattered spot array unit includes N rows×M columns of scattered spots, M≥3, and the calculating the target offset according to the position coordinates of at least one row of scattered spots includes:

[0015] Obtaining position coordinates of at least one row of scattered spots, each row including at least three target scattered spots;

[0016] For each row of target scattered spots, the slope between two adjacent target scattered spots is calculated using the position coordinates, and the corresponding slope difference is calculated based on each slope;

[0017] The target offset is obtained by summing up the slope differences.

[0018] In some embodiments of the present application, based on the above solution, determining the target offset angle according to the target offset includes:

[0019] Obtaining a preset mapping relationship table, wherein the preset mapping relationship table records the correspondence between each offset angle and each offset amount;

[0020] The preset mapping relationship table is searched for a target offset angle that matches the target offset.

[0021] In some embodiments of the present application, based on the above solution, determining the target offset angle according to the target offset includes:

[0022] Acquire a pre-built mapping relationship function, where the mapping relationship function is used to characterize the functional relationship between each offset angle and each offset amount;

[0023] The target offset angle is calculated according to the target offset through the mapping relationship function.

[0024] In some embodiments of the present application, based on the above solution, the construction process of the mapping relationship function is as follows:

[0025] Obtaining a sample speckle image corresponding to each calibration offset angle;

[0026] Calculating a calibration offset corresponding to each of the sample speckle images;

[0027] The mapping relationship function is obtained by fitting each calibration offset and each calibration offset angle.

[0028] In some embodiments of the present application, based on the above solution, after determining the target offset angle, the method further includes:

[0029] The target offset angle is sent to a control console so that the control console calibrates the laser speckle projector and the diffractive optical element to an aligned state according to the target offset angle.

[0030] According to a second aspect of an embodiment of the present application, a device for measuring the offset of a laser module is provided, wherein the laser module comprises a laser speckle projector and a diffractive optical element, and the device comprises:

[0031] An image acquisition module, used for acquiring a speckle image to be measured, wherein the speckle image to be measured includes a reference image unit and an offset image unit;

[0032] An offset calculation module, used for calculating a target offset of the offset image unit relative to the reference image unit;

[0033] The offset angle determination module is used to determine a target offset angle according to the target offset amount, wherein the target offset angle is the angle between the laser speckle projector and the diffractive optical element.

[0034] According to a third aspect of an embodiment of the present application, a laser module offset measurement system is provided, comprising:

[0035] The laser module offset measurement device as described in the second aspect;

[0036] A console is used to receive a target offset angle sent by an offset measuring device of the laser module, and calibrate the laser speckle projector and the diffractive optical element to an aligned state according to the target offset angle.

[0037] According to a fourth aspect of an embodiment of the present application, an electronic device is provided, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method steps described in any one of the first aspects are implemented.

[0038] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application.

[0039] According to the offset measurement method of the laser module provided by one or more embodiments of the present application, by acquiring the speckle image to be measured, the target offset of the offset image unit in the image relative to the reference image unit is calculated; according to the target offset, the target offset angle is determined, and the target offset angle is the angle between the laser speckle projector and the diffractive optical element, so that it is possible to identify whether the laser speckle projector and the diffractive optical element are aligned according to the angle, and the target offset angle can be used as a basis for module calibration, thereby improving the accuracy and efficiency of subsequent module calibration.

[0040] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0042] Figure 1 A schematic diagram of laser module installation in an embodiment of the present application is shown;

[0043] Figure 2 A schematic diagram showing the alignment state of the laser speckle projector and the diffractive optical element in an embodiment of the present application is shown;

[0044] Figure 3 The speckle image in the state where the laser speckle projector and the diffractive optical element are aligned in the embodiment of the present application is shown;

[0045] Figure 4 A schematic diagram showing a state where the laser speckle projector and the diffractive optical element are not aligned in an embodiment of the present application;

[0046] Figure 5 The speckle image in the state where the laser speckle projector and the diffractive optical element are not aligned in the embodiment of the present application is shown;

[0047] Figure 6 A flow chart of a method for measuring the offset of a laser module in an embodiment of the present application is shown;

[0048] Figure 7 A schematic diagram of a speckle image to be measured in an embodiment of the present application is shown;

[0049] Figure 8 A schematic diagram of adjacent image areas in an embodiment of the present application is shown;

[0050] Fig. 9A schematic diagram of target scattered spots in an embodiment of the present application is shown;

[0051] Fig.10 A structural diagram of an offset measurement device for a laser module in an embodiment of the present application is shown;

[0052] Fig.11 A structural diagram of an offset measurement system of a laser module in an embodiment of the present application is shown;

[0053] Fig.12 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION

[0054] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0055] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.

[0056] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0057] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0058] It should also be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the objects used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those shown or described.

[0059] See also Figures 1 to 5 , Figure 1 A schematic diagram of laser module installation in an embodiment of the present application is shown; Figure 2 A schematic diagram showing the alignment state of the laser speckle projector and the diffractive optical element in an embodiment of the present application is shown; Figure 3 The speckle image in the state where the laser speckle projector and the diffractive optical element are aligned in the embodiment of the present application is shown; Figure 4 A schematic diagram showing a state where the laser speckle projector and the diffractive optical element are not aligned in an embodiment of the present application;

[0060] Figure 5 The speckle image of the laser speckle projector and the diffractive optical element in the embodiment of the present application is shown in a misaligned state.

[0061] like Figure 1 As shown, the laser module generally includes a laser speckle projector VCSEL, a collimator lens and a diffractive optical element DOE. The light beam emitted by the laser speckle projector VCSEL passes through the collimator lens and the diffractive optical element DOE in sequence, and is projected to the outside to form a speckle image.

[0062] It can be understood that the laser module in the embodiment of the present application can be applied to the transmitting end of various optical systems, for example, in the transmitter of the iTOF module, and the iTOF module can be an integrated iTOF (Indirect Time OfFlight) module or a split iTOF module; of course, the laser module can also be applied to sensor modules such as dTOF (Direct Time Of Flight) modules, which is not limited here.

[0063] like Figure 2 As shown, when the laser module is built, the laser speckle projector and the diffractive optical element need to be aligned, that is, the angle between the laser speckle projector and the diffractive optical element is 0. Of course, if a certain degree of error is allowed, the angle between the laser speckle projector and the diffractive optical element can also be approximately 0. It can be adjusted according to the imaging requirements of the product and is not limited here. Figure 3 As shown, when the laser speckle projector and the diffractive optical element are in an aligned state, the speckle image projected by the laser module should be Figure 3From the uniform speckle image shown in , it can be seen that the diffraction transition between the image areas is very smooth, so the generated speckle image is also very uniform and has good imaging quality.

[0064] like Figure 4 As shown in FIG. 1 , when the laser module is built, if the laser speckle projector and the diffractive optical element are not aligned, that is, the angle between the laser speckle projector and the diffractive optical element is not 0, for example, there is an angle of 2 degrees, 4 degrees, 7 degrees, etc. Correspondingly, as Figure 5 As shown, when the laser speckle projector and the diffractive optical element are not aligned, the speckle image projected by the laser module is Figure 5 From the non-uniform speckle image shown in FIG, it can be seen that the left and right image regions in the image have an obvious offset compared to the middle image region, so that the generated speckle image is not uniform enough and the imaging quality is poor.

[0065] Based on the above, it can be known that when building a laser module, it is necessary to detect whether the laser speckle projector and the diffractive optical element are aligned. If they are not aligned, it is necessary to further know the offset angle between the laser speckle projector and the diffractive optical element, so as to provide accurate data support for subsequent calibration and improve the efficiency of module building. Based on this, an embodiment of the present application provides a method for measuring the offset of a laser module, which will be described in detail below.

[0066] See also Figures 6 to 9 , Figure 6 A flow chart of a method for measuring the offset of a laser module in an embodiment of the present application is shown; Figure 7 A schematic diagram of a speckle image to be measured in an embodiment of the present application is shown; Figure 8 A schematic diagram of adjacent image areas in an embodiment of the present application is shown; Fig. 9 A schematic diagram of target scattered spots in an embodiment of the present application is shown.

[0067] like Figure 6 As shown, according to a first aspect of an embodiment of the present application, a method for measuring the offset of a laser module is provided, wherein the laser module comprises a laser speckle projector and a diffractive optical element, and the method includes but is not limited to being implemented by steps S101 to S103:

[0068] Step S101. Acquire a speckle image to be measured, wherein the speckle image to be measured includes a reference image unit and an offset image unit;

[0069] Step S102. Calculate the target offset of the offset image unit relative to the reference image unit;

[0070] Step S103. Determine a target offset angle according to the target offset, where the target offset angle is the angle between the laser speckle projector and the diffractive optical element.

[0071] Based on the above disclosed content, the embodiments of the present application obtain the speckle image to be measured, calculate the target offset of the offset image unit in the image relative to the reference image unit; determine the target offset angle according to the target offset, and the target offset angle is the angle between the laser speckle projector and the diffractive optical element, so that it is possible to identify whether the laser speckle projector and the diffractive optical element are aligned according to the angle, and the target offset angle can be used as the basis for module calibration, thereby improving the accuracy and efficiency of subsequent module calibration.

[0072] In step S101, the speckle image to be measured can be projected through the transmitting end of the iTOF module. Specifically, the light beam emitted by the laser speckle projector VCSEL is sequentially projected through the collimator and the diffractive optical element DOE, and then the image is received by the receiving end of the iTOF module to acquire the speckle image to be measured.

[0073] In step S101, the speckle image to be measured refers to a speckle image formed when a light beam emitted by a laser speckle projector VCSEL passes through a collimator and a diffractive optical element DOE in sequence and is projected to the outside.

[0074] In step S101, the reference image unit refers to an image unit that meets imaging expectations after being diffracted by a diffractive optical element DOE.

[0075] In step S101, the offset image unit refers to an image unit that does not meet the imaging expectation after being diffracted by the diffractive optical element DOE and is offset relative to the reference image unit.

[0076] In some implementations of step S101, Figure 7 As shown, the speckle image to be measured may be an image after being partitioned by 3×1 by the diffractive optical element. It can be seen from the figure that after the diffractive optical element partitions the light beam emitted by the laser speckle projector by 3×1, the obtained speckle image to be measured includes a reference image unit and two offset image units respectively located on both sides of the reference image unit.

[0077] Of course, it can be understood that, in some embodiments, the speckle image to be measured may also be an image after being partitioned by 3×3 or 9×9 by the diffractive optical element, which is not limited here; correspondingly, if the image is partitioned by 3×3, the speckle image to be measured includes 3 reference image units and 6 offset image units, such as Figure 3As shown in ; if after 9×9 partitioning, the speckle image to be measured includes 9 reference image units and 72 offset image units, and so on, which will not be described one by one.

[0078] In some implementations of step S102, calculating a target offset of the offset image unit relative to the reference image unit includes:

[0079] Step S1021. Positioning the adjacent image areas of the offset image unit and the reference image unit, wherein the adjacent image areas are scattered speckle array units with misalignment and offset;

[0080] It should be noted that the adjacent image area refers to an image area where the adjacent boundary between the offset image unit and the reference image unit is located, and in the adjacent image area, it can be clearly perceived that the offset image unit and the reference image unit are misaligned.

[0081] For example: Figure 8 , the adjacent image area of ​​the speckle image to be measured through the 3×1 partition of the diffractive optical element is shown, and the adjacent image area includes the first adjacent image area between the reference image unit and the image shift unit on the left, and the second adjacent image area between the reference image unit and the image shift unit on the right. Figure 8 As shown in , the first adjacent image area and the second adjacent image area are highlighted by connecting the scattered spots in the adjacent image areas.

[0082] It can be understood that the speckle image to be measured is a dot matrix image including several rows and several columns of scattered spots, and the dot matrix image includes a plurality of scattered spot matrix units, such as the adjacent image areas mentioned above, and each row of scattered spots corresponding to the adjacent image areas has a misalignment offset.

[0083] Step S1022: Obtaining the position coordinates of at least one row of scattered spots in the scattered spot array unit;

[0084] Since each row of scattered spots of the scattered spot array unit has a misalignment offset, then, according to different calculation accuracy of the offset, different numbers of scattered spot position coordinates can be selected for calculation. In some embodiments, only one row of scattered spot position coordinates can be used to calculate the offset, while in other embodiments, multiple rows of scattered spot position coordinates can be used to calculate the offset, which is not limited here.

[0085] For example: Figure 8In the figure, multiple rows of scattered spots of two scattered spot array units are shown, and each row of scattered spots has a misalignment offset. On this basis, the position coordinates of one or more rows of scattered spots in the middle area of ​​each scattered spot array unit can be selected for offset calculation, or the position coordinates of one or more rows of scattered spots above each scattered spot array unit can be selected for offset calculation, or the position coordinates of one or more rows of scattered spots below each scattered spot array unit can be selected for offset calculation. The specific selection can be based on the calculation accuracy of the offset, which is not limited here.

[0086] Step S1023: Calculate the target offset according to the position coordinates of at least one row of scattered spots.

[0087] In some implementations of step S1023, the scattered spot array unit includes N rows×M columns of scattered spots, M≥3, and the calculating the target offset according to the position coordinates of at least one row of scattered spots includes:

[0088] (1) obtaining position coordinates of at least one row of scattered spots, each row including at least three target scattered spots;

[0089] (2) For each row of target scattered spots, the slope between two adjacent target scattered spots is calculated using the position coordinates, and the corresponding slope difference is calculated based on each slope;

[0090] (3) Sum the slope differences to obtain the target offset.

[0091] For example: Fig. 9 In each spot array unit, two rows of spots in the middle area are selected as target spots; for each row of target spots, the slope between two adjacent target spots is calculated using the position coordinates, and the slope calculation formula is k = (y2-y1) / (x2-x1), where (x1, y1) and (x2, y2) represent the position coordinates of two adjacent spots, respectively; Fig. 9 As shown, the slopes ka1 and ka2, kb1 and kb2, kc1 and kc2, and kd1 and kd2 can be calculated respectively; then, the corresponding slope differences are further calculated according to the slopes calculated in each row, which are: g1=(ka2-ka1), g2=(kb2-kb1), g3=(kc2-kc1), g4=(kd2-kd1); after calculating the slope differences, the slope differences are summed to obtain the target offset K=g1+g2+g3+g4.

[0092] It should be understood that the above example is only one method of calculating the target offset. In other embodiments, one or more rows of scattered spots in different areas of the scattered spot array unit can also be used to calculate the target offset. The specific selection can be based on the calculation accuracy and is not limited here.

[0093] In some implementations of step S103, determining the target offset angle according to the target offset includes:

[0094] Obtaining a preset mapping relationship table, wherein the preset mapping relationship table records the correspondence between each offset angle and each offset amount;

[0095] The preset mapping relationship table is searched for a target offset angle that matches the target offset.

[0096] In the embodiment of the present application, by collecting multiple sample images at a known offset angle and calculating the corresponding offset, when the number of samples reaches a preset requirement, a corresponding relationship between each offset angle and each offset can be established, and the corresponding relationship is recorded in the mapping relationship table. Therefore, in the actual application process, when a speckle image to be measured with an unknown offset angle is collected, the target offset angle matching the target offset can be found in the preset mapping relationship table, thereby obtaining the angle between the laser speckle projector and the diffractive optical element.

[0097] In some implementations of step S103, determining the target offset angle according to the target offset includes:

[0098] Acquire a pre-built mapping relationship function, where the mapping relationship function is used to characterize the functional relationship between each offset angle and each offset amount;

[0099] The mapping relationship function refers to a mapping relationship function constructed with each offset as an independent variable and each offset angle between the laser speckle projector and the diffractive optical element as a dependent variable. For example, the mapping relationship function may be f(x, y), wherein x and y may be each offset and each offset angle, respectively. When determining the offset, the corresponding offset angle may be calculated according to the mapping relationship function.

[0100] The target offset angle is calculated according to the target offset through the mapping relationship function.

[0101] It is understandable that the benefit of calculating the target offset angle through a mapping relationship function is that the calculation result of the target offset angle is more accurate, making the subsequent angle calibration more delicate, thereby making the performance of the constructed laser module better.

[0102] In some implementations, the mapping relationship function is constructed as follows:

[0103] Obtaining a sample speckle image corresponding to each calibration offset angle;

[0104] Calculating a calibration offset corresponding to each of the sample speckle images;

[0105] The mapping relationship function is obtained by fitting each calibration offset and each calibration offset angle.

[0106] Calibrating the offset angle means that before image acquisition, the angle between the laser speckle projector and the diffractive optical element is calibrated to a known offset angle.

[0107] The calibration offset refers to the offset corresponding to the sample speckle image collected at the calibration offset angle.

[0108] It should be noted that the method for calculating the calibration offset corresponding to each of the sample speckle images is the same as the aforementioned step S102, and will not be described in detail herein.

[0109] Preferably, the least square method is used to fit each calibration offset and each calibration offset angle to obtain the mapping relationship function.

[0110] For example, the calibration offset angles are pre-set to be 0 degrees, 2 degrees, and 4 degrees, and the calibration offsets calculated for the calibration offset angles are -0.0151515, -0.542548, and -1.1094, respectively. The corresponding mapping relationship function can be obtained by curve fitting using the above data. It can be verified that the offset angles calculated using the mapping relationship function are 0.003564327, 2.00682235, and 3.99626327, respectively, and the errors with the calibration offset angles are very small. Therefore, the mapping relationship function can accurately characterize the functional relationship between each offset angle and each offset.

[0111] In some embodiments, after determining the target offset angle, the method further includes:

[0112] The target offset angle is sent to a control console so that the control console calibrates the laser speckle projector and the diffractive optical element to an aligned state according to the target offset angle.

[0113] Based on the above disclosed content, by establishing a mapping relationship between the offset of the speckle image to be measured and the offset angle between the laser speckle projector and the diffractive optical element, the offset angle between the laser speckle projector and the diffractive optical element, that is, the included angle, is calculated through the mapping relationship, thereby providing an accurate calibration basis for the console, avoiding the problems of poor accuracy and low efficiency in manually adjusting the laser speckle projector and the diffractive optical element to an aligned state, and improving the efficiency of building a laser module.

[0114] The following describes an apparatus embodiment of the present application, which can be used to execute the method in the above-mentioned embodiment of the present application. For details not disclosed in the apparatus embodiment of the present application, please refer to the above-mentioned method embodiment of the present application.

[0115] See also Fig.10 , shows a structural diagram of the offset measurement device of the laser module of an embodiment of the present application.

[0116] like Fig.10 As shown, according to the second aspect of the embodiment of the present application, a laser module offset measurement device 200 is provided, wherein the laser module comprises a laser speckle projector and a diffractive optical element, and the device 200 comprises:

[0117] An image acquisition module 201 is used to acquire a speckle image to be measured, wherein the speckle image to be measured includes a reference image unit and an offset image unit;

[0118] An offset calculation module 202, used to calculate a target offset of the offset image unit relative to the reference image unit;

[0119] The offset angle determination module 203 is used to determine a target offset angle according to the target offset amount, where the target offset angle is the angle between the laser speckle projector and the diffractive optical element.

[0120] In some embodiments of the present application, based on the above solution, when calculating the target offset of the offset image unit relative to the reference image unit, the offset calculation module 202 is specifically used to:

[0121] Positioning adjacent image areas of the offset image unit and the reference image unit, wherein the adjacent image areas are scattered speckle array units with misalignment and offset;

[0122] Obtaining position coordinates of at least one row of scattered spots in the scattered spot array unit;

[0123] The target offset is calculated according to the position coordinates of at least one row of scattered spots.

[0124] In some embodiments of the present application, based on the above-mentioned solution, the scattered spot array unit includes N rows×M columns of scattered spots, M≥3, and when calculating the target offset according to the position coordinates of at least one row of scattered spots, the offset calculation module 202 is specifically used to:

[0125] Obtaining position coordinates of at least one row of scattered spots, each row including at least three target scattered spots;

[0126] For each row of target scattered spots, the slope between two adjacent target scattered spots is calculated using the position coordinates, and the corresponding slope difference is calculated based on each slope;

[0127] The target offset is obtained by summing up the slope differences.

[0128] In some embodiments of the present application, based on the above solution, when determining the target offset angle according to the target offset, the offset angle determination module 203 is specifically used to:

[0129] Obtaining a preset mapping relationship table, wherein the preset mapping relationship table records the correspondence between each offset angle and each offset amount;

[0130] The preset mapping relationship table is searched for a target offset angle that matches the target offset.

[0131] In some embodiments of the present application, based on the above solution, when determining the target offset angle according to the target offset, the offset angle determination module 203 is specifically used to:

[0132] Acquire a pre-built mapping relationship function, where the mapping relationship function is used to characterize the functional relationship between each offset angle and each offset amount;

[0133] The target offset angle is calculated according to the target offset through the mapping relationship function.

[0134] In some embodiments of the present application, based on the above solution, the construction process of the mapping relationship function is as follows:

[0135] Obtaining a sample speckle image corresponding to each calibration offset angle;

[0136] Calculating a calibration offset corresponding to each of the sample speckle images;

[0137] The mapping relationship function is obtained by fitting each calibration offset and each calibration offset angle.

[0138] In some embodiments of the present application, based on the above solution, after determining the target offset angle, the device 200 is further used to:

[0139] The target offset angle is sent to a control console so that the control console calibrates the laser speckle projector and the diffractive optical element to an aligned state according to the target offset angle.

[0140] The following describes a system embodiment of the present application, which can be used to execute the method in the above embodiment of the present application. For details not disclosed in the system embodiment of the present application, please refer to the above method embodiment of the present application.

[0141] See also Fig.11 , shows a structural diagram of the offset measurement system of the laser module of an embodiment of the present application.

[0142] like Fig.11 As shown, according to a third aspect of an embodiment of the present application, a laser module offset measurement system is provided, comprising:

[0143] The laser module offset measurement device as described in the second aspect;

[0144] A console is used to receive a target offset angle sent by an offset measuring device of the laser module, and calibrate the laser speckle projector and the diffractive optical element to an aligned state according to the target offset angle.

[0145] Based on the same inventive concept, an embodiment of the present application provides a computer-readable storage medium 300, in which at least one computer program instruction is stored, and the at least one computer program instruction is loaded and executed by a processor to implement the operations performed by the method described in any one of the third aspects.

[0146] The computer readable storage medium 300 may be a portable compact disk read-only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the computer readable storage medium 300 of the present application is not limited thereto, and in the present application, the readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, apparatus, or device.

[0147] The readable storage medium 300 may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the readable storage medium 300 include: an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0148] Program code for performing the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).

[0149] See also Fig.12 , showing a schematic diagram of the structure of a computer system of an electronic device suitable for implementing an embodiment of the present application.

[0150] like Fig.12 As shown, the electronic device 400 is in the form of a general computing device. The components of the electronic device 400 may include but are not limited to: at least one processing unit 410, at least one storage unit 420, and a bus 430 connecting different system components (including the storage unit 420 and the processing unit 410).

[0151] The storage unit stores program codes, which can be executed by the processing unit 410, so that the processing unit 410 executes the steps described in the above “Example Method” section of this specification according to various exemplary implementations of the present application.

[0152] The storage unit 420 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 421 and / or a cache memory unit 422 , and may further include a read-only memory unit (ROM) 423 .

[0153] The storage unit 420 may also include a program / utility 424 having a set (at least one) of program modules 425, such program modules 425 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0154] Bus 430 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0155] The electronic device 400 may also communicate with one or more external devices 500 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 400, and / or communicate with any device that enables the electronic device 400 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 450. Furthermore, the electronic device 400 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 460. As shown, the network adapter 460 communicates with other modules of the electronic device 400 via a bus 430. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 400, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0156] The functions described herein may be implemented in hardware, software executed by a processor, firmware, or any combination thereof. If implemented in software executed by a processor, the functions may be stored as one or more instructions or codes on a computer-readable medium or transmitted via a computer-readable medium. Other examples and implementations are within the scope and spirit of the present invention and the appended claims. For example, due to the nature of software, the functions described above may be implemented using software executed by a processor, hardware, firmware, hard wiring, or a combination of any of these. In addition, each functional unit may be integrated into a processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit.

[0157] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0158] The units described as separate components may or may not be physically separated, and the components of the control device may or may not be physical units, that is, they may be located in one place or distributed in multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0159] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution 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 a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0160] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc., does not indicate any order. These words may be interpreted as names.

[0161] The above description is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present application shall be included in the scope of the claims of the present application.

Claims

1. A method for measuring the offset of a laser module, characterized in that: The laser module includes a laser speckle projector and a diffractive optical element, and the method includes: Acquire a speckle image to be measured, wherein the speckle image to be measured includes a reference image unit and an offset image unit; Calculating a target offset of the offset image unit relative to the reference image unit; According to the target offset, a target offset angle is determined, where the target offset angle is the angle between the laser speckle projector and the diffractive optical element.

2. The method according to claim 1, characterized in that Calculating a target offset of the offset image unit relative to the reference image unit includes: Positioning adjacent image areas of the offset image unit and the reference image unit, wherein the adjacent image areas are scattered speckle array units with misalignment and offset; Obtaining position coordinates of at least one row of scattered spots in the scattered spot array unit; The target offset is calculated according to the position coordinates of at least one row of scattered spots.

3. The method according to claim 2, characterized in that The scattered spot array unit includes N rows×M columns of scattered spots, M≥3, and the target offset is calculated according to the position coordinates of at least one row of scattered spots, including: Obtaining position coordinates of at least one row of scattered spots, each row including at least three target scattered spots; For each row of target scattered spots, the slope between two adjacent target scattered spots is calculated using the position coordinates, and the corresponding slope difference is calculated based on each slope; The target offset is obtained by summing up the slope differences.

4. The method according to claim 1, characterized in that: Determining a target offset angle according to the target offset includes: Obtaining a preset mapping relationship table, wherein the preset mapping relationship table records the correspondence between each offset angle and each offset amount; The preset mapping relationship table is searched for a target offset angle that matches the target offset.

5. The method according to claim 1, characterized in that: Determining a target offset angle according to the target offset includes: Acquire a pre-built mapping relationship function, where the mapping relationship function is used to characterize the functional relationship between each offset angle and each offset amount; The target offset angle is calculated according to the target offset through the mapping relationship function.

6. The method according to claim 5, characterized in that The construction process of the mapping relationship function is as follows: Obtaining a sample speckle image corresponding to each calibration offset angle; Calculating a calibration offset corresponding to each of the sample speckle images; The mapping relationship function is obtained by fitting each calibration offset and each calibration offset angle.

7. The method according to any one of claims 1 to 6, characterized in that: After determining the target offset angle, the method further includes: The target offset angle is sent to a control console so that the control console calibrates the laser speckle projector and the diffractive optical element to an aligned state according to the target offset angle.

8. A laser module offset measurement device, characterized in that: The laser module includes a laser speckle projector and a diffractive optical element, and the device includes: An image acquisition module, used for acquiring a speckle image to be measured, wherein the speckle image to be measured includes a reference image unit and an offset image unit; An offset calculation module, used for calculating a target offset of the offset image unit relative to the reference image unit; The offset angle determination module is used to determine a target offset angle according to the target offset amount, wherein the target offset angle is the angle between the laser speckle projector and the diffractive optical element.

9. A laser module offset measurement system, characterized in that: include: The laser module offset measuring device as claimed in claim 8; A console is used to receive a target offset angle sent by an offset measuring device of the laser module, and calibrate the laser speckle projector and the diffractive optical element to an aligned state according to the target offset angle.

10. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method steps as claimed in any one of claims 1 to 7 when executing the program.

Citation Information

Cited By

  • Optical device angle deviation measuring method and device for high-speed optical module

    CN121953874A

  • Optical device angle offset measurement method and device for high-speed optical module

    CN121953874B