A method and device for detecting pitch angle of laser radar based on two-dimensional code
By using a target with a QR code in the lidar and combining the target surface and QR code image parameters, the problem of low lidar pitch angle detection accuracy is solved and fast and accurate measurement results are achieved.
Patent Information
- Application Number
- CN202410806158.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-06-21
AI Technical Summary
Due to the deviation of the target from the horizontal plane and inaccurate installation, the existing lidar pitch angle detection method causes the position of the light spot to shift, affecting the measurement accuracy and accuracy.
Use a target with a QR code, emit laser light to the QR code through the lidar transmitter, collect the target surface image and QR code image parameters, combine the position parameters of the lidar and the target, calculate the pitch angle, and Enhance flexibility by changing the position of the QR code to adapt to different measurement needs.
It achieves precise measurement of lidar pitch angle, with fast detection speed, convenient operation, and more accuracy, and reduces the impact of target tilt on measurement results.
Smart Images

Figure CN118377003B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of laser radar, and in particular relates to a laser radar pitch angle detection method and device based on a two-dimensional code. Background Art
[0002] In LiDAR, the pitch angle setting plays a decisive role in the vertical scanning range of the sensor. It is directly related to the height range of the target that the sensor can detect, which in turn affects the performance of LiDAR in various application scenarios. Therefore, accurately and stably detecting the pitch angle of LiDAR has become a crucial technical challenge.
[0003] However, the currently commonly used pitch angle detection method mainly relies on the upper and lower limits of the target for image spot recognition. The principle of this method is to determine the pitch angle of the laser radar by identifying the position of the light spot formed by the LED light source or other light source set on the target. However, in actual applications, due to the possible deviation of the target from the horizontal plane, the target plane often cannot achieve a completely vertical relationship with the laser emitted by the laser radar. This deviation will cause the position of the light spot on the target to shift, thereby affecting the measurement accuracy of the pitch angle; at the same time, when setting the upper and lower limits (usually LED lights) on the target, there may be an inclination between the upper and lower limits due to inaccurate installation or calibration, and the completely horizontal direction cannot be maintained. This inclination will also cause the position of the light spot to shift, thereby affecting the measurement accuracy of the pitch angle. Summary of the invention
[0004] The present invention provides a method and device for detecting the pitch angle of a laser radar based on a two-dimensional code. By setting a target with a two-dimensional code, the laser light emitted by the laser radar transmitting end is emitted to the two-dimensional code, and the target surface image parameters and the two-dimensional code image parameters, as well as the position parameters of the laser radar and the target target are collected, so that the pitch angle of the laser radar can be accurately measured and calculated. At the same time, the position of the two-dimensional code on the target target can be changed to adapt to different measurement needs, thereby enhancing the measurement flexibility, and the detection speed is fast, the operation is convenient and more accurate.
[0005] A method for detecting a pitch angle of a laser radar based on a two-dimensional code comprises the following steps:
[0006] One or more target targets with two-dimensional codes are set based on the laser radar, and the target targets are set in front of the laser radar transmitting end;
[0007] Collecting a target surface image of the target and a two-dimensional code image of the two-dimensional code; the target surface image includes a light spot generated by the laser radar;
[0008] Based on the target surface image parameters and the two-dimensional code image parameters, the pitch angle of the laser radar is calculated in combination with the position parameters of the laser radar and the target.
[0009] By setting a target with a QR code, the laser light emitted by the laser radar transmitting end is emitted to the QR code, and the target surface image parameters and the QR code image parameters, as well as the position parameters of the laser radar and the target target are collected, so that the pitch angle of the laser radar can be accurately measured and calculated. At the same time, the position of the QR code on the target can be changed to adapt to different measurement needs, thereby enhancing measurement flexibility, fast detection speed, convenient operation and more accuracy.
[0010] Furthermore, the target surface image includes:
[0011] Laser line spot, at this time it is determined that the laser radar is in a rotating form;
[0012] Or a circular spot, in which case the laser radar is judged to be in single-point form.
[0013] The different forms of light spots on the target surface image are used to determine the motion form of the laser radar, and then to obtain the target surface image parameters in different forms.
[0014] Furthermore, when the target surface image is a laser line spot, the target surface image parameters are the pixel coordinates of the laser line spot, which specifically include:
[0015] Based on the acquired laser line spot, preprocessing is performed on the image;
[0016] The Hough transform function is used to detect straight lines, combining length and angle to identify the pixel position of the laser line spot and obtain the pixel coordinates of the laser line spot. .
[0017] When the target surface image is determined to be a horizontal laser line spot, the Hough transform function is used to detect the straight line method to identify the laser line spot, reduce interference, and accurately calculate the pixel coordinates of the laser line spot to obtain the target surface image parameters.
[0018] Furthermore, when the target surface image is a circular spot, the target surface image parameters are the pixel coordinates of the circular spot, which specifically include:
[0019] Based on the obtained circular spot light, preprocessing is performed on the image;
[0020] The contour detection method is used to find the contour of the pre-processed dot spot image;
[0021] The polygonal approximation algorithm is used to extract the image contour of each circular spot;
[0022] Filter each acquired contour area, and calculate the center point coordinates after filtering to obtain the pixel coordinates of the circular spot. .
[0023] When the target surface image is determined to be a circular spot, the contour detection method is used to search and the polygonal approximation algorithm is used to extract the spot contour, which can reduce external interference, accurately calculate the pixel coordinates of the circular spot, and obtain the target surface image parameters.
[0024] Furthermore, the two-dimensional code image parameter includes an actual distance corresponding to the two-dimensional code image pixel, and the determination process specifically includes the following steps:
[0025] Preprocessing the collected two-dimensional code image to obtain the angle, width and height of the two-dimensional code image;
[0026] Based on the angle of the two-dimensional code image, the two-dimensional code image is subjected to rotation correction conversion to obtain the curvature of the two-dimensional code image;
[0027] Calculating the actual distance corresponding to the pixels of the two-dimensional code image;
[0028] ;
[0029] In the formula, Indicates the actual distance corresponding to the pixels of the QR code image; Indicates the actual width of the QR code image; Indicates the width of the QR code image itself; Represents the arc of the QR code image, that is , Indicates the angle of the QR code image; represents the cosine value function; represents the sine-valued function; represents the absolute value function.
[0030] The actual distance corresponding to the pixels of the two-dimensional code image is calculated to eliminate the influence of the target tilt.
[0031] Furthermore, the determination of the position parameters of the laser radar and the target includes:
[0032] The actual distance between the laser radar and the target ;
[0033] The vertical height distance between the laser radar sensor and the target compared to the ground .
[0034] Furthermore, the process of calculating the pitch angle of the laser radar includes:
[0035] ;
[0036] In the formula, Indicates the elevation angle of the laser radar; Indicates the actual height of the laser emitting end relative to the horizontal line, that is, , Represents the pixel coordinates of the laser line spot , or pixel coordinates of the dot spot .
[0037] A device for detecting a pitch angle of a laser radar based on a two-dimensional code, comprising:
[0038] A target setting module, which is used to set one or more target targets with two-dimensional codes based on the laser radar, and the target targets are set in front of the laser radar transmitting end;
[0039] An image data acquisition module, which is used to collect the target surface image of the target and the two-dimensional code image of the two-dimensional code; the target surface image includes the light spot generated by the laser radar;
[0040] The pitch angle calculation module is used to calculate the pitch angle of the laser radar based on the target surface image parameters and the two-dimensional code image parameters in combination with the position parameters of the laser radar and the target.
[0041] An electronic device, comprising:
[0042] processor;
[0043] a memory for storing instructions executable by the processor;
[0044] The processor is used to read the executable instructions from the memory and execute the executable instructions to implement the above method steps.
[0045] A computer-readable storage medium stores a computer program, wherein the computer program is used to execute the above method steps.
[0046] The beneficial effects of the present invention are:
[0047] The present invention sets a target with a two-dimensional code so that the laser light emitted by the laser radar transmitting end is emitted to the two-dimensional code, and collects the target surface image parameters and the two-dimensional code image parameters, as well as the position parameters of the laser radar and the target target, so as to accurately measure and calculate the pitch angle of the laser radar. At the same time, the position of the two-dimensional code on the target target can be changed to adapt to different measurement requirements, thereby enhancing the measurement flexibility, fast detection speed, convenient operation and more accuracy. The different forms of the light spot on the target surface image can be used to determine the movement form of the laser radar, so as to facilitate the target surface image parameters under different forms. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 is a flow chart of the present invention;
[0049] Figure 2 is a flow chart of the detection method of Example 2;
[0050] Figure 3 It is the structural diagram of the system;
[0051] Figure 4 It is a schematic diagram of the structure of the target module;
[0052] Figure 5 A schematic diagram of the structure of a computer device.
[0053] Reference numerals:
[0054] 1. Target; 2. QR code image; 3. LiDAR; 4. Memory; 5. Processor. DETAILED DESCRIPTION
[0055] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0056] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein can be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number of aspects described herein can be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein can be used to implement this device and / or practice this method.
[0057] In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples, and a person of ordinary skill in the art can understand the specific meanings of the above terms in this application under specific circumstances.
[0058] Example 1
[0059] Figure 1 The method is a method for detecting the pitch angle of a laser radar based on a two-dimensional code. By setting a target 1 with a two-dimensional code 2, the laser light emitted by the transmitting end of the laser radar 3 is emitted to the two-dimensional code 2, and the target surface image parameters and the two-dimensional code image parameters, as well as the position parameters of the laser radar 3 and the target 1 are collected, so that the pitch angle of the laser radar 3 can be accurately measured and calculated. At the same time, the position of the two-dimensional code 2 on the target 1 can be changed to adapt to different measurement requirements, thereby enhancing the measurement flexibility, and the detection speed is fast, the operation is convenient and more accurate. Specifically, the following steps are included:
[0060] One or more target targets 1 with a two-dimensional code 2 are set based on the laser radar 3, and the target target 1 is set in front of the transmitting end of the laser radar 3;
[0061] Collecting a target surface image of the target 1 and a two-dimensional code image of the two-dimensional code 2; the target surface image includes a light spot generated by the laser radar 1;
[0062] The target surface image includes:
[0063] Laser line spot, at this time it is determined that the laser radar 3 is in a rotating form;
[0064] Or a circular spot, in which case the laser radar 3 is determined to be in single-point form.
[0065] The different forms of the light spots on the target surface image are used to determine the movement form of the laser radar 3, and then to determine the target surface image parameters in different forms.
[0066] Based on the target surface image parameters and the two-dimensional code image parameters, the pitch angle of the laser radar 3 is calculated in combination with the position parameters of the laser radar 3 and the target 1.
[0067] Specifically, the target image parameters are the pixel coordinates of the light spot , including the pixel coordinates of the laser line spot and the pixel coordinates of the dot spot ;
[0068] The pixel coordinates of the laser line spot are target surface image parameters when the target surface image is the laser line spot, and the determination process includes:
[0069] Based on the acquired laser line spot, preprocessing is performed on the image;
[0070] The Hough transform function is used to detect straight lines, combining length and angle to identify the pixel position of the laser line spot and obtain the pixel coordinates of the laser line spot. .
[0071] That is, the line segments of the laser spot are identified by the Hough transform function detection straight line method, and the starting point coordinates of each line segment are obtained. and the end point coordinates , combined with the line segment angle and length to filter and screen more accurately determine the laser line spot line segment, and obtain the pixel coordinates of the laser line spot , its calculation expression is:
[0072] .
[0073] The pixel coordinates of the circular spot are target surface image parameters when the target surface image is a circular spot, and the determination process includes:
[0074] Based on the obtained circular spot light, preprocessing is performed on the image;
[0075] The contour detection method is used to find the contour of the pre-processed dot spot image;
[0076] The polygonal approximation algorithm is used to extract the image contour of each circular spot;
[0077] Filter each acquired contour area, and calculate the center point coordinates after filtering to obtain the pixel coordinates of the circular spot. .
[0078] That is, after identifying the contour of the dot light spot image, the moment of the contour of the dot light spot image is calculated using the moment function to obtain the center coordinates of the contour , get the pixel coordinates of the dot spot , its calculation expression is:
[0079] .
[0080] In this embodiment, the preprocessing process of the laser line spot or the circular spot includes grayscale processing, Gaussian blur processing, and threshold processing.
[0081] Specifically, the QR code image parameters include the actual distance corresponding to the pixels of the QR code image , the determination process specifically includes the following steps:
[0082] Preprocess the collected two-dimensional code image to obtain the angle, actual width, and self-width of the two-dimensional code image;
[0083] Based on the angle of the two-dimensional code image, the two-dimensional code image is subjected to rotation correction conversion to obtain the arc of the two-dimensional code image;
[0084] Calculate the actual distance corresponding to the pixels of the QR code image;
[0085] ;
[0086] In the formula, Indicates the actual distance corresponding to the pixels of the QR code image; Indicates the actual width of the QR code image, that is, the length of the QR code border compared to the horizontal line after the QR code image is tilted when the QR code image is not completely horizontal; Indicates the width of the QR code image itself, that is, the length of the border of the QR code image itself; Represents the arc of the QR code image, that is , Indicates the angle of the QR code image; represents the cosine value function; represents the sine-valued function; represents the absolute value function.
[0087] Specifically, the determination of the position parameters of the laser radar 3 and the target 1 includes:
[0088] The actual distance between the laser radar 3 and the target 1 ;
[0089] Vertical height distance between the laser radar sensor and target 1 compared to the ground .
[0090] Furthermore, the process of calculating the pitch angle of the laser radar includes:
[0091] ;
[0092] In the formula, Indicates the elevation angle of the laser radar; Indicates the actual height of the laser emitting end relative to the horizontal line, that is, , Represents the pixel coordinates of the laser line spot , or pixel coordinates of the dot spot .
[0093] Example 2
[0094] like Figure 2 As shown, this embodiment provides a laser radar pitch angle detection method based on a two-dimensional code, which includes the following steps:
[0095] S1: One or more target targets 1 with a two-dimensional code 2 are set based on the laser radar 3, and the target target 1 is set in front of the transmitting end of the laser radar 3;
[0096] S2: Start the laser radar 3 to collect the target surface image of the target 1 and the two-dimensional code image of the two-dimensional code 2; the target surface image includes the light spot generated by the laser radar 3;
[0097] S3: Based on the target surface image parameters and the two-dimensional code image parameters, the pitch angle of the laser radar 3 is calculated in combination with the position parameters of the laser radar 3 and the target 1;
[0098] S31: Obtain target surface image parameters;
[0099] S311: When the target surface image is a laser line spot, after preprocessing the image, the Hough transform function is used to detect the straight line method, and the length and angle are combined to identify the pixel position of the laser line spot, and the pixel coordinates of the laser line spot are obtained;
[0100] S312: When the target surface image is a circular spot, after preprocessing the image, a contour detection method is used to search and a polygon approximation algorithm is used to extract the contour of each circular spot image, and after filtering, the center point coordinates are calculated to obtain the pixel coordinates of the circular spot;
[0101] S32: Obtaining QR code image parameters;
[0102] S321: pre-processing the acquired two-dimensional code image to obtain the angle, actual width, and self width of the two-dimensional code image;
[0103] S322: performing rotation correction conversion on the two-dimensional code image based on the angle of the two-dimensional code image to obtain the curvature of the two-dimensional code image;
[0104] S323: Calculate the actual distance corresponding to the pixels of the two-dimensional code image to obtain the two-dimensional code image parameters;
[0105] S33: Obtaining position parameters of the laser radar 3 and the target 1;
[0106] S331: Obtaining the actual distance between the laser radar 3 and the target 1;
[0107] S332: Obtaining the vertical height distance between the laser radar sensor and the target 1 compared to the ground;
[0108] S34: Calculate the pitch angle of the laser radar 3 by combining the target surface image parameters, the two-dimensional code image parameters, and the position parameters of the laser radar 3 and the target 1.
[0109] Example 3
[0110] like Figure 3As shown, this embodiment provides a device for a laser radar pitch angle detection method based on a two-dimensional code, which includes:
[0111] Target setting module, such as Figure 4 As shown, it is used to set one or more target targets 1 with a two-dimensional code 2 based on a laser radar 3, and the target target 1 is set in front of the transmitting end of the laser radar 3;
[0112] In this embodiment, the heights of the two-dimensional codes 2 on the multiple targets 1 are consistent, and the two-dimensional codes 2 are arranged as parallel to the horizontal plane as possible when attached to the target 1; and a level meter is used to determine the horizontal plane.
[0113] An image data acquisition module, which is used to collect the target surface image of the target 1 and the two-dimensional code image of the two-dimensional code 2; the target surface image includes the light spot generated by the laser radar 3;
[0114] The two-dimensional code image and the target surface image of the two-dimensional code 2 are collected by a laser radar sensor arranged on the laser radar 3 , and the laser radar sensor is at the same horizontal height as the target 1 .
[0115] The pitch angle calculation module is used to calculate the pitch angle of the laser radar 3 based on the target surface image parameters and the two-dimensional code image parameters in combination with the position parameters of the laser radar 3 and the target 1.
[0116] Example 4
[0117] Based on the same technical concept, the embodiment of the present application also provides a computer device, including a memory 4 and a processor 5, such as Figure 5 As shown, the memory 4 stores a computer program, and the processor 5 implements any of the above-mentioned methods when executing the computer program.
[0118] The memory 4 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 4 may be an internal storage unit of the detection system, such as a hard disk. In other embodiments, the memory 4 may also be an external storage device of the detection system, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card, etc. Further, the memory 4 may also include both an internal storage unit of the detection system and an external storage device. The memory 4 may not only be used to store application software and various types of data installed in the detection system, such as the code of the detection system program, etc., but may also be used to temporarily store data that has been output or is to be output.
[0119] In some embodiments, the processor 5 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chip, and is used to run program codes stored in the memory 4 or process data, such as executing a detection system program.
[0120] The disclosed embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to perform the steps of the method described in the above method embodiment. The storage medium can be a volatile or non-volatile computer-readable storage medium.
[0121] The computer program product of the application page content refresh method provided in the disclosed embodiment of the present invention includes a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the steps of the method described in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.
[0122] The disclosed embodiment of the present invention further provides a computer program, which implements any one of the methods of the aforementioned embodiments when executed by a processor. The computer program product can be implemented in hardware, software, or a combination thereof. In an optional embodiment, the computer program product is specifically embodied as a computer storage medium, and in another optional embodiment, the computer program product is specifically embodied as a software product, such as a software development kit (SDK), etc.
[0123] It can be understood that the same or similar parts of the above embodiments can be referenced to each other, and the contents not described in detail in some embodiments can refer to the same or similar contents in other embodiments.
[0124] It should be noted that, in the description of the present invention, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, the meaning of "plurality" refers to at least two.
[0125] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.
[0126] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0127] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0128] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0129] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.
[0130] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0131] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A laser radar pitch angle detection method based on a two-dimensional code, characterized in that: The steps include: One or more target targets with two-dimensional codes are set based on the laser radar, and the target targets are set in front of the laser radar transmitting end; Collecting a target surface image of the target and a two-dimensional code image of the two-dimensional code; the target surface image includes a light spot generated by the laser radar; Based on the target surface image parameters and the two-dimensional code image parameters, the pitch angle of the laser radar is calculated in combination with the position parameters of the laser radar and the target; The target surface image includes: Laser line spot, at this time it is determined that the laser radar is in a rotating form; Or a dot light spot, in which case the laser radar is judged to be in single-point form; When the target surface image is a laser line spot, the target surface image parameters are the pixel coordinates of the laser line spot, which specifically include: Based on the acquired laser line spot, preprocessing is performed on the image; The Hough transform function is used to detect straight lines, combining length and angle to identify the pixel position of the laser line spot and obtain the pixel coordinates of the laser line spot. ; When the target surface image is a circular spot, the target surface image parameters are the pixel coordinates of the circular spot, which specifically include: Based on the obtained circular spot light, preprocessing is performed on the image; The contour detection method is used to find the contour of the pre-processed dot spot image; The polygonal approximation algorithm is used to extract the image contour of each circular spot; Filter each acquired contour area, and calculate the center point coordinates after filtering to obtain the pixel coordinates of the circular spot. ; The two-dimensional code image parameter includes the actual distance corresponding to the two-dimensional code image pixel, and the determination process thereof specifically includes the following steps: Preprocessing the collected two-dimensional code image to obtain the angle, width and height of the two-dimensional code image; Based on the angle of the two-dimensional code image, the two-dimensional code image is subjected to rotation correction conversion to obtain the curvature of the two-dimensional code image; Calculating the actual distance corresponding to the pixels of the two-dimensional code image; ; In the formula, Indicates the actual distance corresponding to the pixels of the QR code image; Indicates the actual height of the QR code image; Indicates the width of the QR code image itself; Represents the arc of the QR code image, that is , Indicates the angle of the QR code image; represents the cosine value function; represents the sine-valued function; represents the absolute value function; The determination of the position parameters of the laser radar and the target includes: The actual distance between the laser radar and the target ; The vertical height distance between the laser radar and the target compared to the ground ; The process of calculating the pitch angle of the laser radar includes: ; In the formula, Indicates the elevation angle of the laser radar; Indicates the actual height of the laser emitting end relative to the horizontal line, that is, , Represents the pixel coordinates of the laser line spot , or pixel coordinates of the dot spot .
2. A device for the laser radar pitch angle detection method based on a two-dimensional code as claimed in claim 1, characterized in that: include: A target setting module, which is used to set one or more target targets with two-dimensional codes based on the laser radar, and the target targets are set in front of the laser radar transmitting end; An image data acquisition module, which is used to collect the target surface image of the target and the two-dimensional code image of the two-dimensional code; the target surface image includes the light spot generated by the laser radar; The pitch angle calculation module is used to calculate the pitch angle of the laser radar based on the target surface image parameters and the two-dimensional code image parameters in combination with the position parameters of the laser radar and the target.
3. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the executable instructions to implement the method of claim 1.
4. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is used to execute the method according to claim 1.
