3D object positioning method and system, and storage medium
By constructing a feature lookup table and matching point cloud three-dimensional point pairs, the problem of needing to obtain 3D models in advance in the existing technology is solved, the positioning of 3D objects without relying on 3D models is realized, and the recognition efficiency and application fields are improved.
Patent Information
- Application Number
- CN202410799847.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-06
AI Technical Summary
Existing 3D object positioning methods need to obtain the 3D model file of the target in advance, which makes it difficult to obtain in practical applications. It is impossible to position the position and attitude of the object without relying on the 3D model.
By pre-collecting the image and point cloud data of the target, the mapping relationship between the image pixel coordinates and the three-dimensional point cloud points is determined, the image feature points and their descriptions are extracted, a feature lookup table is constructed, and similar feature point pairs in the previous and subsequent frame images are matched, and the calculation Point cloud transformation relationship to obtain the pose of the target.
It achieves efficient visual positioning of 3D objects without the need for a target 3D model, is suitable for the identification and positioning of any real object, and expands the application fields and scenarios of the algorithm.
Smart Images

Figure CN118608752A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer vision technology, and in particular to a 3D object positioning method and system, and a storage medium. Background Art
[0002] At present, the existing computer vision technology locates 3D objects by extracting and identifying the features of objects in three-dimensional space, thereby determining the position and posture of objects in space. Therefore, the existing mainstream 3D object positioning methods need to obtain the 3D model file of the expected target in advance before recognition, such as CAD model, etc. Then, by comparing the spatial information collected by the RGBD camera with the predicted 3D model, and then evaluating the similarity between the two, the object positioning is achieved.
[0003] However, the limitation of this method is that in practical applications, the 3D model file of the object must be obtained in advance, but it is often difficult to obtain the 3D model file of the object in advance. Therefore, how to realize the positioning of the position and posture of 3D objects without relying on 3D models is the current main research direction. Summary of the invention
[0004] To this end, the main purpose of the present invention is to provide a 3D object positioning method and system, and a storage medium to achieve visual positioning of 3D objects without the need for a target 3D model.
[0005] In order to achieve the above object, according to one aspect of the present invention, a 3D object positioning method is provided, comprising the steps of:
[0006] Pre-collect the target's image and point cloud data to determine the image pixel coordinates and point cloud 3D point coordinates The mapping relationship of
[0007] Extracting feature points from an image Its characteristics description ; Based on feature description Match similar feature point pairs in the previous and next frame images;
[0008] Based on the feature point pairs, calculate the point cloud transformation relationship between adjacent frames and unify the coordinate system of each point cloud data;
[0009] The feature points Characterization And the corresponding point cloud 3D point coordinates , as the lookup key and value, construct the feature lookup table F;
[0010] Extract feature points from the image and point cloud data of the current target Characterization , and the corresponding point cloud 3D point coordinates , find similar keys in the feature lookup table F to get values, and match the three-dimensional point pairs Calculate the transformation matrix , get the target pose.
[0011] In a possible preferred embodiment, the image feature points The extraction steps include:
[0012] Determine whether there is a difference between the pixel value of each pixel point A in the image and the pixel point B in its neighborhood;
[0013] If the number of pixel points B with differences in the neighborhood exceeds the threshold, pixel point A is taken as the feature point. .
[0014] In a possible preferred embodiment, wherein the characteristic description The extraction steps include:
[0015] Feature Points Establish a domain with P as the center, calculate the grayscale centroid Q in the domain, and calculate the angle with the direction of the line from P to Q as the main direction , so as to adjust the pixels in the area to be parallel to the main direction with point P as the center;
[0016] Pair the pixels in the area into several pairs of points according to the point pair template , according to the point alignment The pixel value comparison result is assigned 1 or 0 to obtain the binary coded feature description .
[0017] In a possible preferred embodiment, the step of constructing the feature lookup table F includes:
[0018] Describe the characteristics Divide into n groups of binary codes and convert them into decimal characteristic values as lookup tables ;
[0019] All Form an N*n dimensional array , where N is all the feature points of the target Number;
[0020] Will The first column of data After sorting the characteristic values, let the middle value correspond to As a layer of nodes; the corresponding two sets of characteristic values before and after the middle value ,according to The second column of data Sort the characteristic values and let the middle values correspond to As two nodes of the second layer; find The layer nodes of each column data, and the remaining As a leaf node;
[0021] Construct a feature lookup table F based on the keys and values corresponding to each layer of nodes and leaf nodes.
[0022] In a possible preferred implementation, the step of obtaining a value by searching for a similar key in the feature lookup table F includes:
[0023] Describe the characteristics Convert to ;
[0024] Respectively Compare the values of each layer node and leaf node in the feature lookup table F, record the nodes in the path as candidate keys, and compare them with The closest key is used as the matching result to obtain the corresponding value.
[0025] In a possible preferred implementation, the neighborhood range is the pixel range involved in a circular area with pixel point A as the center and R as the radius, where R is in units of pixel point size.
[0026] In a possible preferred embodiment, the domain is a square range of s*s, where s is in units of pixel size, and the domain at least supports the point pair template to pair 256 non-repetitive pixel pairs within its range.
[0027] In a possible preferred implementation, the step further includes: performing image smoothing filtering processing using a Gaussian convolution kernel with σ=2 in the domain.
[0028] In order to achieve the above object, corresponding to the above method, according to another aspect of the present invention, a 3D object positioning system is further provided, which includes:
[0029] A storage unit, used to store a program including any of the steps of the 3D object positioning method as described above, so that the depth camera and the processing unit can call and execute it in a timely manner;
[0030] Depth camera, used to pre-collect the image and point cloud data of the target, and to collect the image and point cloud data of the current target;
[0031] Processing unit for extracting feature points of pre-collected images Its characteristics description ; Based on feature description Match similar feature point pairs in the previous and next frame images; calculate the point cloud transformation relationship between adjacent frames and unify the coordinate system of each point cloud data; respectively Characterization And the corresponding point cloud 3D point coordinates , as the lookup key and value, construct the feature lookup table F; extract each feature point from the image and point cloud data of the current target Characterization , and the corresponding point cloud 3D point coordinates , find similar keys in the feature lookup table F to get values, and match the three-dimensional point pairs Calculate the transformation matrix , get the target pose.
[0032] In order to achieve the above-mentioned purpose, corresponding to the above-mentioned method, according to another aspect of the present invention, a computer-readable storage medium is further provided, wherein the computer-readable storage medium stores a computer program, wherein when the computer program is executed, the steps of any of the above-mentioned 3D object positioning methods are implemented.
[0033] The 3D object positioning method, system and storage medium provided by the present invention cleverly utilize the collected recognition target data to construct a feature lookup table, and establish a search relationship with the subsequent target data, thereby matching the three-dimensional point pair coordinates of the point cloud for calculating the transformation relationship, thereby obtaining the target posture, and thus replacing the reliance of the traditional target recognition method on the 3D model. This makes it applicable to the recognition and positioning of any real object in the scene, and improves the application field and scene of the algorithm.
[0034] In addition, in the corresponding implementation, the method of the present invention also designs the construction of the image feature lookup table and the feature retrieval method, and converts the high-dimensional binary feature description into a low-dimensional decimal feature expression through a special data structure encoding. At the same time, a hierarchical node division method is designed to decompose each feature description into nodes of different layers, so that the feature description matching efficiency in subsequent recognition and positioning can be effectively improved through this method, and the problem of low recognition efficiency caused by rich target object features can be solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The drawings constituting a part of this application are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0036] Figure 1 A schematic diagram of the steps of the 3D object positioning method of the present invention;
[0037] Figure 2A schematic diagram of a neighborhood for extracting feature points in a 3D object positioning method of the present invention;
[0038] Figure 3 It is a schematic diagram of the process of adjusting the main direction of the feature point area and grayscale centroid in the 3D object positioning method of the present invention;
[0039] Figure 4 It is a schematic diagram of dividing feature description into 4 groups for binary coding in the 3D object positioning method of the present invention;
[0040] Figure 5 A schematic diagram of constructing a feature lookup table F in the 3D object positioning method of the present invention;
[0041] Figure 6 It is a schematic diagram of searching a feature lookup table F according to a target feature description in a 3D object positioning method of the present invention;
[0042] Figure 7 It is a schematic diagram of the structure of the 3D object positioning system of the present invention. DETAILED DESCRIPTION
[0043] In order to enable those skilled in the art to better understand the technical solution of the present invention, the specific technical solution of the present invention will be clearly and completely described in conjunction with the embodiments below to help those skilled in the art further understand the present invention. Obviously, the embodiments described in this case are only embodiments of a part of the present invention, not all of the embodiments. It should be pointed out that for those of ordinary skill in the art, the embodiments in this application and the features in the embodiments can be combined with each other without departing from the concept of the present invention and without conflicting with each other. Based on the embodiments in the present invention, all other embodiments obtained without creative work by those of ordinary skill in the art should belong to the disclosure and protection scope of the present invention.
[0044] In addition, the terms "first", "second", "S100", "S200", etc. in the specification, claims and drawings of the present invention are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the features used in this way can be interchanged where appropriate, so that the embodiments of the present invention described here can be implemented in an order other than those described here. At the same time, the stages recorded in each step are not mandatory to be implemented in the same step. It should be understood that the implementation order of the contents in each step stage can be adjusted and interchanged without violating the inventive concept, so that the step embodiments of the present invention described here can be implemented in an order other than those described here. In addition, the terms "including" and "having" and any of their variations in the present invention are intended to cover non-exclusive inclusions. Unless otherwise clearly specified and limited, the terms "set", "layout", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected, or indirectly connected through an intermediate medium, or it can be the internal connection of two components. For ordinary technicians in this field, the specific meanings of the above terms in this case can be understood according to specific circumstances and in combination with the prior art.
[0045] In order to achieve visual positioning of 3D objects without the need for a 3D model of the target, the present invention constructs a feature lookup table by collecting data to identify the target, and establishes a lookup relationship with subsequent target data, so as to match the coordinates of the three-dimensional point pairs of the point cloud for calculating the transformation relationship to obtain the target pose.
[0046] For this reason, Figures 1 to 6 As shown, the present invention provides a 3D object positioning method, and its exemplary steps include:
[0047] Step S100: pre-collect the target image and point cloud data, determine the image pixel coordinates and the point cloud 3D point coordinates The mapping relationship.
[0048] Specifically, in this example, the RGBD depth camera is used to capture color images of the pre-identified target from different perspectives. and depth map . At the same time, get the camera's internal parameters from the camera device , based on the camera internal parameters and depth map Calculate point cloud data .
[0049] The point cloud data is calculated Example steps include:
[0050] Calculate the following conversion formula:
[0051]
[0052] in, , Depth map exist The depth value at the position, Corresponding point cloud data The coordinate value of .
[0053] Since point cloud data In the storage and sorting of the 3D point coordinates of the point cloud are consistent with the image M, that is, any position on the image M Pixels at any point can be found in the point cloud data Same location Find the corresponding three-dimensional point coordinates.
[0054] Therefore, the obtained image M of the identified target and the point cloud data C can be used to establish the target data set , to determine the pixel coordinates of each image and the 3D point coordinates of the point cloud The mapping relationship.
[0055] Step S200: extracting feature points of the image Its characteristics description ; Based on feature description Match similar feature point pairs in the previous and next frame images.
[0056] Specifically, in this example, the target dataset is identified Images in Make feature points extract.
[0057] like Figure 2 As shown, step S210 first takes the pixel A in the image M as The position is the center of the circle, and a circular area is established with R as the radius. The range of all pixels involved in the circular area is the neighborhood range of pixel point A, where R is in units of pixel size. For example, in this example, For example, Figure 2 As shown, all pixels are found within the neighborhood range, and it is determined whether there is a difference between the pixel value of each pixel point A in the image M and the pixel point B within its neighborhood range.
[0058] Step S220: If there are more than three pixel values in the neighborhood, all of which are greater than or less than When the pixel value of pixel A at point A is equal to the pixel value of pixel A at point A, the pixel A is taken as the feature point. The judgment threshold 3 can be appropriately adjusted according to the size range of the neighborhood, and the present invention does not limit this.
[0059] Step S230: feature point Establish a domain with P as the center, calculate the grayscale centroid Q in the domain, and calculate the angle with the direction of the line from P to Q as the main direction , so as to adjust the pixels in the area to be parallel to the main direction with point P as the center.
[0060] For example, Figure 3 As shown, step S231 is based on the feature point With P as the center, establish an s*s square area with a side length of s = 5, where s is in pixels.
[0061] In addition, in order to perform smoothing filtering on the image in the square area and eliminate noise, it is convenient for subsequent feature description. Extraction, in an optional embodiment, step S232 can be implemented in the field with The Gaussian convolution kernel is used to smooth the image. The specific two-dimensional Gaussian convolution kernel formula is as follows:
[0062]
[0063] Step S233: Calculate feature points The grayscale centroid Q in the square area, where the grayscale centroid point calculation formula is as follows:
[0064]
[0065]
[0066] Step S234 takes the direction of the line from point P to the grayscale centroid Q as the main direction, and rotates the pixels in the square area around point P. The angle makes the positive x-axis parallel to the principal direction. The angle calculation formula is as follows:
[0067]
[0068] in, is the angle between the positive direction of the x-axis and the main direction, is the pixel value of image M at position (x, y).
[0069] Step S240 pairs the pixels in the area according to the point pair template to obtain several point pairs. , according to the point alignment The pixel value comparison result is assigned 1 or 0 to obtain the binary coded feature description .
[0070] The point pair template is Randomly paired pixel pairs in the field Once the positions of these pixel pairs are determined, they will be used as templates for subsequent feature points. In the domain, the point pair template will be continued to pair the pixels at the same position in the domain.
[0071] For example, in this example, the point pair template is 256 point pairs. In the field, 256 pixel pairs are matched according to the point pair template. ,in The point random generation method is consistent with If you click The pixel value at is greater than the point If the feature point is at the same point, 1 is returned, otherwise 0 is returned. In this way, the 256-dimensional binary code of each feature point can be obtained, which is the feature description at the feature point. .
[0072] Step S250: Image from target dataset P First, match the feature points between the previous and next frames, in order: The feature matching method is to traverse In the above example, the feature description of each feature point is The similarity S of the feature point descriptions in the formula is as follows: For two sets of feature points with a similarity higher than 0.6, they are considered to be matching feature point pairs. The similarity threshold can be adjusted according to actual conditions, and the present invention does not limit it.
[0073] The formula for calculating feature point similarity is as follows:
[0074]
[0075] Step S300 calculates the point cloud transformation relationship between adjacent frames based on the feature point pairs, and unifies the coordinate system of each point cloud data.
[0076] Specifically, according to the similar feature point pairs matched between the previous and next frames, and the corresponding relationship between the image M and the point cloud data C, the corresponding point cloud 3D point pairs between the previous and next two frames can be obtained. According to the coordinates of the 3D matching point pairs, the point cloud data of the previous and next frames can be calculated. arrive The coordinate transformation matrix The specific calculation formula is as follows:
[0077]
[0078]
[0079]
[0080] Pair Matrix By performing singular value decomposition, we can obtain: . arrive The coordinate transformation matrix The rotating part , translation part . Coordinate transformation matrix Specifically:
[0081]
[0082] According to the above logic, and Image matching feature points to obtain the corresponding 3D point cloud , and then calculate based on the three-dimensional matching point pairs arrive The coordinate transformation matrix According to the results of the previous step, we can get arrive The transformation matrix Repeat this step to convert the point cloud data in the target dataset P into The coordinate system of Coordinate system.
[0083] Step S400: feature points Characterization And the corresponding point cloud 3D point coordinates , as the lookup key and value, construct the feature lookup table F.
[0084] Specifically, in order to effectively improve the matching efficiency of feature descriptions in subsequent recognition and positioning, and solve the problem of low recognition efficiency due to the rich features of the target object, this example designs a method for constructing an image feature lookup table and a feature retrieval method, which converts high-dimensional binary feature descriptions into low-dimensional decimal feature expressions through special data structure encoding, and also designs a hierarchical node partitioning method to decompose each feature description into nodes at different layers, thereby improving recognition efficiency.
[0085] like Figure 4 As shown, the example steps of constructing the feature lookup table F include:
[0086] Step S410 describes the feature Divide into n groups of binary codes and convert them into decimal characteristic values as lookup tables .
[0087] Step S420: Form an N*n dimensional array , where N is all the feature points of the target Number.
[0088] Step S430 The first column of data After sorting the characteristic values, let the middle value correspond to As a layer of nodes; the corresponding two sets of characteristic values before and after the middle value ,according to The second column of data Sort the characteristic values and let the middle values correspond to As two nodes of the second layer; find The layer nodes of each column data, and the remaining As a leaf node.
[0089] Step S440 constructs a feature lookup table F according to the keys and values corresponding to the nodes at each layer and the leaf nodes.
[0090] For example, if Figure 4 As shown, the 256-dimensional binary feature description extracted from the target dataset P image M Integrate into a 4-dimensional array in groups of 64 bits as a lookup table , corresponding to the feature point The coordinate value of the three-dimensional point in the point cloud after the unified coordinate system is value.
[0091] Then, if Figure 5 As shown, all Make up a Dimensional array .according to The first column of data Sort the values by size and find The middle value 6 in Right now As the first layer node. The rest The values are calculated according to the ratio in the first column. The small ones are on the left and the big ones are on the right.
[0092] Furthermore, in the remaining two groups According to the second column data in the value Sort the values by size and find two ,Right now , As the second layer of two nodes. Then, the remaining Sort by size and get 4 groups .
[0093] The subsequent Sort by layers in the same way as above, such as Figure 6 As shown in Figure 1, if there are remaining keys after sorting the four key values, the remaining keys are used as the final leaf nodes. Finally, the keys and values composed of the nodes at each layer and the leaf nodes are the target feature lookup table F.
[0094] Once the target feature lookup table F is constructed, the position and posture of the current identified target can be located.
[0095] Step S500 extracts each feature point from the image and point cloud data of the current target Characterization , and the corresponding point cloud 3D point coordinates , find similar keys in the feature lookup table F to get values, and match the three-dimensional point pairs Calculate the transformation matrix , get the target pose.
[0096] For example, the sample process includes:
[0097] Step S510 is similar to step S200 to step S410 in that the feature description Convert to ;
[0098] Step S520: Compare the values of each layer node and leaf node in the feature lookup table F, record the nodes in the path as candidate keys, and compare them with The closest key is used as the matching result to obtain the corresponding value.
[0099] For example, Figure 6 As shown, In Compare with the first layer nodes of feature lookup table F to determine If the node size is smaller than the node size in the first layer, find a matching node on the left side of the second layer. value, otherwise on the right.
[0100] if Same as the first layer nodes, use Compare with all the nodes in the second layer, select the closest node as the branch to which the node in the second layer belongs, and then form a numerical level. , find the leaf node to which it belongs according to the fourth-level node division.
[0101] Mark the leaf nodes and the nodes that flow through the search path as candidate feature points. Among the candidate feature points, the one with the smallest difference The value is taken as the matching result. Thus, the 3D point coordinates of the point cloud of the target data in the current scene are matched with the 3D point coordinates of the point cloud corresponding to the value in the feature lookup table F to obtain the 3D point pair. .
[0102] Finally, the transformation matrix of the matched three-dimensional points is calculated in the same way as step S300 , and this matrix is the position and posture of the recognition target in the current scene.
[0103] On the other hand, corresponding to the above method, Figure 7 As shown, the present invention also provides a 3D object positioning system, which includes:
[0104] The storage unit is used to store a program including any of the steps of the 3D object positioning method as described above, so that the depth camera and the processing unit can call and execute it in a timely manner.
[0105] The depth camera is used to pre-collect the image and point cloud data of the target, and to collect the image and point cloud data of the current target.
[0106] Processing unit for extracting feature points of pre-collected images Its characteristics description ; Based on feature description Match similar feature point pairs in the previous and next frame images; calculate the point cloud transformation relationship between adjacent frames and unify the coordinate system of each point cloud data; respectively Characterization And the corresponding point cloud 3D point coordinates , as the lookup key and value, construct the feature lookup table F; extract each feature point from the image and point cloud data of the current target Characterization , and the corresponding point cloud 3D point coordinates , find similar keys in the feature lookup table F to get values, and match the three-dimensional point pairs Calculate the transformation matrix , get the target pose.
[0107] On the other hand, corresponding to the above method, the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein when the computer program is executed, the steps of any of the above 3D object positioning methods are implemented.
[0108] In summary, the 3D object positioning method, system and storage medium provided by the present invention cleverly utilize the collected recognition target data to construct a feature lookup table, and establish a search relationship with the subsequent target data, so as to match the coordinates of the three-dimensional point pairs of the point cloud for calculating the transformation relationship, thereby obtaining the target posture, and thus replacing the dependence of the traditional target recognition method on the 3D model. This makes it applicable to the recognition and positioning of any real object in the scene, and improves the application field and scene of the algorithm.
[0109] The preferred embodiments of the present invention disclosed above are only used to help explain the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is only limited by the claims and their full scope and equivalents. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
[0110] Those skilled in the art can understand that, in addition to implementing the system, device, unit and its various modules provided by the present invention in a purely computer-readable program code, it is entirely possible to implement the same program in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers and embedded microcontrollers by logically programming the method steps. Therefore, the system, device and its various modules provided by the present invention can be considered as a hardware component, and the modules included therein for implementing various programs can also be regarded as structures within the hardware component; the modules for implementing various functions can also be regarded as both software programs for implementing the method and structures within the hardware component.
[0111] In addition, all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including a number of instructions to enable a single-chip microcomputer, a chip or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), disk or optical disk and other media that can store program codes.
[0112] In addition, various implementation modes of the embodiments of the present invention may be arbitrarily combined, and as long as they do not violate the concept of the embodiments of the present invention, they should also be regarded as the contents disclosed by the embodiments of the present invention.
Claims
1. A 3D object positioning method, comprising the steps of: Pre-collect the target's image and point cloud data to determine the image pixel coordinates and point cloud 3D point coordinates The mapping relationship; Extracting feature points from an image Its characteristics ; Based on feature description Match similar feature point pairs in the previous and next frame images; Based on the feature point pairs, calculate the point cloud transformation relationship between adjacent frames and unify the coordinate system of each point cloud data; The feature points Characterization And the corresponding point cloud 3D point coordinates , as the lookup key and value, construct the feature lookup table F; Extract feature points from the image and point cloud data of the current target Characterization , and the corresponding point cloud 3D point coordinates , find similar keys in the feature lookup table F to get values, and match the three-dimensional point pairs Calculate the transformation matrix , get the target pose.
2. The 3D object positioning method according to claim 1, wherein the image feature points The extraction steps include: Determine whether there is a difference between the pixel value of each pixel point A in the image and the pixel point B in its neighborhood; If the number of pixel points B with differences in the neighborhood exceeds the threshold, pixel point A is taken as the feature point. .
3. The 3D object positioning method according to claim 1, wherein the feature describe The extraction steps include: Feature Points Establish a domain with P as the center, calculate the grayscale centroid Q in the domain, and calculate the angle with the direction of the line from P to Q as the main direction , so as to adjust the pixels in the area to be parallel to the main direction with point P as the center; Pair the pixels in the area into several pairs of points according to the point pair template , according to the point alignment The pixel value comparison result is assigned 1 or 0 to obtain the binary coded feature description .
4. The 3D object positioning method according to claim 3, wherein the step of constructing the feature lookup table F comprises: Describe the characteristics Divide into n groups of binary codes and convert them into decimal characteristic values as lookup tables ; All Form an N*n dimensional array , where N is all the feature points of the target Number; Will The first column of data After sorting the characteristic values, let the middle value correspond to As a layer of nodes; the corresponding two sets of characteristic values before and after the middle value ,according to The second column of data Sort the characteristic values and let the middle values correspond to As two nodes of the second layer; find The layer nodes of each column data, and the remaining As a leaf node; Construct a feature lookup table F based on the keys and values corresponding to each layer of nodes and leaf nodes.
5. The 3D object positioning method according to claim 4, wherein the step of obtaining a value by searching for a similar key in the feature lookup table F comprises: Describe the characteristics Convert to ; Respectively Compare the values of each layer node and leaf node in the feature lookup table F, record the nodes in the path as candidate keys, and compare them with The closest key is used as the matching result to obtain the corresponding value.
6. The 3D object positioning method according to claim 2, wherein the neighborhood range is the pixel range involved in a circular area with pixel point A as the center and R as the radius, wherein R is in units of pixel point size.
7. The 3D object positioning method according to claim 3, wherein the domain is a square range of s*s, wherein s is in units of pixel size, and wherein the domain at least supports the point pair template to pair 256 non-repetitive pixel pairs within its range.
8. The 3D object positioning method according to claim 3, wherein the steps further include: A Gaussian convolution kernel with σ=2 is used for image smoothing filtering in the domain.
9. A 3D object positioning system, comprising: A storage unit, used to store a program including the steps of the 3D object positioning method according to any one of claims 1 to 8, so that the depth camera and the processing unit can call and execute it in a timely manner; Depth camera, used to pre-collect the image and point cloud data of the target, and to collect the image and point cloud data of the current target; Processing unit for extracting feature points of pre-collected images Its characteristics ; Based on feature description Match similar feature point pairs in the previous and next frame images; calculate the point cloud transformation relationship between adjacent frames and unify the coordinate system of each point cloud data; respectively Characterization And the corresponding point cloud 3D point coordinates , as the lookup key and value, construct the feature lookup table F; Extract feature points from the image and point cloud data of the current target Characterization , and the corresponding point cloud 3D point coordinates , find similar keys in the feature lookup table F to get values, and match the three-dimensional point pairs Calculate the transformation matrix , get the target pose.
10. A computer-readable storage medium storing a computer program, wherein when the computer program is executed, the steps of the 3D object positioning method according to any one of claims 1 to 8 are implemented.
Citation Information
Cited By
Object positioning method, device and system, storage medium and program product
CN120495415A
