Method, device, equipment and storage medium for determining target object posture
Through the image acquisition equipment and coordinate conversion model, the accurate positioning of self-propelled robots and engineering vehicles is achieved, which solves the problem of poor positioning results in the existing technology and improves the positioning accuracy.
Patent Information
- Application Number
- CN202110414566.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-16
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2041-04-16
AI Technical Summary
In existing technical solutions, the positioning effect of self-propelled robots and engineering vehicles is poor, especially in the absence of overlapping fields of view, which causes the positioning system to easily lose the target.
Obtain the image data of the target object through at least one image acquisition device, use a preset algorithm to determine the pose of the target object in the coordinate system of the image acquisition device, and convert the model according to the coordinates of the target object into the coordinate system of the target map. posture to achieve accurate positioning. The model is based on the determination of the image acquisition equipment, calibration plate and the position and orientation of the calibration plate in the preset map coordinate system.
It improves the positioning accuracy of the target object, solves the problem of poor positioning effect in the existing technology, achieves accurate positioning of the target object, and is suitable for self-propelled robots and engineering vehicles without human intervention.
Smart Images

Figure CN113313755B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer vision, and in particular to a method, device, equipment and storage medium for determining the position and posture of a target object. Background Art
[0002] With the improvement of automation levels in freight yards, docks, warehouses and other places, people have gradually begun to try to use unmanned self-propelled robots and engineering vehicles to transport goods.
[0003] For these target objects such as self-propelled robots and engineering vehicles, it is necessary to obtain the location information of the target objects in a timely manner.
[0004] Among the existing technical solutions, those often based on binocular or multi-camera technology require that the target must be captured by multiple cameras at the same time, that is, different cameras must have overlapping fields of view. This places high demands on the density of camera deployment. Once there is no overlapping field of view, that is, a blind spot, the positioning system is very likely to lose the target.
[0005] Therefore, the existing technical solutions have the problem of poor positioning effect for positioning the target object. Summary of the invention
[0006] The embodiments of the present invention provide a method, device, equipment and storage medium for determining the position and posture of a target object, which solves the problem of poor positioning effect existing in the existing technical solutions and improves the positioning effect of positioning the target object.
[0007] In order to solve the above technical problems, the present invention:
[0008] In a first aspect, a method for determining a position and posture of a target object is provided, the method comprising:
[0009] Acquire image data of the target object by at least one image acquisition device;
[0010] According to the image data, the position and posture of the target object in the coordinate system of the image acquisition device are determined by a preset algorithm;
[0011] The position and posture of the target object in the target map coordinate system are determined according to the position and posture and the target object coordinate transformation model, wherein the target object coordinate transformation model is determined according to the coordinate system of the image acquisition device, the calibration plate coordinate system and the position and posture of the calibration plate in the preset map coordinate system.
[0012] In some implementations of the first aspect, before determining the position and pose of the target object in the target map coordinate system according to the position and pose and the target object coordinate transformation model, the method further includes:
[0013] Acquire a coordinate system of at least one image acquisition device, a coordinate system of at least one calibration plate, and a position and posture of at least one calibration plate in a preset map coordinate system;
[0014] Determine the target coordinate transformation relationship of each node where the image acquisition device is located according to the coordinate system of the image acquisition device, the coordinate system of the calibration plate, and the position and posture of the calibration plate in the preset map coordinate system;
[0015] The target object coordinate transformation model is determined according to the target coordinate transformation relationship.
[0016] In some implementations of the first aspect, each node corresponds to at least one calibration plate; determining a target coordinate transformation relationship of the node where each image acquisition device is located according to a coordinate system of the image acquisition device, a coordinate system of the calibration plate, and a position and posture of the calibration plate in a preset map coordinate system includes:
[0017] Determine a first coordinate transformation relationship of each node where the image acquisition device is located according to the coordinate system of the image acquisition device and the coordinate system of the calibration plate;
[0018] According to the position and posture of each calibration plate in the preset map coordinate system, determine the second coordinate transformation relationship of each node;
[0019] The target coordinate transformation relationship is determined according to the first coordinate transformation relationship and the second coordinate transformation relationship.
[0020] In some implementations of the first aspect, determining the second coordinate transformation relationship of each node according to the position and posture of each calibration plate in a preset map coordinate system includes:
[0021] Determine the transformation relationship between each calibration plate and each calibration plate according to the four vertices of the calibration plate included in each posture;
[0022] According to the conversion relationship, the second coordinate transformation relationship of each node is determined.
[0023] In some implementations of the first aspect, the transformation relationship includes at least one of a rotation matrix and a translation matrix; and determining the second coordinate transformation relationship of each node according to the transformation relationship includes:
[0024] According to at least one of the rotation matrix and the translation matrix, the second coordinate transformation relationship of each node is determined by the least squares method.
[0025] In some implementations of the first aspect, determining the position and posture of the target object in the coordinate system of the image acquisition device by a preset algorithm according to the image data includes:
[0026] According to the image data, a feature frame including the target object is determined by a preset algorithm;
[0027] The position and posture of the target object in the coordinate system of the image acquisition device are determined according to the feature frame.
[0028] A second aspect provides a device for determining a position and posture of a target object, the device comprising:
[0029] An acquisition module, used to acquire image data of a target object through at least one image acquisition device;
[0030] A processing module, used to determine the position and posture of the target object in the coordinate system of the image acquisition device according to the image data through a preset algorithm;
[0031] The processing module is also used to determine the position and posture of the target object in the target map coordinate system according to the position and posture and the target object coordinate transformation model, wherein the target object coordinate transformation model is determined according to the coordinate system of the image acquisition device, the calibration plate coordinate system and the position and posture of the calibration plate in the preset map coordinate system.
[0032] In some implementations of the second aspect, the processing module is further used to obtain the coordinate system of at least one image acquisition device, at least one calibration plate coordinate system, and the posture of at least one calibration plate in a preset map coordinate system before determining the posture of the target object in the target map coordinate system based on the posture and the target object coordinate transformation model; and determine the target coordinate transformation relationship of the node where each image acquisition device is located based on the coordinate system of the image acquisition device, the coordinate system of the calibration plate, and the posture of the calibration plate in the preset map coordinate system; and determine the target object coordinate transformation model based on the target coordinate transformation relationship.
[0033] In some implementations of the second aspect, each node corresponds to at least one calibration plate; the processing module is further used to determine a first coordinate transformation relationship of the node where each image acquisition device is located according to the coordinate system of the image acquisition device and the coordinate system of the calibration plate; determine a second coordinate transformation relationship of each node according to the position and posture of each calibration plate in a preset map coordinate system; and determine a target coordinate transformation relationship according to the first coordinate transformation relationship and the second coordinate transformation relationship.
[0034] In some implementations of the second aspect, the processing module is further used to determine the transformation relationship between each calibration plate and each calibration plate according to the four vertices of the calibration plate included in each posture, and determine the second coordinate transformation relationship of each node according to the transformation relationship.
[0035] In a third aspect, an electronic device is provided, the device comprising: a processor and a memory storing computer program instructions;
[0036] When the processor executes the computer program instructions, the first aspect and the method for determining the position and posture of the target object in some implementations of the first aspect are implemented.
[0037] In a fourth aspect, a computer storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method for determining the target object posture in the first aspect and some implementation methods of the first aspect is implemented.
[0038] The embodiment of the present invention provides a method, device, equipment and storage medium for determining the position and posture of a target object. First, image data of the target object is acquired by at least one image acquisition device; then, the position and posture of the target object in the coordinate system of the image acquisition device is determined by a preset algorithm based on the image data; then, the position and posture of the target object in the target map coordinate system is determined based on the position and posture and the target object coordinate conversion model, wherein the target object coordinate conversion model is determined based on the coordinate system of the image acquisition device, the calibration plate coordinate system and the position and posture of the calibration plate in the preset map coordinate system. Because the target object coordinate conversion model can convert the position and posture of the target object in the coordinate system of the image acquisition device into the position and posture in the preset map coordinate system, the target object can be accurately positioned, thereby solving the problem of poor positioning effect in the existing technical solution and improving the positioning effect of the target object. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the following briefly introduces the drawings required for use in the embodiment of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0040] Figure 1 It is a structural schematic diagram of a system for determining a target object position and posture provided by an embodiment of the present invention;
[0041] Figure 2 is a flow chart of a method for determining a target object posture provided by an embodiment of the present invention;
[0042] Figure 3 is a schematic diagram of the structure of a neural network provided by an embodiment of the present invention;
[0043] Figure 4 is a 2-dimensional (D) projection of a target object on a camera viewing plane provided by an embodiment of the present invention;
[0044] Figure 5 is a schematic diagram of a coordinate system conversion process of a target object provided by an embodiment of the present invention;
[0045] Figure 6 is a structural schematic diagram of a device for determining a target object posture provided by an embodiment of the present invention;
[0046] Figure 7It is a structural diagram of a computing device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0047] The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and Examples. It should be understood that the specific embodiments described herein are only configured to explain the present invention and are not configured to limit the present invention. For those skilled in the art, the present invention can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by illustrating examples of the present invention.
[0048] 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 statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0049] Target positioning, especially wide-area positioning, is a classic visual problem. Freight yards, docks, warehouses and other places are increasingly improving their automation levels, and are gradually trying to use unmanned self-propelled robots and engineering vehicles to transport goods. However, the laying of magnetic guide rails and other solutions requires huge engineering workloads and a lot of investment, so a technology based on real-time target positioning is needed. The simultaneous localization and mapping (SLAM) technology relies on the hardware support of self-propelled vehicles, and the upgrade of existing vehicles is undoubtedly not user-friendly. In addition, when multiple targets use laser SLAM at the same time and are deployed on a large scale, mutual blinding problems are likely to occur.
[0050] In addition, the existing technical solutions similar to the present invention mainly include the following five categories:
[0051] (1) SLAM technology, its core is to realize a self-positioning method based on visual odometer. The current visual SLAM algorithm usually focuses on how to update the map when there are dynamic objects in the scene. This method is a method to achieve self-positioning through its own visual odometer.
[0052] (2) Traditional visual technology locates the target in the image, and then uses a positioning method based on line of sight projection under a pinhole camera system. At present, this method usually determines the relative position information of the following device and the following target based on the position of the determined image sub-block in the image to be identified, but this method still cannot get rid of the positioning method based on line of sight projection under a pinhole camera system. Therefore, for scenes with high target height and small target depression angle, the accuracy is poor.
[0053] (3) In the target position calculation method in the world coordinate system based on overlapping fields of view, overlapping fields of view are the prerequisite for the target to be located, that is, the target must appear in the overlapping fields of view to be located.
[0054] (4) Attempts at non-overlapping fields of view generally require special structures or devices to support them.
[0055] (5) Other technologies or products that use RGBD cameras to achieve similar functions need to rely on depth cameras. Depth cameras, lidars, etc. are very sensitive to the distance to the object being photographed and outdoor weather factors, and their costs are much higher than RGB cameras.
[0056] In the prior art, traditional SLAM technology is generally used for positioning and map reconstruction of a single moving robot. Its computing core is generally deployed in the robot's computing module, and its input source is generally laser radar, camera, etc. If multiple targets are to be positioned, such as warehouse robots, laser radar, camera, computing unit, etc. need to be deployed on each robot. In addition, path planning and coordination between multiple targets are also very difficult.
[0057] Existing technologies also use binocular or multi-eye technology and provide feature points and image sub-blocks for positioning. If dense point cloud data is used, the amount of calculation is too large and it is dependent on lighting, target color, and texture; if a single reprojection point is used, it is difficult to accurately locate large objects such as automatic ox carts and automatic transport robots.
[0058] More importantly, binocular or multi-purpose technology requires that the target must be captured by multiple cameras at the same time, that is, different cameras must have overlapping fields of view, which places high demands on the density of camera deployment. Once a blind spot appears, the positioning system is very likely to lose the target.
[0059] It can be seen from this that the existing technical solutions are often based on binocular or multi-camera technical solutions, which require that the target must be captured by multiple cameras at the same time, that is, different cameras must have overlapping fields of view, which places high demands on the density of camera deployment. Once there is no overlapping field of view, that is, blind spots, the positioning system is very likely to lose the target. In addition, if traditional SLAM technology is used, path planning and coordination between multiple targets are also very difficult.
[0060] In summary, the existing technical solutions have the problem of poor positioning effect in positioning the target object.
[0061] In order to solve the problem of poor positioning effect of positioning the target object in the current technical solution, the embodiment of the present invention provides a method, device, equipment and storage medium for determining the position and posture of the target object. First, the image data of the target object is obtained by at least one image acquisition device; then, according to the image data, the position and posture of the target object in the coordinate system of the image acquisition device is determined by a preset algorithm; finally, according to the position and posture and the target object coordinate conversion model, the position and posture of the target object in the target map coordinate system is determined, wherein the target object coordinate conversion model is determined according to the coordinate system of the image acquisition device, the calibration plate coordinate system and the position and posture of the calibration plate in the preset map coordinate system. Because the target object coordinate conversion model can convert the position and posture of the target object in the coordinate system of the image acquisition device into the position and posture in the preset map coordinate system, it is possible to accurately locate the target object, thereby solving the problem of poor positioning effect in the existing technical solution and improving the positioning effect of locating the target object.
[0062] The technical solution provided by the embodiments of the present invention is described below in conjunction with the accompanying drawings.
[0063] Figure 1 1 is a schematic diagram of the structure of a target object position and posture determination system provided by an embodiment of the present invention. The target object position and posture determination method provided by an embodiment of the present invention is implemented based on the determination system.
[0064] like Figure 1 As shown, the determination system may include a central computing module, multiple edge computing nodes, and each edge computing node includes an image acquisition device and an edge computing module.
[0065] Among them, the image acquisition device in the edge computing node is used to obtain image data of the target object. In addition, for the sake of concise description, the edge computing node can also be called a node or an edge node.
[0066] The edge computing module in the edge computing node is used to process the image data, that is, to determine the position and posture of the target object in the coordinate system of the image acquisition device through a preset algorithm based on the image data.
[0067] In addition, the edge computing module in the edge computing node is also used to determine the pose of the target object in the target map coordinate system based on the pose and the target object coordinate transformation model, wherein the target object coordinate transformation model is determined based on the coordinate system of the image acquisition device, the calibration plate coordinate system, and the pose of the calibration plate in the preset map coordinate system. The calibration plate can specifically be an equidistant black and white chessboard.
[0068] The central computing module is used to store and update the position and posture of the target object in the target map coordinate system.
[0069] The target object position determination system provided in the embodiment of the present invention can accurately locate the target object because the target object coordinate conversion model used by the edge computing node can convert the target object's position in the image acquisition device's coordinate system into a position in a preset map coordinate system. This solves the problem of poor positioning effect in the existing technical solutions and improves the positioning effect of the target object.
[0070] Figure 2 The present invention provides a flow chart of a method for determining the position and posture of a target object provided by an embodiment of the present invention. The execution subject of the method can be each edge computing node or other processing device.
[0071] like Figure 2 As shown, the method for determining the position and posture of the target object may include:
[0072] S101: Acquire image data of a target object through at least one image acquisition device.
[0073] Among them, the image acquisition device refers to a single-purpose image acquisition device, and the image acquisition device specifically refers to a device such as a camera or a camera, and the image data specifically refers to RGB image data.
[0074] S102: Determine the position and posture of the target object in the coordinate system of the image acquisition device according to the image data by using a preset algorithm.
[0075] In one embodiment, a fully convolutional neural network structure can be used, the input of the entire network is RGB image data, and the output is a 3D bounding box, that is, the position of the target object in the coordinate system of the image acquisition device. The composition of the neural network structure can be as follows: Figure 3 As shown, it includes: an encoder, a decoder, a regression subnetwork, and a multi-point perspective imaging (Perspective-n-Point, PnP) unit.
[0076] Specifically, the encoder and decoder structures are used to generate high-dimensional feature tensors that represent the characteristics of the original data; and the regression subnetwork is used to predict whether a target object exists in a certain receptive field, the confidence of the target object, and the 2D coordinate positions of each vertex of the target object.
[0077] In one embodiment, an Anchor-based regression method may be used to design a regression subnetwork.
[0078] Figure 4 is a 2D projection of a target object on a camera viewing plane provided by an embodiment of the present invention, such as Figure 4 As shown, the target robot, i.e., the target object, is the target to be detected. After the target detection algorithm, the target object can be regressed into 1 to 8 points (such as the x position in the figure). The 8 ordered points represent the 2D projection of a cube on the camera's viewing plane.
[0079] After that, after non-maximum suppression, when the output confidence is higher than a certain threshold, the eight 2D projection points are sent to the PnP unit. In one embodiment, the 3D coordinate position can be solved by using the efficient multi-point perspective imaging (Efficient PnP, EPnP) technology, and the position and size of the target object in the coordinate system of the image acquisition device can be obtained through coordinate system transformation, that is, the posture in the coordinate system of the image acquisition device.
[0080] Furthermore, in one embodiment, the position and posture of the target object in the coordinate system of the image acquisition device may include 6 degrees of freedom (DOF) information of the target.
[0081] S103: Determine the position and pose of the target object in the target map coordinate system according to the position and pose and the target object coordinate transformation model.
[0082] The target object coordinate transformation model is determined according to the coordinate system of the image acquisition device, the coordinate system of the calibration plate, and the position and posture of the calibration plate in the preset map coordinate system.
[0083] In one embodiment, before determining the position and pose of the target object in the target map coordinate system according to the position and pose and target object coordinate conversion model, in order to ensure that each module works properly, the state of each module / node can be initialized first. The core includes: calibration of the image acquisition device in the edge computing node and calibration of the central computing module. The core of initialization is to initialize the relationship between the coordinate system of the image acquisition device on the edge computing node and the preset map coordinate system.
[0084] When calibrating the image acquisition device of the edge node, EPnP technology can be used to estimate the position and posture of the image acquisition device in the world coordinate system, that is, the rotation and displacement matrix of the camera relative to the origin of the world coordinate system, to obtain the coordinate system of the image acquisition device, that is, the camera coordinate system.
[0085] After that, the pre-set calibration plate coordinate system O is introduced G (The center of the calibration plate is the coordinate origin). Taking the edge computing node A where the image acquisition device is located as an example, the calibration of the image acquisition device of the edge computing node is to obtain f A , so that O GA =f A (O A ), where f A That is the first coordinate transformation relationship, O A That is, the coordinate system of the image acquisition device of edge node A, O GA It is the calibration plate coordinate system corresponding to the edge node A.
[0086] It should be noted that the process of calibrating the edge computing nodes B, C, etc. where the image acquisition device is located is the same as the process of calibrating the image acquisition device of the edge computing node A. For the sake of brevity, no additional explanation is given here.
[0087] In addition, when calibrating the edge computing nodes where the image acquisition device is located, the position and posture of the calibration plate corresponding to each edge computing node in the preset map coordinate system must also be recorded. After obtaining the first coordinate transformation relationship of each edge node, the calibration plate coordinate systems corresponding to different edge computing nodes can be converted into a unified target map coordinate system according to the position and posture of the calibration plate corresponding to each edge computing node in the preset map coordinate system. ALL .
[0088] After converting to the unified target map coordinate system O ALL In the process of obtaining the second coordinate transformation relationship of each edge node, O ALL =g A (O GA ) = g B (O GB ) = g C (O GC ) = ...where g A That is the second coordinate transformation relationship of edge node A, g B is the second coordinate transformation relationship of edge node B, and so on.
[0089] Specifically, in the process of determining the second coordinate transformation relationship of each edge node, the position L of the calibration plate corresponding to each edge node in the preset map coordinate system can be recorded, and the positions of the four vertices of each calibration plate in the target map coordinate system can be obtained from the position. For example, when each calibration plate is coplanar, that is, each calibration plate can be converted to each other through a 2D rotation and translation matrix, g()=M*T can be set, where M and T are rotation and translation matrices, respectively. The least squares method can then be used to solve the matrix parameters to determine g(), so that all edge nodes where all image acquisition devices are located can be unified into the target map coordinate system.
[0090] After obtaining the first coordinate transformation relationship and the second coordinate transformation relationship of each node, the target coordinate transformation relationship can be determined according to the first coordinate transformation relationship and the second coordinate transformation relationship to realize the conversion of the pose of the target object in the coordinate system of the image acquisition device into the pose in the target map coordinate system, that is, to unify the pose of the target object in the coordinate system of the image acquisition device into a target map coordinate system.
[0091] Specifically, when determining the target coordinate transformation relationship and after obtaining the position and posture of the target object in the coordinate system of the image acquisition device in S102, as shown in FIG. Figure 5 As shown, the posture can be transformed into the calibration plate coordinate system through a first coordinate transformation relationship f(), and then the posture of the target object in the calibration plate coordinate system is converted into the target map coordinate system through a second coordinate transformation relationship g(), that is, the posture of the target object in the coordinate system of the image acquisition device is unified into one coordinate system, and the target map coordinate system specifically refers to a unified world coordinate system.
[0092] In addition, in one embodiment, after the edge computing node determines the position and posture of the target object in the preset map coordinate system, the information including the position and posture can be sent to the central computing module. The information can also include the 3D regression box of the target object, that is, 8 3D points; the confidence of the target; in one embodiment, the information can also include classification information or feature information of the target. It is generally a feature vector with a length of 128 or 512, which is used for Radio Frequency Identification (REID) technology. Because this information is small in size and fast in speed, it can effectively reduce communication delays.
[0093] In one embodiment, each edge computing node may not be restricted to use the same computing power. Since different computing nodes have different computing loads and computing capabilities, the edge computing nodes may report data to the central computing module asynchronously.
[0094] After the central computing module receives the data, it can first traverse whether a conflict occurs. A conflict refers to a location in the map that was reported by an edge computing node at an earlier moment to have a target; and at the current moment, another edge computing node reports that the location also has a target. In one embodiment, non-maximum suppression (NMS) technology can be used to try to remove redundant target positions. If there is no conflict, the target pose covered by the computing node's field of view can be directly updated. Therefore, this method can effectively balance the computing power of different computing nodes, always maintain a high frame rate to update the map and achieve positioning, and the same target can be effectively fused in overlapping fields of view. Therefore, this method is highly real-time, and the map of the central computing unit can support incremental updates, which can achieve continuous map updates at a higher frame rate.
[0095] In addition, because the embodiment of the present invention can obtain the image data of the target object through at least one image acquisition device, and determine the position and posture of the target object in the preset map coordinate system based on the image data, this technology is a technology for locating the target from a third-person perspective, and can achieve the positioning and tracking of the target only through a single-purpose image acquisition device, that is, a single-purpose camera, without relying on the characteristics of binocular or multi-eye overlapping fields of view, which is very friendly to deployment conditions. Moreover, the embodiment of the present invention adopts a distributed computing method, and its computing power is mainly deployed in each edge computing node, that is, each camera node, so there is no need to carry out complex transformation and upgrading of existing vehicles and robots. Therefore, the embodiment of the present invention can be widely deployed in indoor and outdoor scenes such as warehousing, cargo yards, and docks.
[0096] In the method for determining the position and posture of a target object provided in an embodiment of the present invention, first, image data of the target object is acquired by at least one image acquisition device; then, based on the image data, the position and posture of the target object in the coordinate system of the image acquisition device is determined by a preset algorithm; then, based on the position and posture and the target object coordinate conversion model, the position and posture of the target object in the target map coordinate system is determined, wherein the target object coordinate conversion model is determined based on the coordinate system of the image acquisition device, the calibration plate coordinate system, and the position and posture of the calibration plate in the preset map coordinate system. Because the target object coordinate conversion model can convert the position and posture of the target object in the coordinate system of the image acquisition device into the position and posture in the preset map coordinate system, the target object can be accurately positioned, thereby solving the problem of poor positioning effect existing in the existing technical solutions and improving the positioning effect of positioning the target object.
[0097] and Figure 2 Corresponding to the flow chart of the method for determining the position and posture of a target object in FIG. , an embodiment of the present invention further provides a device for determining the position and posture of a target object.
[0098] Figure 6 is a schematic diagram of the structure of a device for determining the position and posture of a target object provided by an embodiment of the present invention. Figure 6 As shown, the device for determining the position and posture of the target object includes:
[0099] The acquisition module 601 may be configured to acquire image data of a target object through at least one image acquisition device.
[0100] The processing module 602 may be used to determine the position and posture of the target object in the coordinate system of the image acquisition device according to the image data by using a preset algorithm.
[0101] The processing module 602 can also be used to determine the pose of the target object in the target map coordinate system based on the pose and the target object coordinate transformation model, wherein the target object coordinate transformation model is determined based on the coordinate system of the image acquisition device, the calibration plate coordinate system, and the pose of the calibration plate in the preset map coordinate system.
[0102] The processing module 602 can also be used to obtain the coordinate system of at least one image acquisition device, at least one calibration plate coordinate system, and the posture of at least one calibration plate in a preset map coordinate system before determining the posture of the target object in the target map coordinate system based on the posture and the target object coordinate transformation model, and determine the target coordinate transformation relationship of the node where each image acquisition device is located based on the coordinate system of the image acquisition device, the coordinate system of the calibration plate, and the posture of the calibration plate in the preset map coordinate system, and then determine the target object coordinate transformation model based on the target coordinate transformation relationship.
[0103] In one embodiment, each node corresponds to at least one calibration plate; the processing module 602 can also be used to determine the first coordinate transformation relationship of the node where each image acquisition device is located according to the coordinate system of the image acquisition device and the coordinate system of the calibration plate, and determine the second coordinate transformation relationship of each node according to the position and posture of each calibration plate in the preset map coordinate system, and then determine the target coordinate transformation relationship according to the first coordinate transformation relationship and the second coordinate transformation relationship.
[0104] The processing module 602 may also be used to determine the transformation relationship between each calibration plate and each calibration plate according to the four vertices of the calibration plate included in each posture, and determine the second coordinate transformation relationship of each node according to the transformation relationship.
[0105] In one embodiment, the conversion relationship includes at least one of a rotation matrix and a translation matrix; the processing module 602 can also be used to determine the second coordinate transformation relationship of each node through the least squares method based on at least one of the rotation matrix and the translation matrix.
[0106] The processing module 602 may also be used to determine a feature frame including the target object according to the image data by a preset algorithm, and determine the position and posture of the target object in the coordinate system of the image acquisition device according to the feature frame.
[0107] Understandably, Figure 6 Each module in the device for determining the position and posture of the target object shown in the figure has the function of realizing Figure 2 The functions of each step in the process can achieve the corresponding technical effects, which will not be described in detail here for the sake of brevity.
[0108] In the device for determining the position and posture of a target object provided in an embodiment of the present invention, first, an acquisition module acquires image data of the target object through at least one image acquisition device; then, a processing module determines the position and posture of the target object in the coordinate system of the image acquisition device through a preset algorithm based on the image data, and determines the position and posture of the target object in the target map coordinate system based on the position and posture and the target object coordinate conversion model, wherein the target object coordinate conversion model is determined based on the coordinate system of the image acquisition device, the calibration plate coordinate system, and the position and posture of the calibration plate in the preset map coordinate system. Because the target object coordinate conversion model can convert the position and posture of the target object in the coordinate system of the image acquisition device into the position and posture in the preset map coordinate system, the target object can be accurately positioned, thereby solving the problem of poor positioning effect existing in the existing technical solutions and improving the positioning effect of positioning the target object.
[0109] Figure 7 is a structural diagram of the hardware architecture of a computing device provided by an embodiment of the present invention. Figure 7 As shown, the computing device 700 includes an input interface 701, a central processor 702, a memory 703, and an output interface 704. The input interface 701, the central processor 702, the memory 703, and the output interface 704 are interconnected via a bus 710.
[0110] Specifically, the input interface 701 is used to receive image data of the target object acquired by at least one image acquisition device, and transmit the image data to the central processing unit 702; the central processing unit 702 processes the image data based on the computer executable instructions stored in the memory 703 to determine the position and posture of the target object in the target map coordinate system, and temporarily or permanently stores the position and posture in the memory 703, and then outputs the position and posture to the outside of the computing device 700 through the output interface 704 for user use.
[0111] That is to say, Figure 7The computing device shown can also be implemented as a target object posture determination device, which may include: a processor and a memory storing computer executable instructions; when executing the computer executable instructions, the processor can implement the target object posture determination method provided in an embodiment of the present invention.
[0112] An embodiment of the present invention further provides a computer-readable storage medium having computer program instructions stored thereon; when the computer program instructions are executed by a processor, the method for determining the position and posture of a target object provided by an embodiment of the present invention is implemented.
[0113] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.
[0114] The functional blocks shown in the structural block diagram described above can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present invention are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or communication link by a data signal carried in a carrier. "Machine-readable medium" may include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, read-only memory (Read-Only Memory, ROM), flash memory, erasable read-only memory (ErasableRead Only Memory, EROM), floppy disks, compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical discs, hard disks, optical fiber media, radio frequency (Radio Frequency, RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0115] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.
[0116] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0117] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.
Claims
1. A method for determining a target object's position and posture, characterized in that: An edge computing node applied to a target object posture determination system, the target object posture determination system comprising a plurality of edge computing nodes, the plurality of edge computing nodes including the edge computing node, each of the edge computing nodes comprising an image acquisition device and an edge computing module, the method comprising: Acquire image data of the target object by at least one image acquisition device; Using an edge computing module in the edge computing node, according to the image data, a preset algorithm is used to determine the position and posture of the target object in the coordinate system of the image acquisition device; Utilize the edge computing module in the edge computing node to determine the pose of the target object in the target map coordinate system according to the pose and target object coordinate transformation model, and send the pose of the target object in the target map coordinate system to the central computing module, so that the central computing module can check whether a conflict occurs after receiving the pose of the target object in the target map coordinate system. The conflict is that a certain position in the map is reported by an edge computing node at an earlier moment to have a target, and another edge computing node reports that a target also exists at the same position at the current moment. If there is a conflict, use the non-maximum suppression technology to remove the redundant pose of the target object in the target map coordinate system. If there is no conflict, update the pose of the target object in the target map coordinate system. The target object coordinate transformation model is determined according to the coordinate system of the image acquisition device, the calibration plate coordinate system, and the pose of the calibration plate in the preset map coordinate system. The preset algorithm includes a fully convolutional neural network structure, and the fully convolutional neural network structure includes an encoder, a decoder, a regression subnetwork, and a multi-point perspective imaging PnP unit; Determining the position and posture of the target object in the coordinate system of the image acquisition device by a preset algorithm according to the image data includes: Processing the image data by the encoder and the decoder to generate a high-dimensional feature tensor representing original data features of the image data; Predicting the high-dimensional feature tensor of the original feature data representing the image data through the regression subnetwork to obtain the 2D coordinate position of the target object and each vertex of the target object; The 2D coordinate position of each vertex of the target object is processed by the PnP unit to obtain a 3D regression frame, and the 3D regression frame includes the position and posture of the target object in the coordinate system of the image acquisition device.
2. The method according to claim 1, characterized in that Before determining the position and pose of the target object in the target map coordinate system according to the position and pose and the target object coordinate transformation model, the method includes: Acquire a coordinate system of at least one image acquisition device, a coordinate system of at least one calibration plate, and a position and posture of at least one calibration plate in a preset map coordinate system; Determine the target coordinate transformation relationship of the node where each image acquisition device is located according to the coordinate system of the image acquisition device, the coordinate system of the calibration plate, and the position and posture of the calibration plate in the preset map coordinate system; The target object coordinate transformation model is determined according to the target coordinate transformation relationship.
3. The method according to claim 2, characterized in that Each node corresponds to at least one calibration plate; the target coordinate transformation relationship of the node where each image acquisition device is located is determined according to the coordinate system of the image acquisition device, the coordinate system of the calibration plate, and the position and posture of the calibration plate in the preset map coordinate system, including: Determine a first coordinate transformation relationship of a node where each image acquisition device is located according to a coordinate system of the image acquisition device and a coordinate system of the calibration plate; According to the position and posture of each calibration plate in the preset map coordinate system, determine the second coordinate transformation relationship of each node; A target coordinate transformation relationship is determined according to the first coordinate transformation relationship and the second coordinate transformation relationship.
4. The method according to claim 3, characterized in that: Determining the second coordinate transformation relationship of each node according to the position and posture of each calibration plate in the preset map coordinate system includes: Determine the transformation relationship between each calibration plate and each calibration plate according to the four vertices of the calibration plate included in each posture; According to the conversion relationship, the second coordinate transformation relationship of each node is determined.
5. The method according to claim 4, characterized in that The conversion relationship includes at least one of a rotation matrix and a translation matrix; and determining the second coordinate transformation relationship of each node according to the conversion relationship includes: According to at least one of the rotation matrix and the translation matrix, the second coordinate transformation relationship of each node is determined by the least squares method.
6. The method according to claim 1, characterized in that Determining the position and posture of the target object in the coordinate system of the image acquisition device by a preset algorithm according to the image data includes: Determining a feature frame including the target object through a preset algorithm according to the image data; The position and posture of the target object in the coordinate system of the image acquisition device is determined according to the feature frame.
7. A device for determining a target object's position and posture, characterized in that: An edge computing node in a target object posture determination system, the target object posture determination system comprising a plurality of edge computing nodes, the plurality of edge computing nodes comprising the edge computing node, each of the edge computing nodes comprising an image acquisition device and an edge computing module, the device comprising: An acquisition module, used for acquiring image data of a target object through the image acquisition device; A processing module, configured to determine the position and posture of the target object in the coordinate system of the image acquisition device by using an edge computing module in the edge computing node according to the image data and a preset algorithm; The processing module is also used to use the edge computing module in the edge computing node to determine the pose of the target object in the target map coordinate system according to the pose and the target object coordinate transformation model, and send the pose of the target object in the target map coordinate system to the central computing module, so that the central computing module can traverse whether a conflict occurs after receiving the pose of the target object in the target map coordinate system. The conflict is that a certain position in the map is reported by an edge computing node at an earlier moment to have a target, and another edge computing node reports that a target also exists at the certain position at the current moment. In the case of a conflict, the non-maximum suppression technology is used to remove the redundant pose of the target object in the target map coordinate system. In the case of no conflict, the pose of the target object in the target map coordinate system is updated; wherein the target object coordinate transformation model is determined according to the coordinate system of the image acquisition device, the coordinate system of the calibration plate, and the pose of the calibration plate in the preset map coordinate system; The preset algorithm includes a fully convolutional neural network structure, and the fully convolutional neural network structure includes an encoder, a decoder, a regression subnetwork, and a multi-point perspective imaging PnP unit; The processing module is specifically used for: Processing the image data by the encoder and the decoder to generate a high-dimensional feature tensor representing original data features of the image data; Predicting the high-dimensional feature tensor of the original feature data representing the image data through the regression subnetwork to obtain the 2D coordinate position of the target object and each vertex of the target object; The 2D coordinate position of each vertex of the target object is processed by the PnP unit to obtain a 3D regression frame, and the 3D regression frame includes the position and posture of the target object in the coordinate system of the image acquisition device.
8. The device according to claim 7, characterized in that The processing module is further used to obtain the coordinate system of at least one image acquisition device, at least one calibration plate coordinate system and the posture of at least one calibration plate in a preset map coordinate system before determining the posture of the target object in the target map coordinate system according to the posture and the target object coordinate transformation model; and determine the target coordinate transformation relationship of the node where each image acquisition device is located according to the coordinate system of the image acquisition device, the calibration plate coordinate system and the posture of the calibration plate in the preset map coordinate system; and determine the target object coordinate transformation model according to the target coordinate transformation relationship.
9. The device according to claim 8, characterized in that Each node corresponds to at least one calibration plate; the processing module is further used to determine the first coordinate transformation relationship of the node where each image acquisition device is located according to the coordinate system of the image acquisition device and the coordinate system of the calibration plate; determine the second coordinate transformation relationship of each node according to the position and posture of each calibration plate in the preset map coordinate system; determine the target coordinate transformation relationship according to the first coordinate transformation relationship and the second coordinate transformation relationship.
10. The device according to claim 9, characterized in that The processing module is further used to determine the transformation relationship between each calibration plate and each calibration plate according to the four vertices of the calibration plate included in each posture, and determine the second coordinate transformation relationship of each node according to the transformation relationship.
11. An electronic device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the method for determining the position and posture of the target object as described in any one of claims 1-6 is implemented.
12. A computer storage medium, characterized in that: The computer storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the method for determining the position and posture of a target object as described in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Unified method and system for coordinate systems of different MR devices and storage medium
CN109766001A
Robot global positioning and measuring system and method for practical training
CN110421565A
Image labeling method, device and system and host
CN111127422A
Laser radar and camera calibration method, device and equipment and readable storage medium
CN111965624A
Multi-camera calibration method
CN112150561A
