Method, device, system and electronic equipment for posture measurement based on heterogeneous data
By combining lidar and image acquisition devices to obtain heterogeneous data and perform coordinate system conversion, the limitations of the detection range and accuracy of the non-contact sensing system are solved, efficient pose measurement is achieved, and the science of aircraft design and control is improved. accuracy and accuracy.
Patent Information
- Application Number
- CN202011296352.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-18
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2040-11-18
AI Technical Summary
Existing non-contact sensing systems, such as lidar and visual measurement systems, each have limitations in detection range and accuracy, and cannot effectively balance large-scale detection and high-precision posture measurement.
Using a pose measurement method based on heterogeneous data, the first pose and spatial position information of the target object is obtained through lidar, and when the target object enters the acquisition range of the image acquisition device, the second pose is obtained in combination with the image acquisition device. The transformation matrix is used to unify the coordinate system and reduce the calculation amount of the image acquisition device.
It takes into account the detection range of the lidar and the pose accuracy of the image acquisition device, reduces the calculation amount of the image acquisition device, and improves the stability and endurance of the system.
Smart Images

Figure CN112379390B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and specifically, to a method, device, system and electronic equipment for posture measurement based on heterogeneous data. Background Art
[0002] During the flight test of an aircraft, the position and attitude of the aircraft in the air reflect the scientificity and rationality of the aircraft design and the accuracy of flight control to a certain extent. Therefore, by capturing the position and attitude information of the aircraft in the air through a non-contact sensing system, the performance of the aircraft itself can be effectively verified, and deficiencies in the aircraft design can be discovered.
[0003] The current non-contact sensing systems mainly include laser radar and visual measurement systems. Among them, laser radar can detect a larger range, but there is a certain upper limit to the detection accuracy of posture. The visual measurement system can capture high-precision posture, but its detection range is small due to the limitation of the detection principle.
[0004] Therefore, both LiDAR and vision measurement systems have their own limitations. Summary of the invention
[0005] In a first aspect, an embodiment of the present application provides a posture measurement method based on heterogeneous data, which is applied to an electronic device, wherein the electronic device is communicatively connected with an image acquisition device and a laser radar, and the method includes:
[0006] Acquire the first position and spatial position information of the target object by using the laser radar;
[0007] determining, according to the spatial position information, whether the target object moves into an image acquisition range of the image acquisition device;
[0008] If the target object moves into the image acquisition range of the image acquisition device, the second posture of the target object is obtained based on the spatial position information of the target object obtained by the laser radar and the image acquired by the image acquisition device.
[0009] In a possible implementation, the first posture is located in a first base coordinate system, and the second posture is located in a second base coordinate system; the method further includes:
[0010] Obtain a first transformation matrix and a second transformation matrix, wherein the first transformation matrix represents a posture transformation relationship between the first base coordinate system and a third base coordinate system, and the second transformation matrix represents a posture transformation relationship between the second base coordinate system and the third base coordinate system;
[0011] Acquire the first posture or the second posture;
[0012] The first posture is processed according to the first transformation matrix to obtain a first transformed posture of the target object in a third base coordinate system, or the second posture is processed according to the second transformation matrix to obtain a second transformed posture of the target object in the third base coordinate system.
[0013] In a possible implementation, the step of acquiring the first conversion matrix and the second conversion matrix includes:
[0014] Acquire a first test pose in the first base coordinate system, a second test pose in the second base coordinate system, and a third test pose in the third base coordinate system of the same stereoscopic calibration object;
[0015] Obtaining the first transformation matrix according to the first test posture and the third test posture;
[0016] The second transformation matrix is obtained according to the second test pose and the third test pose.
[0017] In a possible implementation, the image acquisition device is a binocular vision system.
[0018] In a possible implementation, the surface of the target object is provided with marking points, and the step of obtaining the second posture of the target object according to the spatial position information of the target object acquired by the laser radar and the image acquired by the image acquisition device includes:
[0019] Determine the target object from the image captured by the image acquisition device according to the spatial position information;
[0020] Identify the target object and obtain the coordinates of the marking point in a preset coordinate system, wherein the preset coordinate system is established based on the marking point;
[0021] The coordinates of the marking point in the preset coordinate system are processed by a light speed adjustment algorithm to obtain the second posture.
[0022] In a possible implementation, before acquiring the first pose and spatial position information of the target object by the laser radar, the method further includes:
[0023] Acquire point cloud data through the laser radar;
[0024] Processing the point cloud data by a grid map method to obtain a grid map plane image of the point cloud data;
[0025] The grid map plane image is traversed according to the shape and size of the target object to determine whether the target object is detected.
[0026] In a second aspect, a posture measurement device based on heterogeneous data and based on heterogeneous numbers, the posture measurement device based on heterogeneous data and based on heterogeneous numbers comprising:
[0027] A data acquisition module, used to acquire the first position and spatial position information of the target object through the laser radar;
[0028] A data processing module, used for determining whether the target object moves into the image acquisition range of the image acquisition device according to the spatial position information;
[0029] The data acquisition module is also used to obtain the second posture of the target object based on the spatial position information of the target object obtained by the laser radar and the image captured by the image acquisition device if the target object moves into the image acquisition range of the image acquisition device.
[0030] In a third aspect, an embodiment of the present application provides a posture measurement system based on heterogeneous data, wherein the posture measurement system based on heterogeneous data includes an electronic device, an image acquisition device, and a laser mine;
[0031] The laser radar sends the collected point cloud data to the electronic device;
[0032] The electronic device obtains the first position and spatial position information of the target object according to the point cloud data; and determines whether the target object moves into the image acquisition range of the image acquisition device according to the spatial position information;
[0033] If the target object moves into the image acquisition range of the image acquisition device, the image acquisition device sends the acquired image to the electronic device;
[0034] The electronic device obtains the second posture of the target object based on the spatial position information of the target object obtained by the laser radar and the image captured by the image acquisition device.
[0035] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores machine executable instructions that can be executed by the processor, and when the machine executable instructions are executed by the processor, the posture measurement method based on heterogeneous data is implemented.
[0036] In a fifth aspect, an embodiment of the present application provides a storage medium, wherein the storage medium stores a computer program, and when the computer program is processed and executed, the posture measurement method based on heterogeneous data is implemented.
[0037] Compared with the prior art, this application has the following beneficial effects:
[0038] The embodiments of the present application provide a method, device, system and electronic device for posture measurement based on heterogeneous data. The electronic device obtains the first posture and spatial position information of the target object by acquiring a laser radar, or when the target object moves to the image acquisition range of the image acquisition device, based on the spatial position information detected by the laser radar, obtains the second posture of the target object from the image acquired by the image acquisition device. Therefore, while taking into account the detection range of the laser radar and the detection accuracy of the posture by the image acquisition device, the spatial position information detected by the laser radar is used to reduce the amount of calculation on the image acquired by the image acquisition device. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0041] Figure 2 A flowchart of the steps of the posture measurement method based on heterogeneous data provided in an embodiment of the present application;
[0042] Figure 3 A schematic diagram of a scenario for obtaining a transformation matrix provided in an embodiment of the present application;
[0043] Figure 4 A schematic diagram of a scene for capturing the posture of an aircraft provided in an embodiment of the present application;
[0044] Figure 5-Figure 7 A schematic diagram of a grid map plane image provided in an embodiment of the present application;
[0045] Figure 8 A schematic diagram of marking points provided in an embodiment of the present application;
[0046] Fig. 9 A schematic diagram of the structure of a posture measurement device based on heterogeneous numbers provided in an embodiment of the present application.
[0047] Icons: 110-posture measurement device based on heterogeneous data; 120-memory; 130-processor; 500-laser radar; 600-image acquisition device; 700-stereoscopic calibration object; 7001-flat plate; 2000-detection range of the laser radar; 3000-image acquisition range of the image acquisition device; 900-aircraft; 4000-grid map plane image; 5000-marking point; 1101-data acquisition module; 1102-data processing module. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0049] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0050] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0051] In the description of the present application, it should be noted that the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0052] In the related technology, the current non-contact sensing system mainly includes laser radar and visual measurement system. Among them, laser radar can detect a larger range, but the captured pose accuracy is low. The visual measurement system can capture a higher-precision pose, but due to the limitation of the detection principle, its detection range is small. Therefore, both laser radar and visual measurement systems have their own limitations.
[0053] In view of this, an embodiment of the present application provides a posture measurement method based on heterogeneous data, which is applied to an electronic device, wherein the electronic device is connected to an image acquisition device and a laser radar. The image acquisition device is used to capture a second posture of a target object in a second base coordinate system, and the laser radar is used to capture a first posture of the target object in a first base coordinate system.
[0054] It is worth noting that although the detection range of the traditional radar and the position detection accuracy of the target object can meet the requirements, considering the high cost of the traditional radar, certain restrictions on the material of the target object (that is, some materials can absorb the electromagnetic waves of the radar), and the poor detection accuracy of the position and posture of the target object, a laser radar is used in the embodiment of the present application. Although the laser radar can meet the requirements of detecting the position and posture of the target object within a certain accuracy range, there is a certain upper limit to the position and posture detection accuracy. Therefore, in the example of the present application, the image acquisition device and the laser radar are combined to take into account the detection range of the laser radar and the detection accuracy of the image acquisition device to the position and posture.
[0055] It should be understood that for this electronic device, please refer to Figure 1 The electronic device also includes a posture measurement device 110 based on heterogeneous data, a memory 120 and a processor 130.
[0056] Among them, the memory 120, the processor 130 and other components are directly or indirectly connected to each other in communication to realize data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines. The posture measurement device 110 based on heterogeneous data includes at least one software function module that can be stored in the memory 120 in the form of software or firmware or solidified in the operating system (OS) of the electronic device. The processor 130 is used to execute the executable modules stored in the memory 120, such as the software function modules and computer programs included in the posture measurement device 110 based on heterogeneous data based on heterogeneous numbers. Among them, when the computer executable instructions corresponding to the posture measurement device based on heterogeneous numbers are executed by the processor, the above-mentioned posture measurement method based on heterogeneous data is realized.
[0057] The memory 120 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electric erasable programmable read-only memory (EEPROM), etc. The memory 120 is used to store programs, and the processor 130 executes the programs after receiving the execution instruction.
[0058] The processor 130 may be an integrated circuit chip having the ability to process signals. The above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0059] For the above-mentioned pose measurement method based on heterogeneous data, please refer to Figure 2 , which is a step flow chart of the target object posture capture method provided in an embodiment of the present application, and the method including each step will be described in detail below.
[0060] Step S103, obtaining the first position and spatial position information of the target object through the laser radar.
[0061] Among them, laser radar, as a common target detection device, can be used to detect the posture information and spatial position information of the target object.
[0062] Step S104: judging whether the target object moves into the image acquisition range of the image acquisition device according to the spatial position information.
[0063] In the embodiment of the present application, considering that the detection range of the image acquisition device is affected by factors such as the image acquisition range of the image acquisition device itself, weather, and environment, there is a certain gap between the detection range of the image acquisition device and the detection range of the laser radar. Therefore, when the target object is far away, the electronic device uses the posture detected by the laser radar as the first posture of the target object.
[0064] Furthermore, based on the image acquisition range of the image acquisition device, when the electronic device detects that the target object enters the image acquisition range of the image acquisition device according to the spatial position information of the target object, it switches to acquiring the second posture of the target object through the image acquisition device.
[0065] Step S105, if the target object moves into the image acquisition range of the image acquisition device, the second posture of the target object is obtained based on the spatial position information of the target object obtained by the laser radar and the image acquired by the image acquisition device.
[0066] In an embodiment of the present application, an image acquisition device and a laser radar are combined, and when the second posture of the target object is obtained through the image acquisition device, the position of the target object in the image is first determined through the spatial position information detected by the laser radar. Therefore, the electronic device does not need to perform operations such as image recognition on the image captured by the image device alone, and can accurately determine the target object, thereby reducing the amount of calculation when obtaining the second posture of the target object through the image acquisition device.
[0067] Therefore, through the above-mentioned posture measurement method based on heterogeneous data, the electronic device obtains the first posture and spatial position information of the target object by acquiring the laser radar, or when the target object moves to the image acquisition range of the image acquisition device, based on the spatial position information detected by the laser radar, the second posture of the target object is obtained from the image acquired by the image acquisition device. Therefore, while taking into account the detection range of the laser radar and the detection accuracy of the posture by the image acquisition device, the spatial position information detected by the laser radar is used to reduce the amount of calculation of the image acquired by the image acquisition device.
[0068] In a possible implementation, it is worth noting that when performing operations such as image recognition on the images captured by the imaging device, a large amount of computing resources are consumed. Considering that when the electronic device is used for field operations, reducing the amount of computing means reducing the power consumption of the electronic device, therefore, when the second posture of the target object is obtained by the image acquisition device, the position of the target object in the image is first determined by the spatial position information detected by the laser radar, which can also improve the battery life of the electronic device when working in the field.
[0069] In order to take into account the advantages of the laser radar with a large detection range and the image acquisition device with a high posture detection accuracy, the embodiment of the present application connects the electronic device to the laser radar and the image acquisition device for communication. In order to maintain the stability of the system, the laser radar and the image acquisition device are fixed on the same carrier so that the relative position between the two remains fixed.
[0070] Among them, since the laser radar and the image acquisition device are set at different positions of the electronic device, the first pose of the target object detected by the laser radar and the second pose of the flight detected by the image acquisition device are located in different base coordinate systems. In order to facilitate subsequent analysis and processing, it is necessary to unify the first pose and the second pose into the same base coordinate system, that is, the third base coordinate system.
[0071] For the third base coordinate system, the base coordinate system used by the laser radar can be selected, and the base coordinate system used by the image acquisition device can also be selected. Of course, other base coordinate systems can also be selected, and the embodiment of the present application does not make too many restrictions.
[0072] Step S106, obtaining a first transformation matrix and a second transformation matrix, wherein the first transformation matrix represents the posture transformation relationship between the first base coordinate system and the third base coordinate system, and the second transformation matrix represents the posture transformation relationship between the second base coordinate system and the third base coordinate system.
[0073] Step S107, obtaining the first pose or the second pose.
[0074] Step S108, processing the first pose according to the first transformation matrix to obtain a first transformed pose of the target object in the third base coordinate system, or processing the second pose according to the second transformation matrix to obtain a second transformed pose of the target object in the third base coordinate system.
[0075] Therefore, through the above steps of the posture measurement method based on heterogeneous data, by acquiring the first posture of the target object captured by the laser radar or the second posture of the target object captured by the image acquisition device, the detection range of the laser radar and the detection accuracy of the posture by the image acquisition device are taken into account. And the first posture or the second posture is converted to the same base coordinate system through the conversion matrix to facilitate subsequent data analysis and processing.
[0076] In view of the fact that the laser radar and the image acquisition device are arranged at different positions of the same carrier, in order to facilitate the subsequent analysis of the target object's posture data (that is, the posture reflects the scientificity and rationality of the target object design and the accuracy of flight control to a certain extent), it is necessary to obtain the first transformation matrix and the second transformation matrix.
[0077] As a possible implementation method, the electronic device obtains a first test pose in a first base coordinate system, a second test pose in a second base coordinate system, and a third test pose in a third base coordinate system of the same stereoscopic calibration object; obtains a first transformation matrix based on the first test pose and the third test pose; and obtains a second transformation matrix based on the second test pose and the third test pose.
[0078] Please refer to Figure 3 , which is a schematic diagram of the posture conversion relationship provided in the embodiment of the present application. Among them, the first base coordinate system where the laser radar is located is selected as the third base coordinate system, that is, the first base coordinate system and the third base coordinate system are the same base coordinate system. Therefore, the first posture obtained by the laser radar 500 is the first converted posture in the third base coordinate system.
[0079] like Figure 3As shown, the stereo calibration object 700 is placed in the common field of view of the laser radar 500 and the image acquisition device 600 (i.e., in the common detection area). Since the first base coordinate system where the laser radar is located is selected as the third base coordinate system, that is, the first base coordinate system and the third base coordinate system are the same base coordinate system, the position of the stereo calibration object 700 in the first base coordinate system detected by the electronic device through the laser radar 500 is the third test position of the stereo calibration object 700, which can be expressed as T 1 The second test pose of the stereo calibration object 700 detected by the electronic device through the image acquisition device 600 in the second base coordinate system is represented by T 2 , then the second transformation matrix T representing the posture transformation relationship between the second base coordinate system and the third base coordinate system 3 It can be expressed as:
[0080]
[0081] It is worth noting that in order to make the second test posture detected by the image acquisition device 600 and the first test posture detected by the laser radar 500 be the posture information of the stereo calibration object 700 at the same time, it is also necessary to synchronize the image acquisition device 600 and the laser radar 500 so that the image acquisition device 600 and the laser radar 500 can detect the posture of the stereo calibration object 700 at the same time.
[0082] Regarding the three-dimensional calibration object 700, please refer to Figure 3 As a possible implementation, the three-dimensional calibration object 700 includes three plates 7001 of different sizes and perpendicular to each other, and each plate 7001 is provided with squares of different colors at intervals on its surface. The different sizes of each plate 7001 are conducive to distinguishing each plate 7001 during identification. The squares of different colors arranged at intervals on each plate 7001 are conducive to stereoscopic visual identification.
[0083] In addition, it is considered that the image acquisition device 600 needs to be within a specific image acquisition range in order to achieve a higher posture detection accuracy.
[0084] Therefore, as an example of a possible target object, see Figure 4 The electronic device detects the aircraft 900 within the detection range 2000 of the laser radar through the laser radar 500, and determines whether the aircraft 900 enters the image acquisition range 3000 of the image acquisition device. If the aircraft 900 enters the image acquisition range 3000 of the image acquisition device, the electronic device obtains the second posture of the aircraft 900 in the second base coordinate system through the image acquisition device 600.
[0085] In the embodiment of the present application, the electronic device needs to determine the target object in space before obtaining the first pose and spatial position information of the target object. Therefore, before step S100, the pose measurement method based on heterogeneous data also includes:
[0086] Step S100, acquiring point cloud data through a laser radar.
[0087] Step S101, processing point cloud data by a grid map method to obtain a grid map plane image of the point cloud data.
[0088] Step S102, traversing the grid map plane image according to the shape and size of the target object to determine whether the target object is detected.
[0089] Taking aircraft 900 as an example, Figure 5 , Figure 6 as well as Figure 7 The grid map plane image shown in the figure is used to exemplify the above steps. When the electronic device detects the aircraft 900 through the laser radar 500, the point cloud data of the aircraft 900 is obtained, and the grid map plane image 4000 of the point cloud data is obtained by processing the point cloud data through the grid map method.
[0090] Since aircraft 900 of different appearances present different shapes in grid map plane image 4000, based on this principle, the electronic device traverses pixel units in grid map plane image 4000 according to the shape and size of the aircraft 900 to be detected, and determines whether the aircraft 900 is detected.
[0091] In addition, there may be patterns formed by other targets in the grid map plane image 4000 , and the electronic device may filter the patterns formed by other targets according to the distribution and grayscale value of the patterns in the grid map plane image 4000 .
[0092] It should be understood that the point cloud data obtained by the electronic device through the laser radar 500 is often extremely large in amount, and ordinary equipment cannot bear the amount of calculation of such a large amount of data; therefore, it is necessary to further simplify the obtained point cloud data. Common point cloud data simplification methods can be, but are not limited to, grid map method, feature map method and topological map method.
[0093] In the embodiment of the present application, when the target object enters the image acquisition range of the image acquisition device, the electronic device needs to obtain the second posture of the target object through the image acquired by the image acquisition device. It is worth noting that the plane image acquired by the monocular camera cannot be used to detect the posture of the aircraft 900. Therefore, in the embodiment of the present application, the image acquisition device 600 is a binocular vision system.
[0094] Taking aircraft 900 as an example, please refer to Figure 6 The surface of the aircraft 900 is provided with a marking point 5000, so the electronic device identifies the aircraft 900 through a binocular vision system and obtains the coordinates of the marking point 5000 in a preset coordinate system. The preset coordinate system is established based on the marking point 5000.
[0095] As a possible example of an embodiment of the present application, the electronic device identifies the marker points on the surface of the aircraft through a sub-pixel marker point extraction method, which specifically includes marker point ROI extraction, anisotropic diffusion filtering, edge extraction, and Zernike moment sub-pixel positioning.
[0096] Among them, the marker point ROI extraction is specifically used to effectively segment the image by binarization to obtain a candidate area of marker points with strong brightness, and then compare the marker point template with the candidate area to obtain the final marker point ROI area. In order to obtain accurate sub-pixel marker point positioning, it is necessary to further filter the marker point ROI area and perform edge extraction and other operations.
[0097] Anisotropic diffusion filtering is specifically used for smoothing noisy images. In general, different filters can be selected, such as Gaussian filtering, mean filtering, median filtering, etc. In the example of this application, a diffusion filter is used to treat the image as a material field. The grayscale value of each pixel in the image is equivalent to the concentration of the substance, and the smoothing of the image is equivalent to the diffusion between the substances. By selecting a suitable diffusion coefficient, the effect of increasing smoothing within the region or reducing smoothing between regions can be achieved, thereby removing image noise while reducing blurring of the edges.
[0098] Edge extraction is specifically used to first extract pixel-level edge points in the ROI image, and then find sub-pixel edge points near these coarse positioning points. Most pixel-level edge detection algorithms use the gradient information of the image for search. In the embodiment of the present application, the Sobel edge operator is used to extract the corresponding marking point edges.
[0099] Zernike moment sub-pixel positioning is specifically used for high positioning accuracy based on the Zernike moment method. Since the Zernike moment is an integral operator and has good noise resistance, the detection effect has obvious advantages. Assuming that the edge of the target image is a step model, the equation is listed according to the relationship between the moments before and after rotation, and the edge parameters are solved using the rotation invariance of the moment to achieve sub-pixel positioning.
[0100] Furthermore, the electronic device processes the coordinates of the marking point 5000 in the preset coordinate system through a light speed adjustment algorithm to obtain the first position of the aircraft 900 in the first base coordinate system.
[0101] To obtain the coordinates of the marker point 5000 in the preset coordinate system, please refer to Figure 8 The electronic device obtains the three-dimensional coordinates (P 1 , P 2 , P 3 , …P 4 ), and select three marked points (P i , P j , P o ) (or select the centroid of all the marked points and two additional marked points) to form a plane; select the marked point P o With P i The straight line formed is taken as the x-axis, and the plane passing through P o The normal vector of the point is used as the y axis, and the normal vector of the plane where x and y are located is used as the z axis to establish the preset coordinate system. Further, the electronic device obtains the coordinates of each marking point 5000 in the preset coordinate system according to the relative position relationship between the marking points 5000.
[0102] The embodiment of the present application also provides a posture measurement device 110 based on heterogeneous data. The posture measurement device 110 based on heterogeneous data includes at least one functional module that can be stored in the memory 120 in the form of software. Fig. 9 From the functional point of view, the posture measurement device 110 based on heterogeneous data may include:
[0103] The data acquisition module 1101 is used to acquire the first position and spatial position information of the target object through a laser radar.
[0104] In the embodiment of the present application, when the computer executable instructions corresponding to the data acquisition module 1101 are executed by the processor, Figure 2 For a detailed description of the data acquisition module 1101, please refer to the detailed description of step S103.
[0105] The data processing module 1102 is used to determine whether the target object moves into the image acquisition range of the image acquisition device according to the spatial position information.
[0106] The data acquisition module 1101 is also used to obtain a second posture of the target object according to the spatial position information and the image captured by the image acquisition device if the target object moves into the image acquisition range.
[0107] In the embodiment of the present application, when the computer executable instructions corresponding to the data processing module 1102 are executed by the processor, Figure 2For the detailed description of step S104 and step S105 in the data processing module 1102, please refer to the detailed description of step S104 and step S105.
[0108] The embodiment of the present application also provides a posture measurement system based on heterogeneous data, and a posture measurement method based on heterogeneous data includes an electronic device, an image acquisition device, and a laser mine;
[0109] The lidar sends the collected point cloud data to the electronic device.
[0110] The electronic device obtains the first position and spatial location information of the target object according to the point cloud data; and determines whether the target object moves into the image acquisition range of the image acquisition device according to the spatial location information.
[0111] If the target object moves into the image acquisition range, the image acquisition device sends the acquired image to the electronic device.
[0112] The electronic device obtains the second posture of the target object according to the spatial position information and the image captured by the image acquisition device.
[0113] An embodiment of the present application also provides an electronic device, which includes a memory 120 and a processor 130. The memory 120 stores machine executable instructions that can be executed by the processor 130. When the machine executable instructions are executed by the processor 130, a posture measurement method based on heterogeneous data is implemented.
[0114] An embodiment of the present application also provides a storage medium, which stores a computer program. When the computer program is processed and executed, a posture measurement method based on heterogeneous data is implemented.
[0115] In summary, the embodiments of the present application provide a method, device, system and electronic device for posture measurement based on heterogeneous data. The electronic device obtains the first posture and spatial position information of the target object by acquiring a laser radar, or when the target object moves to the image acquisition range of the image acquisition device, based on the spatial position information detected by the laser radar, the second posture of the target object is obtained from the image acquired by the image acquisition device. Therefore, while taking into account the detection range of the laser radar and the detection accuracy of the image acquisition device for posture, the spatial position information detected by the laser radar is used to reduce the amount of calculation on the image acquired by the image acquisition device.
[0116] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to the multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of boxes in the block diagram and / or the flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0117] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0118] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable 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 methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0119] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants 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 other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0120] The above are only various implementations 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 posture measurement method based on heterogeneous data, characterized in that: Applied to an electronic device, the electronic device is communicatively connected with an image acquisition device and a laser radar, and the method comprises: Acquire a first pose and spatial position information of the target object by using the laser radar, wherein the first pose is located in a first base coordinate system; determining, according to the spatial position information, whether the target object moves into an image acquisition range of the image acquisition device; If the target object moves into the image acquisition range of the image acquisition device, switching to acquiring a second posture of the target object through the image acquisition device, the step specifically includes: First, the position of the target object in the image is determined by the spatial position information detected by the laser radar, and a second posture of the target object is obtained from the image captured by the image acquisition device, wherein the second posture is located in a second base coordinate system; Obtain a first transformation matrix and a second transformation matrix, wherein the first transformation matrix represents a posture transformation relationship between the first base coordinate system and a third base coordinate system, and the second transformation matrix represents a posture transformation relationship between the second base coordinate system and the third base coordinate system; Acquire the first posture or the second posture; The first posture is processed according to the first transformation matrix to obtain a first transformed posture of the target object in a third base coordinate system, or the second posture is processed according to the second transformation matrix to obtain a second transformed posture of the target object in the third base coordinate system.
2. The method for measuring posture based on heterogeneous data according to claim 1, characterized in that: The step of obtaining the first conversion matrix and the second conversion matrix includes: Acquire a first test pose in the first base coordinate system, a second test pose in the second base coordinate system, and a third test pose in the third base coordinate system of the same stereoscopic calibration object; Obtaining the first transformation matrix according to the first test posture and the third test posture; The second transformation matrix is obtained according to the second test pose and the third test pose.
3. The method for measuring posture based on heterogeneous data according to claim 1, characterized in that: The image acquisition device is a binocular vision system.
4. The method for measuring posture based on heterogeneous data according to claim 1, characterized in that: The surface of the target object is provided with marking points, and the step of obtaining the second posture of the target object according to the spatial position information of the target object acquired by the laser radar and the image acquired by the image acquisition device comprises: Determine the target object from the image captured by the image acquisition device according to the spatial position information; Identify the target object and obtain the coordinates of the marking point in a preset coordinate system, wherein the preset coordinate system is established based on the marking point; The coordinates of the marking point in the preset coordinate system are processed by a light speed adjustment algorithm to obtain the second posture.
5. The method for measuring posture based on heterogeneous data according to claim 1, characterized in that: Before obtaining the first pose and spatial position information of the target object by the laser radar, the method further includes: Acquire point cloud data through the laser radar; Processing the point cloud data by a grid map method to obtain a grid map plane image of the point cloud data; The grid map plane image is traversed according to the shape and size of the target object to determine whether the target object is detected.
6. A posture measurement device based on heterogeneous data, characterized in that: The heterogeneous data-based position and posture measurement device comprises: A data acquisition module, used to acquire a first pose and spatial position information of a target object through a laser radar, wherein the first pose is located in a first base coordinate system; A data processing module, used for determining whether the target object moves into the image acquisition range of the image acquisition device according to the spatial position information; The data acquisition module is further configured to switch to acquiring a second posture of the target object through the image acquisition device if the target object moves into the image acquisition range of the image acquisition device. This step specifically includes: First, the position of the target object in the image is determined by the spatial position information detected by the laser radar, and a second posture of the target object is obtained from the image captured by the image acquisition device, wherein the second posture is located in a second base coordinate system; The data processing device acquires a first conversion matrix and a second conversion matrix, wherein the first conversion matrix represents a posture conversion relationship between the first base coordinate system and a third base coordinate system, and the second conversion matrix represents a posture conversion relationship between the second base coordinate system and the third base coordinate system; Acquire the first posture or the second posture; The first posture is processed according to the first transformation matrix to obtain a first transformed posture of the target object in a third base coordinate system, or the second posture is processed according to the second transformation matrix to obtain a second transformed posture of the target object in the third base coordinate system.
7. A posture measurement system based on heterogeneous data, characterized in that: The method for measuring posture based on heterogeneous data includes electronic equipment, an image acquisition device and a laser radar; The laser radar sends the collected point cloud data to the electronic device; The electronic device acquires the first pose and spatial position information of the target object according to the point cloud data; According to the spatial position information, determining whether the target object moves into the image acquisition range of the image acquisition device, wherein the first posture is located in a first base coordinate system; If the target object moves into the image acquisition range of the image acquisition device, the image acquisition device switches to acquiring a second posture of the target object through the image acquisition device, and the step specifically includes: First, the position of the target object in the image is determined by the spatial position information detected by the laser radar, and a second posture of the target object is obtained from the image captured by the image acquisition device, wherein the second posture is located in a second base coordinate system; The electronic device acquires a first conversion matrix and a second conversion matrix, wherein the first conversion matrix represents a posture conversion relationship between the first base coordinate system and a third base coordinate system, and the second conversion matrix represents a posture conversion relationship between the second base coordinate system and the third base coordinate system; Acquire the first posture or the second posture; The first posture is processed according to the first transformation matrix to obtain a first transformed posture of the target object in a third base coordinate system, or the second posture is processed according to the second transformation matrix to obtain a second transformed posture of the target object in the third base coordinate system.
8. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores machine executable instructions that can be executed by the processor, and when the machine executable instructions are executed by the processor, the posture measurement method based on heterogeneous data as described in any one of claims 1-5 is implemented.
9. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is processed and executed, it implements the posture measurement method based on heterogeneous data as described in any one of claims 1-5.
Citation Information
Patent Citations
Sensor-robot coordinate system conversion method and robot hand and eye calibration method
CN107443377A
Three-dimensional mapping method, device, system, cloud platform, electronic equipment and computer program product
CN108337915A
Joint measurement method based on laser radar and binocular visible light camera
CN108828606A
Stereo vision-based posture registration method between binocular camera and lidar
CN109035309A
Method and system for detecting and positioning an intruder using a laser detection and ranging device
CN110583014A
