A pattern target for anti-interference measurement and positioning and positioning method thereof
By designing anti-interference circular pattern targets and corresponding recognition methods, and utilizing anti-reflective materials and coding designs, the problem of insufficient positioning of existing technologies in multi-scale long depth of field imaging and multi-environment interference has been solved, and the positioning in complex scenes has been achieved. Efficient and precise positioning.
Patent Information
- Application Number
- CN202410533725.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-30
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-04-30
AI Technical Summary
Existing model targets are insufficient for measurement and positioning applications under multi-scale long-depth imaging and various environmental interferences. They lack a universal and cost-effective design and are difficult to meet the needs for efficient positioning in complex scenarios.
A pattern target for anti-interference measurement and positioning is designed. It adopts a circular overall structure and a coding circle, is printed with an anti-reflective light-absorbing material, and is combined with a characteristic loose structure and coding design. The target is identified through the identification number library and constraint conditions. , to achieve efficient positioning.
It ensures recognition accuracy and positioning accuracy in complex scenes, reduces computing costs, breaks through the application limitations of ordinary mode targets, and achieves dynamic and static object capture and precise positioning in large scenes.
Smart Images

Figure CN118111403B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of three-dimensional measurement and positioning of cooperative objects, and specifically relates to a pattern target for anti-interference measurement and positioning and a positioning method thereof. Background Art
[0002] Pattern targets are mostly used to provide high-contrast features in measurement and positioning, and are widely used in visual measurement, navigation, and positioning tasks in the fields of intelligent manufacturing, aerospace, etc. Artificially designed pattern targets usually have stable and easily identifiable geometric features under most lighting and environmental conditions, thereby distinguishing them from the surrounding environment.
[0003] There are many existing pattern target designs, and corresponding technical innovations are made for measurement and positioning tasks in specific scenarios. For example, pattern targets such as AprilTag are widely used in mapping and positioning scenarios; in calibration scenarios, pattern targets are also in the form of arrays, and two-dimensional features such as corners or circles used for calibration can also achieve rapid mapping of pixel coordinates in images and corresponding world coordinates. However, the existing general pattern targets and their matching recognition algorithms are mostly used in close-range natural light scenes. There are few target designs and matching recognition algorithm designs that can meet multi-scale long depth of field imaging scenes and perform measurement and positioning under various environmental interferences. Most of them use existing target patterns or recognition algorithms to complete measurement tasks.
[0004] Therefore, in the application of pattern targets, the physical structure design of the target should be combined with the recognition algorithm design to jointly achieve efficient positioning requirements, provide low-cost recognition objects that are beneficial to the algorithm's energy efficiency, and corresponding recognition algorithm design. Summary of the invention
[0005] The present invention aims to solve the shortcomings of the prior art and proposes a pattern target for anti-interference measurement and positioning and a positioning method thereof. It aims at the needs of visual navigation and efficient positioning in complex scenes, breaks through the strong limitations of the application of ordinary pattern targets, and proposes a universal and cost-effective solution for different measurement needs.
[0006] To achieve the above object, the present invention provides the following solutions:
[0007] A pattern target for anti-interference measurement and positioning, comprising: a circular overall structure and a coding circle;
[0008] The circular overall structure uses concentric rings composed of an outer circle and an inner circle, the colors inside the concentric rings are kept consistent, the concentric rings correspond to a binary-coded identification serial number, the identification serial number is in the form of the coding circle, and the coding circles are distributed on the coding ring belts of the concentric rings;
[0009] The pattern target is printed with an anti-reflective light-absorbing material.
[0010] The present invention also provides a method for positioning a pattern target for anti-interference measurement and positioning, the positioning method is used to position the above-mentioned pattern target, comprising the following steps:
[0011] Constructing an identification number library of the pattern target, wherein each pattern target in the identification number library corresponds to a coordinate, defining parameters of the pattern target, and constructing constraint conditions;
[0012] Under the condition that the constraint conditions are met, the original mode target image is collected, and the distortion correction and denoising operations are performed on the original mode target image to obtain a preprocessed image;
[0013] Target recognition is performed on the preprocessed image, and based on the recognition result, the coordinates of the recognized pattern target are searched from the identification number library.
[0014] Preferably, the parameters defined include: the physical radius of the inner circle R 1. The radius of the inner circle in the plane image r 1. Physical radius of the outer circle R 2. The radius of the outer circle in the plane image r 2. The physical radius of the ring R 3. Radius of the annulus in planar imaging r 3. The physical radius of the coding circle is R 4. Radius of the encoding circle in planar imaging r 4.
[0015] Preferably, the method for constructing the constraint condition includes:
[0016] The sampling interval δ is set, the grayscale value of the center of the coding ring is extracted, and the first one-dimensional signal is obtained. The corresponding angle of each bit in the pattern target is obtained by deduction based on the first one-dimensional signal, and the first constraint formula is constructed based on the corresponding angle:
[0017] ,
[0018] in, N is the total number of bits of the pattern target, is the angle corresponding to each bit, in degrees, w 1 is the width of positive distribution in the signal segment of each positive bit, in mm, w 2 is the negative distribution width in the signal segment of each positive bit, in mm;
[0019] Acquire the pattern target image, and for the angle corresponding to the current bit being 1, extract the grayscale value from the inner circle to the outer circle along the radius direction of the concentric rings to obtain a second one-dimensional signal, and construct a second constraint formula based on the second one-dimensional signal:
[0020] ,
[0021] in, w 3 is the width of the ring belt, in mm, w 4 is the width of the positive signal, in mm;
[0022] For measuring distance D Model target in mm, camera focal length f mm, the pixel size is σ mm, the actual physical distance corresponding to a single pixel can be expressed as , and construct a feature edge constraint formula based on the first constraint formula, the second constraint formula and the actual physical distance corresponding to the single pixel:
[0023] ,
[0024] in, η is the minimum resolution distance.
[0025] Preferably, the target identification method comprises:
[0026] Performing edge detection on the preprocessed image to obtain an edge chain of the image edge, and performing ellipse detection on the edge chain to obtain candidate concentric circles;
[0027] Performing positioning frame recognition based on the candidate concentric circles to obtain an elliptical image containing the positioning frame, stretching the elliptical image into a circular target image through orthographic transformation, locating the center point of the circular target image to obtain the center point of the circular target image, and back-projecting the center point of the circular target image to obtain the true center point of the original mode target image;
[0028] After determining the true center point, the identification number on the circular target image is decoded to obtain the identification result of the original mode target image.
[0029] Preferably, the method for obtaining the edge chain comprises:
[0030] by Represents the gray value of the image, using the central difference instead of calculation x Directional gradient g x and y Directional gradient g y :
[0031] ,
[0032] For three adjacent points on a straight line p 1( x 1, y 1) p 2( x 2, y 2) p 3( x 3, y 3) In p 1 to p 3 There are sub-pixels in p 4. According to p 1. p 2 and p 3 modulus value fitting curve, on the curve p 1 o'clock and p There are sub-pixels between the three points p 4 , sub-pixel p The coordinate offset of 4 is as follows:
[0033] ,
[0034] in, For point The gradient modulus is obtained according to the coordinate offset p The coordinates of 4 ( x 4, y 4):
[0035] ;
[0036] An edge point linking operation is performed on scattered points of the entire graph to obtain the edge chain.
[0037] Preferably, the ellipse detection method includes:
[0038] Perform ellipse fitting on the edge chain to obtain ellipse parameters: major axis a , short axis b , the major axis of the ellipse and the image coordinate system x Axis angle θ , which satisfies the standard equation of an ellipse:
[0039]
[0040] in, x 0 is the center of the ellipse x coordinate, y 0 is the center of the ellipse yCoordinates; convert the standard equation of the ellipse with the general equation of the ellipse to obtain the conversion relationship equation:
[0041] ;
[0042] Establishing a point outside the circle through Lagrange equations The minimum distance equation to the circle, solve the distance from the point to the nearest point on the circle L :
[0043] ,
[0044] in, λ is the ratio of the outer circle radius to the inner circle radius;
[0045] Calculate the proportion of each point on the edge chain on the ellipse rate , count the points on the ellipse, and refit the ellipse to get the fitted ellipse:
[0046] ,
[0047] in, M is the length of the edge chain, count To calculate the number of point sets, thres is the threshold of the distance from the point to the ellipse, n is any point on the edge chain, dis is the function for calculating the distance, E is the fitting ellipse contour equation, P’ is the closest point to any point on the fitted ellipse equation;
[0048] Based on the fixed inverse characteristics of the inner and outer circles of the model target, the inner and outer attributes of the fitted ellipse are defined to obtain the inner circle set Q i and the outer circle set Q o ;
[0049] A single ellipse point set Q The leftmost point P l and the rightmost point P r Connection L lr As the dividing line, the ellipse point set Q Divided into upper part and the lower part , we get the definition of the inner circle of the ellipse and the definition of the outer circle of the ellipse:
[0050] ,
[0051] The inner and outer circle pairs whose center point distances satisfy the threshold are recorded as candidate contours of the ellipse pair, and the pair of ellipses with similar centers, respectively marked as the inner circle and the outer circle, are recorded as the candidate concentric circles.
[0052] Preferably, the method for obtaining the true center point includes:
[0053] Calculate the mean coordinates of the feature points on the candidate concentric circles to obtain the initial center point coordinates of a single circle ,in:
[0054] ;
[0055] Calculate the eccentricity error of the inner and outer ellipses in the candidate concentric circles:
[0056]
[0057] ,
[0058] in, is the eccentricity error of the inner circle in the x-axis direction, is the horizontal coordinate of the initial center point of the inner circle, is the eccentricity error of the inner circle in the y-axis direction, is the ordinate of the initial center point of the inner circle, is the eccentricity error of the outer circle on the x-axis, is the horizontal coordinate of the initial center point of the outer circle, is the eccentricity error of the outer circle on the y-axis, is the ordinate of the initial center point of the outer circle, K x and K y is a coefficient independent of radius;
[0059] The coordinate equation of the center point is obtained based on the eccentricity error:
[0060] ,
[0061] Substitute the initial center point coordinates into the center point coordinate equation to obtain the center point of the circular target image, and perform back-projection on the center point of the circular target image to obtain the true center point of the original mode target image.
[0062] Preferably, the decoding method comprises:
[0063] Starting from any starting point along the path of the coding ring belt, extracting the grayscale value of one circle of the coding ring belt and expanding it into a third one-dimensional signal;
[0064] Enumerate all reference signal code values in the identification number library, generate corresponding binary codes and reference signals, and perform rotation matching on the third one-dimensional signal and the reference signal;
[0065] The decimal code value of the binary code corresponding to the matched reference signal is solved by using a cyclic shift method to obtain the recognition result.
[0066] Compared with the prior art, the present invention has the following beneficial effects:
[0067] (1) Based on the recognition advantage of circular features, the present invention designs a loose feature structure to cope with the distortion caused by information compression in long depth of field imaging, ensure recognition accuracy and positioning accuracy, and use anti-reflective light-absorbing materials to print the target to ensure its high contrast characteristics in time-varying scenes;
[0068] (2) The present invention reduces the computational cost of pixel-by-pixel search and accelerates feature grouping and uniqueness verification through geometric feature constraints and coding design of pattern targets to achieve efficient positioning. It breaks through the strong limitations of the application of ordinary pattern targets to meet the needs of visual navigation and efficient positioning in complex scenes, and proposes a universal and cost-effective solution for different measurement needs, realizing the capture and precise positioning of dynamic and static objects in large scenes. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] In order to more clearly illustrate the technical solution of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0070] Figure 1 Schematic diagram of the pattern target of the embodiment of the present invention, wherein (a) is a pattern target sample of 10-bit encoding, (b) is a pattern target sample of 6-bit encoding in black inversion mode, and (c) is a pattern target sample of 6-bit encoding in white inversion mode;
[0071] Figure 2 It is a schematic diagram for explaining the size parameters of the model target according to an embodiment of the present invention;
[0072] Figure 3 This is a schematic diagram of a target identification process according to an embodiment of the present invention;
[0073] Figure 4 Schematic diagram of the target decoding process according to an embodiment of the present invention. DETAILED DESCRIPTION
[0074] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0075] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0076] Embodiment 1
[0077] In this embodiment, a pattern target for anti-interference measurement and positioning includes: a circular overall structure and a coding circle; the circular overall structure of the pattern target uses concentric rings composed of an outer circle and an inner circle, the colors inside the concentric rings of the pattern target remain consistent, the concentric rings of the pattern target correspond to a binary-coded identification serial number, the pattern target identification serial number is in the form of a pattern target coding circle, and the pattern target coding circles are distributed on the coding ring bands of the concentric rings of the pattern target; the pattern target is printed with an anti-reflective light-absorbing material.
[0078] In this embodiment, the pattern target only uses circular features to form the overall structure. In order to provide robust positioning features, concentric circles formed by an outer circle and an inner circle are used as the basic shape of the pattern target. The colors within the concentric rings must remain consistent in order to ensure maximum contrast under different lighting conditions. The colors of the connected areas can have two inverted modes, black and white, which are selected according to the specific measurement scenario. Each concentric circle will be assigned an identification serial number as the only identification basis in the scene. The serial number will be represented by a binary code and distributed on the coding ring band of the concentric circles in the form of a coding circle. The inner and outer circles form a boundary outside the coding ring band to determine a specific identification area. The generation of the identification code is rotationally invariant and easy to match. During identification, the pattern target candidate can be selected by searching for an approximate circular contour to reduce the consumption of computing resources. The decoding process requires sampling the grayscale value of the coding ring band at the center of the coding ring to generate a normalized signal. Specifically, Figure 1 As shown, Figure 1 (a) is a 10-bit coded pattern target sample. Figure 1 Middle (b), Figure 1 (c) shows an example of a 6-bit coded pattern target in both black and white inversion modes.
[0079] In addition, this embodiment provides design details of the pattern target material, and adopts anti-reflective light-absorbing materials to ensure its high contrast characteristics in time-varying scenes, specifically including: using anti-reflective light-absorbing materials to print the target to ensure its high contrast characteristics in time-varying scenes. Preferably, the white part of the pattern target material is made of glass beads, which are often used in the production of night-time reflective devices in aerospace and urban traffic roads; the black part is made of light-absorbing materials to enhance the contrast of the target edge on the surface of highly reflective materials. If the pattern target is used in feature deployment tasks in scenes such as highly reflective metal surfaces, light-absorbing coatings can also be used to complete the corresponding production. When used for measurement, the function of resisting ambient light interference around the clock can be achieved by adding a light source in the same direction as the optical center of the camera and lowering the camera exposure time.
[0080] Embodiment 2
[0081] In this embodiment, a positioning method for a pattern target for anti-interference measurement and positioning includes the following steps:
[0082] S1. Construct an identification number library of the model target, in which each model target corresponds to a coordinate, define the parameters of the model target, and construct constraint conditions.
[0083] In this embodiment, for N The unique code value is defined in binary form as N Then according to the given N Bit encoding, calculate all possible code values to set up the identification number library, or establish an identification number library based on the corresponding code values arranged on site.
[0084] The parameters defined include: the physical radius of the inner circle R 1. The radius of the inner circle in the plane image r 1. Physical radius of the outer circle R 2. The radius of the outer circle in the plane image r 2. The physical radius of the ring R 3. Radius of the annulus in planar imaging r 3. The physical radius of the coding circle is R 4. Radius of the encoding circle in planar imaging r 4.
[0085] Methods for constructing constraints include:
[0086] For the total number of N For the target mode, set the sampling interval δ (Here δThe accuracy can be arbitrary, depending on the degree of image blur and thus the size of the sampling interval), extract the grayscale value of the center of the coding ring, obtain the first one-dimensional signal, and deduce based on the first one-dimensional signal to obtain the corresponding angle of each bit in the pattern target, such as Figure 2 As shown, the width of each bit used to represent 1 and 0 can be calculated based on the first constraint formula constructed based on the corresponding angle:
[0087] ,
[0088] in, N is the total number of bits of the pattern target, is the angle corresponding to each bit, in degrees, w 1 is the width of positive distribution in the signal segment of each positive bit, in mm, w 2 is the negative distribution width in the signal segment of each positive bit, in mm;
[0089] Get the pattern target image, and for the angle corresponding to the current bit being 1, extract the grayscale value from the inner circle to the outer circle along the radius direction of the concentric rings to obtain the second one-dimensional signal for cross-verification of the authenticity of the positive signal, and construct the second constraint formula based on the second one-dimensional signal:
[0090] ,
[0091] in, w 3 is the width of the ring belt, in mm, w 4 is the width of the positive signal, in mm;
[0092] For measuring distance D Model target in mm, camera focal length f mm, the pixel size is σ mm, the actual physical distance corresponding to a single pixel can be expressed as , then when the target plane and the image plane are parallel, d The number of pixels of the specific image is converted. In order to ensure the quality of the feature edge during imaging, , All parameters of the target are limited according to the imaging distance, so that when the target is imaged at a specific distance, the spacing between feature edges is greater than the minimum resolution spacing. η According to the style design of each part of the pattern, under different parameter settings, the feature edge constraint formula is constructed based on the first constraint formula, the second constraint formula and the actual physical distance corresponding to a single pixel:
[0093] .
[0094] S2. Under the condition of satisfying the constraint conditions, the original mode target image is collected, and the distortion correction and denoising operations are performed on the original mode target image to obtain a preprocessed image.
[0095] S3. Perform target recognition on the preprocessed image, and search for the coordinates of the recognized pattern target from the identification number library based on the recognition result.
[0096] In this embodiment, a 10-bit coded target with a clockwise code value of 69 is used as an example, and its corresponding binary code is 0001000101. The specific recognition flow chart is as follows Figure 3 As shown, the target identification method includes:
[0097] S3.1. Perform edge detection on the preprocessed image to obtain the edge chain of the image edge, perform ellipse detection on the edge chain to obtain candidate concentric circles.
[0098] Methods for obtaining edge chains include:
[0099] by Represents the gray value of the image, using the central difference instead of calculation x Directional gradient g x and y Directional gradient g y :
[0100] ,
[0101] Points The corresponding gradient modulus With direction For three adjacent points on a straight line p 1( x 1, y 1) p 2( x 2, y 2) p 3( x 3, y 3), suppose the point with the largest modulus among these three points is p 2 points, use p 1 , p 3 The modulus value is used to calculate p 2 The sub-pixel coordinates corresponding to the point. p 1. p 2 and p 3 modulus value fitting curve, on the curve p 1 point draw p There are sub-pixel points between the 3 pointsp 4, which is the point p 2 The sub-pixel point, p The gradient modulus at point 4 is greater than p 1 to p Any point in 3, sub-pixel p The coordinate offset of 4 is as follows:
[0102] ,
[0103] According to the coordinate offset p The coordinates of 4 ( x 4, y 4):
[0104] ;
[0105] For edge points in the horizontal and vertical directions, horizontal and vertical interpolation is used to reduce the error caused by the fact that the gradient of some points is not calculated by Canny operation during interpolation calculation, and at the same time reduce the amount of calculation. The edge point linking operation is performed on the scattered points of the whole image by the method that the gradient direction angle of the point should be less than 90 degrees and the gradient value of the current point is greater than a certain threshold to obtain the edge chain.
[0106] Ellipse detection methods include:
[0107] Ellipse fitting for edge chain: Use FitEllipse() function in OpenCV to fit the ellipse and get the ellipse parameters: major axis a , short axis b , the major axis of the ellipse and the image coordinate system x Axis angle θ , which satisfies the standard equation of an ellipse:
[0108] ,
[0109] in, x 0 is the center of the ellipse x coordinate, y 0 is the center of the ellipse y Coordinates; Convert the standard equation of an ellipse to the general equation of an ellipse:
[0110] ,
[0111] Get the conversion relationship equation:
[0112] ;
[0113] Establishing a point outside the circle through Lagrange equations The equation for the minimum distance to the circle is derived and solved to get the closest point on the circle. Thus, the problem of the shortest distance from a point outside the circle to the circle is transformed into two steps: solving the distance from the point to the closest point on the circle and solving the distance between the points. L :
[0114] ,
[0115] in, λ is the ratio of the outer radius to the inner radius, ;
[0116] Calculate the ratio of each point on the edge chain to the ellipse rate , count the points on the ellipse, and refit the ellipse to get the fitted ellipse:
[0117] ,
[0118] in, M is the length of the edge chain, count To calculate the number of point sets, thres is the threshold of the distance from the point to the ellipse, n is any point on the edge chain, dis is the function for calculating the distance, E is the fitting ellipse contour equation, P’ The nearest point to the fitted ellipse equation from any point; the minimum distance from the entire point chain to the fitted ellipse contour is counted to determine whether its ratio meets the set threshold. If it does, it is retained as an ellipse. Points that do not meet the threshold condition are considered as outlier sample points and removed. The ellipse is fitted again for the optimized point set as the final ellipse point set for fitting. Q With the ellipse center C candidate.
[0119] Based on the fixed inverted features of the inner and outer circles of the model target (white inside and black outside, white outside and black inside), the inner and outer attributes of the fitted ellipse are defined to obtain the inner circle set. Q i and the outer circle set Q o ;
[0120] A single ellipse point set Q The leftmost point P l and the rightmost point P r Connection L lr As the dividing line, the ellipse point set Q Divided into upper part and the lower part , we get the definition of the inner circle of the ellipse and the definition of the outer circle of the ellipse:
[0121] ,
[0122] The inner and outer circle pairs whose center point distances meet the threshold are recorded as candidate contours of the ellipse pair, and the pair of ellipses with similar centers, identified as inner and outer circles, are recorded as candidate concentric circles. Preferably, in conditional selection, the ratio of the physical radius of the inner and outer circles can be used to set a threshold with a certain redundancy, so as to screen candidate concentric circles that meet the designed physical size, narrow the search range, remove the influence of noise points, and accelerate the recognition algorithm.
[0123] S3.2. Perform positioning frame recognition based on the candidate concentric circles to obtain an elliptical image containing the positioning frame, stretch the elliptical image into a circular target image through orthographic transformation, locate the center point of the circular target image to obtain the center point of the circular target image, back-project the center point of the circular target image to obtain the true center point of the original mode target image.
[0124] In this embodiment, the target is extracted by positioning the frame, specifically: the outer circle is used as the outer boundary of the positioning coding ring. In order to facilitate decoding, the four corner points of the minimum circumscribed rectangle of the outer ellipse are used as control points. , used to stretch the elliptical pattern target back to a circle. Perform orthographic projection on the pattern target image, including: arranging the control points at the four corners of the square, calculating the perspective transformation matrix P :
[0125]
[0126] The corresponding corner point The image coordinates can be set freely as long as the four corner points satisfy the feature of forming a square. According to the maximum calculation time allowed for single mode target detection, the size of the transformed image is adjusted. Then the perspective transformation matrix can be obtained. P Preferably, the side length should not be too small, as a too small transformed image will result in information loss at low resolution, affecting the decoding accuracy; the side length should not be too large, as this will increase the generation time of the target image in the normal view transformed mode.
[0127] Methods for obtaining the true center point include:
[0128] The projection of the center of the projected circle and the center of the observed circle are not at the same image position. This effect is more obvious when the imaging tilt is severe, and is called eccentricity error. When the center point positioning constraint is too simple, the algorithm cannot effectively reduce the eccentricity error, which will eventually affect the positioning accuracy and decoding process. Since the gradient directions of all elliptical contour points point to the center of the circle, the gradient directions of the inner and outer elliptical edge points are used for detection in edge detection. The gradient direction is converted into vector coordinates and transformed to the front view of the target through a matrix to avoid the time-consuming secondary gradient calculation. Calculate the mean coordinates of the feature points on the candidate concentric circles to obtain the initial center point coordinates of a single circle. ,in:
[0129] ;
[0130] In order to obtain the true projection center of the concentric circle control point, the two centers of the ellipse pair of the concentric circle imaging are used to correct the eccentricity error. In camera perspective imaging, the inner and outer circles of the concentric circle appear as two ellipses separated by two centers. Calculate the eccentricity error of the inner and outer ellipses in the candidate concentric circle:
[0131]
[0132] ,
[0133] in, is the eccentricity error of the inner circle in the x-axis direction, is the horizontal coordinate of the initial center point of the inner circle, is the eccentricity error of the inner circle in the y-axis direction, is the ordinate of the initial center point of the inner circle, is the eccentricity error of the outer circle on the x-axis, is the horizontal coordinate of the initial center point of the outer circle, is the eccentricity error of the outer circle on the y-axis, is the ordinate of the initial center point of the outer circle, K x and K y is a coefficient independent of radius;
[0134] The coordinate equation of the center point is obtained based on the eccentricity error:
[0135] ,
[0136] Substitute the initial center point coordinates into the center point coordinate equation to obtain the center point of the circular target image. , for the center point of the circular target image Perform back projection to obtain the true center point of the original target image .
[0137] S3.3. After determining the true center point, decode the identification number on the circular target image to obtain the recognition result of the original mode target image.
[0138] The decoding method includes: starting from any starting point along the path of the coding ring band, extracting the grayscale value of one circle of the coding ring band and expanding it into a third one-dimensional signal; enumerating all reference signal code values in the identification number library, generating corresponding binary codes and reference signals, and performing rotation matching on the third one-dimensional signal and the reference signal; using a cyclic shift method to solve the decimal code value of the binary code corresponding to the matched reference signal to obtain an identification result.
[0139] In this embodiment, if Figure 4 As shown, the original signal is matched with the reference library by maximizing the cross-correlation. Starting from any starting point along the path of the coding ring band, the grayscale value of one circle of the coding ring band is extracted and expanded into a third one-dimensional signal. Preferably, the sampling interval is set to 1 degree here to obtain a 360-bit normalized signal corresponding to 360 degrees in one circle. Enumerate all the reference signal code values in the identification number library, generate corresponding binary codes and reference signal expressions, and rotate the third one-dimensional signal with the reference signal. Each reference signal must repeat two complete cycles (720°) to ensure that accurate results are obtained regardless of where the starting point of the sampling signal is. In the case of correct encoding, an optimal matching rate of 100% can be obtained. The maximum correlation is obtained by performing rotation matching on each reference signal. At the corresponding rotation angle, Figure 4 The matching of the current position is given in the form of (degree)-(correlation). For each position where a positive signal is detected, we combine the value calculated at the center of the coding circle as a cross-validation to resist the cross-correlation loss under low-resolution decoding. The decoding uses the cyclic shift method to solve the corresponding decimal code value. The obtained binary code value verifies the method of the corresponding decimal minimum value to prevent code value overlap. The result after the cycle is completed will be used as a binary number. In addition, as long as the matching coding library is unique and meets the design principles, the coding can be of any length. Furthermore, in a specific measurement scenario, the code values of all deployed targets are known. By pre-recording all code values as a dictionary, the accuracy of the decoding results can be cross-validated and the search range can be narrowed to obtain better retrieval time.
[0140] The embodiments described above are only descriptions of the preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary technicians in this field should all fall within the protection scope determined by the claims of the present invention.
Claims
1. A positioning method for a pattern target for anti-interference measurement and positioning, the positioning method is used to position the pattern target, the pattern target comprising: A circular overall structure and a coding circle; the circular overall structure uses concentric rings composed of an outer circle and an inner circle, the colors inside the concentric rings are kept consistent, the concentric rings correspond to a binary-coded identification serial number, the identification serial number is in the form of the coding circle, and the coding circles are distributed on the coding ring bands of the concentric rings; the pattern target is printed with an anti-reflective light-absorbing material; It is characterized by comprising the following steps: Constructing an identification number library of the pattern target, wherein each pattern target in the identification number library corresponds to a coordinate, defining parameters of the pattern target, and constructing constraint conditions; Under the condition that the constraint conditions are met, the original mode target image is collected, and the distortion correction and denoising operations are performed on the original mode target image to obtain a preprocessed image; Performing target recognition on the preprocessed image, and searching the coordinates of the recognized pattern target from the identification number library based on the recognition result; The parameters defined include: the physical radius of the inner circle R 1. The radius of the inner circle in the plane image r 1. Physical radius of the outer circle R 2. The radius of the outer circle in the plane image r 2. The physical radius of the ring R 3. Radius of the annulus in planar imaging r 3. The physical radius of the coding circle is R 4. Radius of the encoding circle in planar imaging r 4; The method of constructing the constraint condition includes: The sampling interval δ is set, the grayscale value of the center of the coding ring is extracted, and the first one-dimensional signal is obtained. The corresponding angle of each bit in the pattern target is obtained by deduction based on the first one-dimensional signal, and the first constraint formula is constructed based on the corresponding angle: , in, N is the total number of bits of the pattern target, is the corresponding angle for each bit, in degrees, w 1 is the width of positive distribution in the signal segment of each positive bit, in mm, w 2 is the negative distribution width in the signal segment of each positive bit; Acquire the pattern target image, and for the angle corresponding to the current bit being 1, extract the grayscale value from the inner circle to the outer circle along the radius direction of the concentric rings to obtain a second one-dimensional signal, and construct a second constraint formula based on the second one-dimensional signal: , in, w 3 is the width of the ring belt, in mm, w 4 is the width of the positive signal, in mm; For measuring distance D Model target in mm, camera focal length f mm, the pixel size is σ mm, the actual physical distance corresponding to a single pixel can be expressed as , and construct a feature edge constraint formula based on the first constraint formula, the second constraint formula and the actual physical distance corresponding to the single pixel: , in, η is the minimum resolution distance.
2. The positioning method of a pattern target for anti-interference measurement and positioning according to claim 1, characterized in that: The target identification method comprises: Performing edge detection on the preprocessed image to obtain an edge chain of the image edge, and performing ellipse detection on the edge chain to obtain candidate concentric circles; Performing positioning frame recognition based on the candidate concentric circles to obtain an elliptical image containing the positioning frame, stretching the elliptical image into a circular target image through orthographic transformation, locating the center point of the circular target image to obtain the center point of the circular target image, and back-projecting the center point of the circular target image to obtain the true center point of the original mode target image; After the true center point is determined, the identification number on the circular target image is decoded to obtain the identification result of the original mode target image.
3. The positioning method of a pattern target for anti-interference measurement and positioning according to claim 2, characterized in that: The method for obtaining the edge chain comprises: by Represents the gray value of the image, using the central difference instead of calculation x Directional gradient g x and y Directional gradient g y : , For three adjacent points on a straight line p 1( x 1, y 1) p 2( x 2, y 2) p 3( x 3, y 3) In p 1 to p 3 There are sub-pixels in p 4. According to p 1. p 2 and p 3 modulus value fitting curve, on the curve p 1 o'clock and p There are sub-pixels between the three points p 4 , sub-pixel p The coordinate offset of 4 is as follows: , in, For point The gradient modulus is obtained according to the coordinate offset p The coordinates of 4 ( x 4, y 4): ; An edge point linking operation is performed on scattered points of the entire graph to obtain the edge chain.
4. The positioning method of a pattern target for anti-interference measurement and positioning according to claim 3, characterized in that: The ellipse detection method comprises: Perform ellipse fitting on the edge chain to obtain ellipse parameters: major axis a , short axis b , the major axis of the ellipse and the image coordinate system x Axis angle θ , which satisfies the standard equation of an ellipse: in, x 0 is the center of the ellipse x coordinate, y 0 is the center of the ellipse y Coordinates; convert the standard equation of the ellipse with the general equation of the ellipse to obtain the conversion relationship equation: ; Establishing a point outside the circle through Lagrange equations The minimum distance equation to the circle, solve the distance from the point to the nearest point on the circle L : , in, λ is the ratio of the outer circle radius to the inner circle radius; Calculate the proportion of each point on the edge chain on the ellipse rate , count the points on the ellipse, and refit the ellipse to get the fitted ellipse: , in, M is the length of the edge chain, count To calculate the number of point sets, thres is the threshold of the distance from the point to the ellipse, n is any point on the edge chain, dis is the function for calculating the distance, E is the fitting ellipse contour equation, P’ is the closest point to any point on the fitted ellipse equation; Based on the fixed inverse characteristics of the inner and outer circles of the model target, the inner and outer attributes of the fitted ellipse are defined to obtain the inner circle set Q i and the outer circle set Q o ; A single ellipse point set Q The leftmost point P l and the rightmost point P r Connection L lr As the dividing line, the ellipse point set Q Divided into upper part and the lower part , we get the definition of the inner circle of the ellipse and the definition of the outer circle of the ellipse: , The inner and outer circle pairs whose center point distances satisfy the threshold are recorded as candidate contours of the ellipse pair, and the pair of ellipses with similar centers, respectively marked as the inner circle and the outer circle, are recorded as the candidate concentric circles.
5. The positioning method of a pattern target for anti-interference measurement and positioning according to claim 4, characterized in that: The method for obtaining the true center point includes: Calculate the mean coordinates of the feature points on the candidate concentric circles to obtain the initial center point coordinates of a single circle ,in: ; Calculate the eccentricity error of the inner and outer ellipses in the candidate concentric circles: , in, is the eccentricity error of the inner circle in the x-axis direction, is the horizontal coordinate of the initial center point of the inner circle, is the eccentricity error of the inner circle in the y-axis direction, is the ordinate of the initial center point of the inner circle, is the eccentricity error of the outer circle on the x-axis, is the horizontal coordinate of the initial center point of the outer circle, is the eccentricity error of the outer circle on the y-axis, is the ordinate of the initial center point of the outer circle, K x and K y is a coefficient independent of radius; The coordinate equation of the center point is obtained based on the eccentricity error: , Substitute the initial center point coordinates into the center point coordinate equation to obtain the center point of the circular target image, and perform back-projection on the center point of the circular target image to obtain the true center point of the original mode target image.
6. The positioning method of a pattern target for anti-interference measurement and positioning according to claim 5, characterized in that: The decoding method comprises: Starting from any starting point along the path of the coding ring belt, extracting the grayscale value of one circle of the coding ring belt and expanding it into a third one-dimensional signal; Enumerate all reference signal code values in the identification number library, generate corresponding binary codes and reference signals, and perform rotation matching on the third one-dimensional signal and the reference signal; The decimal value of the binary code corresponding to the matched reference signal is solved by using a cyclic shift method to obtain the recognition result.
