Complex object surface three-dimensional measurement method based on multi-line structure optical coding and decoding

Through the multi-line structured light system and image processing algorithm, the problem of line fringe sorting in multi-line structured light technology has been solved, efficient and accurate three-dimensional measurement has been achieved, and the problems of complicated sorting and low efficiency in traditional methods have been overcome.

CN118706033AActive Publication Date: 2024-09-27GUANGDONG UNIV OF TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410724120.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-09-27
Estimated Expiration
2044-06-05

AI Technical Summary

Technical Problem

Multi-line structured light technology may cause missing and disconnected phenomena when projected onto the surface of an object, making it difficult to sort line stripes and affecting measurement accuracy and efficiency.

Method used

Using a multi-line structured light system, the projection image is analyzed by computer, and logical coding and image processing algorithms such as interval gradient filtering and mean nearest neighbor algorithm are used to achieve accurate sorting of multi-line stripes and reconstruct object depth information.

Benefits of technology

It improves the accuracy and measurement speed of line stripe sorting, reduces the dependence on mobile scanning equipment, and significantly improves the efficiency and accuracy of three-dimensional measurement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118706033A
    Figure CN118706033A
Patent Text Reader

Abstract

The invention discloses a complex object surface three-dimensional measurement method based on multi-line structure optical coding and decoding. Firstly, multi-line stripes are logically coded through a line shift projection scheme. In the decoding process, stubborn noisy points in the center line graph are filtered out through the signal-noise distribution state. The method comprises the following steps of: sorting non-ideal line stripes in a first center line graph by taking a horizontal distance between a center line point and each center line mass center as a sorting basis, generating a region segmentation graph at the same time, and dividing a middle region of bilateral adjacent lines; and carrying out AND logic operation on other center line graphs and the region segmentation graph, and adding due bias to each line according to coding logic to realize sorting and complete a decoding process. According to the method, the influence of sorting difficulty caused by non-ideal line fringes is eliminated, rapid robust three-dimensional measurement of discontinuous objects can be realized through a small amount of time, and the problems of low signal-to-noise ratio of a center line graph and complex sorting of the non-ideal line fringes can be effectively solved through an interval gradient filtering algorithm and a mean value nearest neighbor algorithm.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of multi-line structured light encoding and decoding, and in particular to a three-dimensional measurement method for the surface of a complex object based on multi-line structured light encoding and decoding. Background Art

[0002] As a key fusion field of modern optics and computer vision, structured light technology is becoming increasingly important. This technology achieves non-contact high-precision three-dimensional measurement by accurately projecting and capturing light information. It has shown broad application prospects in industrial manufacturing, biomedicine, cultural heritage protection and other fields, and provides strong technical support for many industries. With its unique advantages, structured light technology plays an increasingly important role in the field of three-dimensional measurement and reconstruction.

[0003] In the industrial application of structured light 3D measurement technology, line structured light methods occupy an important position, among which single-line laser structured light and multi-line structured light are particularly commonly used. Single-line laser structured light is favored for its high precision and simple encoding characteristics. However, it only measures a single line at a time, which is relatively inefficient and often requires the assistance of scanning mobile devices, which increases costs. In contrast, multi-line structured light technology significantly improves image processing efficiency and reduces dependence on mobile scanning devices by projecting multiple light beams onto the surface of an object. However, since multi-line stripes may be missing or disconnected when projected onto the surface of an object, these stripes may be irregularly divided into multiple independent parts, greatly increasing the difficulty of line sorting. Accurate sorting of line stripes is crucial to ensuring measurement accuracy. Therefore, how to improve the accuracy of line stripe sorting while ensuring measurement speed has become an important research direction in the development of multi-line structured light technology. Summary of the invention

[0004] The purpose of the present invention is to overcome the deficiencies of the prior art and provide a three-dimensional measurement method for the surface of a complex object based on multi-line structured light encoding and decoding.

[0005] To achieve the above purpose, the technical solution provided by the present invention is:

[0006] A three-dimensional measurement method for the surface of a complex object based on multi-line structured light encoding and decoding is implemented by a multi-line structured light system, which includes a projector, a camera and a computer; the projector is responsible for projecting a preset pattern, the camera synchronously captures an image, and the computer analyzes and processes the captured image;

[0007] Methods include:

[0008] The multi-line stripes are logically encoded by a computer, which includes setting the projection matrix A with a size of m*n m*n ;

[0009] The projection matrix A m*n Circularly shift right to obtain other projected images;

[0010] The object to be measured is placed above the reference plane. The projector projects the multi-line stripe structured light obtained according to the projection image to the object to be measured in turn, and the camera is used to synchronously capture the stripe image with deformed stripes. i , i is the number of projected images, and the fringe image I i Transfer to a computer for analysis;

[0011] Computer analysis includes:

[0012] Based on the stripe image I i The extreme point in the horizontal direction, find the center line binary graph I' i ;

[0013] The interval gradient filtering algorithm based on the signal-noise distribution state in the line fringe pattern is used to calculate the center line binary image I' i Perform noise reduction processing;

[0014] All the center lines in the center line binary image I'1 after noise reduction are sorted by using the mean nearest neighbor algorithm, including obtaining the horizontal coordinate of the centroid of each stripe;

[0015] Combined with the horizontal coordinates of the centroids of each stripe, the centerline binary images of the remaining centerlines that have not been sorted are sorted based on the centerline binary image I'1 in which all centerlines have been denoised and sorted;

[0016] The decoded centerline points of the multi-line stripes are stereo matched with the centerline points in the projected image, and the depth information of the object is reconstructed through triangulation combined with calibration parameters.

[0017] Furthermore, the logic encoding of the multi-line stripes is performed by a computer, including:

[0018] Take a single-pixel straight line of equal spacing of length n as the projection line, and the horizontal coordinate of each line satisfies the following formula:

[0019] u k =(z-1)*Δw+x0,

[0020] (a-1)*(Δw+1)+x0≤n,

[0021] Where k = 1, 2, ..., a, Δw represents the width between lines, x0 represents the horizontal coordinate of the first line, u k Represents the horizontal coordinate of the kth line.

[0022] Furthermore, the projection matrix A m*nWhen other projection images are obtained by circular right shift, the translation amount of other projection images satisfies the following formula:

[0023] Δα t =t*Δw / T,

[0024] Where t=1,2,...,T-1, T represents the total number of projection images, Δα t Indicates that the t-th projection image is relative to A m*n The amount of cyclic translation.

[0025] Further, obtain the center line binary graph I' i ,include:

[0026] To extract the center line of the original image, first transform the image I i Grayscale, by finding I i The center line of the image is extracted from the local maximum point, and then the background part is set to 0 and the center line pixel point is set to 1, so as to obtain the center line binary image I' i , the formula is as follows:

[0027]

[0028] Among them, I' i (x,y) represents the center line binary image I' i The gray value of the pixel (x, y) in the center, grad(x, y) represents the center line binary image I i The horizontal gradient of the pixel (x, y) is given by the formula grad(x, y) = I i (x,y)-I i (x-1,y) find, I i (x,y) represents the center line binary image I i The grayscale value of the pixel (x, y).

[0029] Furthermore, the interval gradient filtering algorithm based on the signal-noise distribution state in the line fringe image is used to filter the center line binary image I' i Perform noise reduction processing, including:

[0030] Obtain the centerline binary graph I' i The interval gradient matrix f i (x,y), satisfies the following formula:

[0031] f i (x,y)=[2*I i (x,y)-I i (x-2,y)-I i (x+2,y)] / 2,

[0032] Among them, I i(x,y) represents the graph I i The gray value of the pixel (x, y) in the

[0033] Binary graph of center line I' i All non-zero points in the image are judged as noise points. If the interval gradient value of the pixel point is less than the set threshold, its gray value is set to 1, that is, the pixel point is the center line point; if it is greater than or equal to the set threshold, its gray value is set to 0, that is, the point is a noise point. The formula used is as follows:

[0034]

[0035] Furthermore, all the center lines in the center line binary image I'1 after denoising are sorted by the mean nearest neighbor algorithm, including:

[0036] A1. Sort some points in the binary centerline image I'1 after denoising: traverse the binary centerline image I'1 after denoising by row, and select rows that contain exactly a centerline points. After such selection, assuming that d rows that meet the conditions are found, the a centerline points in the selected rows are temporarily classified into the 1st to ath lines in order of precedence;

[0037] A2. Sum the horizontal coordinates of the sorted points on the same line and divide them by the total number of conditional rows d to estimate the horizontal coordinates of a stripe centroids;

[0038] A3. Keep the sorting of some center line points in step A1, and compare the horizontal coordinates of the unsorted center line points in the center line binary image I'1 after denoising processing except those sorted in step A1 with the estimated horizontal coordinates of the a stripe centroids one by one; calculate the distance between the horizontal coordinate of the center line point and the horizontal coordinate of the centroid of each stripe, that is, the horizontal distance between the center line point and the centroid of each stripe, and classify the center line point into the stripe whose horizontal distance to the stripe centroid is closest.

[0039] Furthermore, all the center lines in the center line binary image I'1 after denoising are sorted by the mean nearest neighbor algorithm, including:

[0040] B1. Sort some points in the binary centerline image I'1 after denoising: traverse the binary centerline image I'1 after denoising by row, and select rows that contain exactly a centerline points. After such selection, assuming that d rows that meet the conditions are found, the a centerline points in the selected rows are temporarily classified into the 1st to ath lines in order of precedence;

[0041] B2. Sum the horizontal coordinates of the sorted points on the same line and divide them by the total number of conditional rows d to estimate the horizontal coordinates of a stripe centroids;

[0042] B3. Discard the sorting of some center line points in step B1, and compare the horizontal coordinates of all center line points in the center line binary image I'1 after noise reduction with the estimated horizontal coordinates of a stripe centroids one by one; calculate the distance between the horizontal coordinate of the center line point and the horizontal coordinate of the centroid of each stripe, that is, the horizontal distance between the center line point and the centroid of each stripe, and classify the center line point into the stripe whose horizontal distance to the stripe centroid is closest.

[0043] Furthermore, in combination with the horizontal coordinates of the centroids of each stripe, the centerline binary image I'1 after noise reduction processing in which all centerlines have been sorted is used to sort the remaining centerline binary images that have not been sorted, including:

[0044] Using the obtained horizontal coordinates of the centroids of each stripe, fill in the missing parts of the line and extend the two ends of the line to the vertical area of ​​the entire image, set the value of all pixels in the area between the kth line and the k+1th line of the center line binary image I'1 after noise reduction to k, k = 1, 2, ..., a-1; and set the value of all pixels in the area to the right of the ath line to a, and obtain the region segmentation map M;

[0045] The unsorted centerline binary graph I' j , j = 2, 3, ..., T, T represents the total number of projection images, and performs "AND" logic operation with M respectively, and then adds the appropriate offset to the number of each line according to the coding logic to realize the sorting of all line stripes.

[0046] Compared with the prior art, the principles and advantages of this technical solution are as follows:

[0047] 1. Processing lines by row divides the overall problem into local problems, eliminating the impact of sorting difficulties caused by non-ideal line stripes. Through a small number of projection images, fast and robust three-dimensional measurement of discontinuous objects can be achieved. The proposed interval gradient filtering algorithm and mean nearest neighbor algorithm effectively solve the problems of low signal-to-noise ratio of the centerline image and complex sorting of non-ideal line stripes.

[0048] 2. Compared with the traditional method of eliminating incorrectly sorted feature points by constraining the field of view, this technical solution can achieve decoding only by image processing, avoiding the tedious parameter adjustment process and significantly improving the speed of three-dimensional measurement.

[0049] 3. The correlation between pixels in spatial domain measurement is studied, and corresponding constraints are added. These constraints can ensure that the positional relationship between feature points in each row is correctly solved, thereby further improving the measurement accuracy.

[0050] 4. According to the needs of actual application scenarios, this technical solution provides the option of primary or secondary sorting of some centerline points, so that users can flexibly adjust the emphasis on accuracy and speed as needed. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the services required for use in the embodiments or the prior art descriptions are briefly introduced below. 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 work.

[0052] Figure 1 This is a principle flow chart of a method for three-dimensional measurement of complex object surfaces based on multi-line structured light encoding and decoding according to the present invention;

[0053] Figure 2 Schematic diagram of the logical coding of the first four line stripes in the projected image;

[0054] Figure 3 Synchronize the camera to take pictures;

[0055] Figure 4 is the centerline plot without noise reduction;

[0056] Figure 5 This is the centerline diagram after noise reduction;

[0057] Figure 6 Some centerline points that meet the conditions;

[0058] Figure 7 This is the effect diagram of the estimated value of the horizontal coordinate of the center of mass;

[0059] Figure 8 To complete the sorting of the center line binary graph;

[0060] Fig. 9 is the region segmentation map;

[0061] Fig.10 Sort the graph for all line stripes. DETAILED DESCRIPTION

[0062] The present invention will be further described below in conjunction with specific embodiments:

[0063] The present embodiment describes a method for three-dimensional measurement of the surface of a complex object based on multi-line structured light encoding and decoding, which is implemented by a multi-line structured light system, which includes a projector, a camera and a computer; the projector is responsible for projecting a preset pattern, the camera synchronously captures the image, and the computer analyzes and processes the captured image.

[0064] like Figure 1 As shown, the specific working steps are as follows:

[0065] S1. Logical coding of multi-line stripes by computer:

[0066] First, set the projection matrix A to a size of 720*480 720*480 , and take 20 equally spaced single-pixel straight lines of length 480 as the projection lines. The horizontal coordinate of each line satisfies the following formula:

[0067] u k =(z-1)*36+1

[0068] (20-1)*(Δw+1)+x0≤480

[0069] Where k = 1, 2, ..., 20, Δw represents the width between lines, x0 represents the horizontal coordinate of the first line, u k Represents the horizontal coordinate of the kth line.

[0070] S2, the projection matrix A 720*480 Circularly shift right to obtain other projected images, and the translation amounts of other projected images satisfy the following formula:

[0071] Δα t =t*Δw / T,

[0072] Where t=1,2,...,T-1, T represents the total number of projection images, Δα t Indicates that the t-th projection image is relative to A m*n The amount of cyclic translation.

[0073] The specific steps are as follows:

[0074] S2-1, A 720*480 All pixels in the image are circularly translated to the right by 6 units to obtain the projection image B. 720*480 ;

[0075] S2-2, A 720*480 All pixels in the image are circularly translated to the right by 12 units to obtain the projection image C. 720*480 ;

[0076] S2-3, A 720*480 All pixels in the image are circularly translated to the right by 18 units to obtain the projection image D. 720*480 ;

[0077] By analogy, a total of 6 projection images A to F are obtained. The first four lines of each projection image are taken as the logic coding diagram, such as Figure 2As shown in the figure. Since the last five projection images are obtained by cyclically shifting the first projection image to the right, and the offset is less than the line width, the lines of the last five images can be sorted by obtaining the area between the two lines of the first image.

[0078] S3, the object to be measured is placed above the reference plane, and the projector sequentially projects the multi-line stripe structured light obtained according to the projection image to the object to be measured, and the camera is used to synchronously capture the stripe image with the deformed stripes I i , i = 1, 2, ..., 6, and the fringe image I i Transfer to computer for analysis; for the convenience of display, I i Some background areas are cropped, such as Figure 3 As shown;

[0079] Computer analysis includes:

[0080] S3-1. Based on stripe image I i The extreme point in the horizontal direction, find the center line binary graph I' i , the specific process is as follows:

[0081] To extract the center line of the original image, first transform image I i Grayscale, by finding I i The center line of the image is extracted from the local maximum point, and then the background part is set to 0 and the center line pixel point is set to 1, so as to obtain the center line binary image I' i , the formula is as follows:

[0082]

[0083] Among them, I' i (x,y) represents the center line binary image I' i The gray value of the pixel (x, y) in the center, grad(x, y) represents the center line binary image I i The horizontal gradient of the pixel (x, y) is given by the formula grad(x, y) = I i (x,y)-I i (x-1,y) find, I i (x,y) represents the center line binary image I i The gray value of the pixel (x, y) in the image. Take the first center line binary image I1 as the display, as shown in Figure 4 As shown;

[0084] S3-2, due to the influence of ambient light and object reflectivity, the center line image obtained through the local maximum point will inevitably contain a lot of noise, and these noises are difficult to eliminate through traditional filtering methods such as Gaussian filtering or mean filtering. Therefore, this step uses the interval gradient filtering algorithm based on the signal-noise distribution state in the line fringe image to filter the center line binary image I'i Perform noise reduction processing;

[0085] The process of this step is as follows:

[0086] The grayscale value near the center line has a large drop, while the grayscale value near the noise point generally has a small fluctuation and low contrast. Using this feature, an interval gradient filter is designed:

[0087] Obtain the centerline binary graph I' i The interval gradient matrix f i (x,y), satisfies the following formula:

[0088] f i (x,y)=[2*I i (x,y)-I i (x-2,y)-I i (x+2,y)] / 2,

[0089] Among them, I i (x,y) represents the graph I i The gray value of the pixel (x, y) in the

[0090] Binary graph of center line I' i All non-zero points in the image are judged as noise points. If the interval gradient value of the pixel point is less than 120, its gray value is set to 1, that is, the pixel point is the center line point; if it is greater than or equal to 120, its gray value is set to 0, that is, the point is a noise point. The formula used is as follows:

[0091]

[0092] Centerline binary image after noise reduction I' i like Figure 5 shown.

[0093] S3-3, sorting all the center lines in the center line binary image I'1 after noise reduction by using the mean nearest neighbor algorithm, the process is as follows:

[0094] A1. Sort some points in the binary centerline image I'1 after denoising: traverse the binary centerline image I'1 after denoising by row, and select the row containing exactly 20 centerline points, such as Figure 6 After such screening, assuming that d rows that meet the conditions are found, the 20 centerline points in the screened rows are temporarily classified into the 1st to 20th lines in order;

[0095] A2. Sum the horizontal coordinates of the sorted points on the same line and divide them by the total number of conditional rows d to estimate the horizontal coordinates of 20 stripe centroids. To facilitate the demonstration of the principle, round the estimated horizontal coordinates of the stripe centroids to integers, use these integer values ​​to find the pixels in the matrix I'1 with the same column coordinates, and light up these pixels, such as Figure 7 As shown;

[0096] A3. Keep the sorting of some center line points in step A1, and compare the horizontal coordinates of the unsorted center line points in the center line binary image I'1 after denoising processing except those sorted in step A1 with the estimated horizontal coordinates of the 20 stripe centroids one by one; calculate the distance between the horizontal coordinate of the center line point and the horizontal coordinate of the centroid of each stripe, that is, the horizontal distance between the center line point and the centroid of each stripe, and classify the center line point into the stripe whose horizontal distance to the stripe centroid is closest.

[0097] The binary centerline graph I'1 in which all centerlines are sorted is as follows Figure 8 shown.

[0098] S3-4, combining the horizontal coordinates of the centroids of each stripe, and based on the centerline binary image I'1 in which all centerlines have been denoised and sorted, the remaining centerline binary images that have not been sorted are sorted, the process includes:

[0099] Using the obtained horizontal coordinates of the centroids of each stripe, fill in the missing parts of the line and extend the two ends of the line to the vertical area of ​​the entire image. Set the value of all pixels in the area between the kth line and the k+1th line of the center line binary image I'1 after noise reduction to k, k = 1, 2, ..., 19; and set the value of all pixels in the area to the right of the 20th line to 20, and obtain the region segmentation map M, as shown in Fig. 9 shown.

[0100] The unsorted centerline binary graph I' j , j = 2, 3, ..., T, T represents the total number of projection images, and performs "AND" logic operation with M respectively, and then adds the appropriate offset to the number of each line according to the coding logic to realize the sorting of all line stripes, such as Fig.10 shown.

[0101] S3-5. Stereo match the decoded center line points of the multi-line stripes with the center line points in the projected image, combine the calibration parameters, and reconstruct the object depth information through triangulation.

[0102] The embodiments described above are only preferred embodiments of the present invention and are not intended to limit the scope of implementation of the present invention. Therefore, all changes made according to the shape and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for three-dimensional measurement of complex object surfaces based on multi-line structured light encoding and decoding, which is implemented by a multi-line structured light system, which includes a projector, a camera and a computer; the projector is responsible for projecting a preset pattern, the camera synchronously captures the image, and the computer analyzes and processes the captured image; it is characterized in that: include: The multi-line stripes are logically encoded by a computer, which includes setting the projection matrix A with a size of m*n m*n ; The projection matrix A m*n Circularly shift right to obtain other projected images; The object to be measured is placed above the reference plane. The projector projects the multi-line stripe structured light obtained according to the projection image to the object to be measured in turn, and the camera is used to synchronously capture the stripe image with deformed stripes. i , i is the number of projected images, and the fringe image I i Transfer to a computer for analysis; Computer analysis includes: Based on the stripe image I i The extreme point in the horizontal direction, find the center line binary graph I' i ; The interval gradient filtering algorithm based on the signal-noise distribution state in the line fringe pattern is used to calculate the center line binary image I' i Perform noise reduction processing; All the center lines in the center line binary image I'1 after noise reduction are sorted by using the mean nearest neighbor algorithm, including obtaining the horizontal coordinate of the centroid of each stripe; Combined with the horizontal coordinates of the centroids of each stripe, the centerline binary images of the remaining centerlines that have not been sorted are sorted based on the centerline binary image I'1 in which all centerlines have been denoised and sorted; The decoded centerline points of the multi-line stripes are stereo matched with the centerline points in the projected image, and the depth information of the object is reconstructed through triangulation combined with calibration parameters.

2. The method for three-dimensional measurement of complex object surface based on multi-line structured light encoding and decoding according to claim 1, characterized in that: The computer is used to perform logical coding of multi-line stripes, including: Take a single-pixel straight line of equal spacing of length n as the projection line, and the horizontal coordinate of each line satisfies the following formula: you k =(z-1)*Δw+x0, (a-1)*(Δw+1)+x0≤n, Where k = 1, 2, ..., a, a is the number of line stripes, Δw is the width between the lines, x0 is the horizontal coordinate of the first line, u k Represents the horizontal coordinate of the kth line.

3. The method for three-dimensional measurement of complex object surface based on multi-line structured light encoding and decoding according to claim 1, characterized in that: The projection matrix A m*n When other projection images are obtained by circular right shift, the translation amount of other projection images satisfies the following formula: Da t =t*Δw / T, Where t=1,2,...,T-1, T represents the total number of projection images, Δα t Indicates that the t-th projection image is relative to A m*n The amount of cyclic translation.

4. The method for three-dimensional measurement of complex object surface based on multi-line structured light encoding and decoding according to claim 1, characterized in that: Obtain the centerline binary graph I' i ,include: To extract the center line of the original image, first transform the image I i Grayscale, by finding I i The center line of the image is extracted from the local maximum point, and then the background part is set to 0 and the center line pixel point is set to 1, so as to obtain the center line binary image I' i , the formula is as follows: Among them, I' i (x,y) represents the center line binary image I' i The gray value of the pixel (x, y) in the center line, grad(x, y) represents the binary image I i The horizontal gradient of the pixel (x, y) is given by the formula grad(x, y) = I i (x,y)-I i (x-1,y) find, I i (x,y) represents the center line binary image I i The grayscale value of the pixel (x, y).

5. The method for three-dimensional measurement of complex object surface based on multi-line structured light encoding and decoding according to claim 1, characterized in that: The interval gradient filtering algorithm based on the signal-noise distribution state in the line fringe pattern is used to calculate the center line binary image I' i Perform noise reduction processing, including: Obtain the centerline binary graph I' i The interval gradient matrix f i (x,y), satisfies the following formula: f i (x,y)=[2*I i (x,y)-I i (x-2,y)-I i (x+2,y)] / 2, Among them, I i (x,y) represents the graph I i The gray value of the pixel (x, y) in the Binary graph of center line I' i All non-zero points in the image are judged as noise points. If the interval gradient value of the pixel point is less than the set threshold, its gray value is set to 1, that is, the pixel point is the center line point; if it is greater than or equal to the set threshold, its gray value is set to 0, that is, the point is a noise point. The formula used is as follows:

6. The method for three-dimensional measurement of complex object surface based on multi-line structured light encoding and decoding according to claim 1, characterized in that: All center lines in the center line binary image I'1 after denoising are sorted by the mean nearest neighbor algorithm, including: A1. Sort some points in the binary centerline image I'1 after denoising: traverse the binary centerline image I'1 after denoising by row, and select rows that contain exactly a centerline points. After such selection, assuming that d rows that meet the conditions are found, the a centerline points in the selected rows are temporarily classified into the 1st to ath lines in order of precedence; A2. Sum the horizontal coordinates of the sorted points on the same line and divide them by the total number of conditional rows d to estimate the horizontal coordinates of a stripe centroids; A3. Keep the sorting of some center line points in step A1, and compare the horizontal coordinates of the unsorted center line points in the center line binary image I'1 after denoising processing except those sorted in step A1 with the estimated horizontal coordinates of the a stripe centroids one by one; calculate the distance between the horizontal coordinate of the center line point and the horizontal coordinate of the centroid of each stripe, that is, the horizontal distance between the center line point and the centroid of each stripe, and classify the center line point into the stripe whose horizontal distance to the stripe centroid is closest.

7. The method for three-dimensional measurement of complex object surface based on multi-line structured light encoding and decoding according to claim 1, characterized in that: All center lines in the center line binary image I'1 after denoising are sorted by the mean nearest neighbor algorithm, including: B1. Sort some points in the binary centerline image I'1 after denoising: traverse the binary centerline image I'1 after denoising by row, and select the row containing exactly a centerline points. After such selection, assuming that d rows satisfying the conditions are found, the a centerline points in the selected rows are temporarily classified into the 1st to ath lines in order; a is the number of line stripes; B2. Sum the horizontal coordinates of the sorted points on the same line and divide them by the total number of conditional rows d to estimate the horizontal coordinates of a stripe centroids; B3. Discard the sorting of some center line points in step B1, and compare the horizontal coordinates of all center line points in the center line binary image I'1 after noise reduction with the estimated horizontal coordinates of a stripe centroids one by one; calculate the distance between the horizontal coordinate of the center line point and the horizontal coordinate of the centroid of each stripe, that is, the horizontal distance between the center line point and the centroid of each stripe, and classify the center line point into the stripe whose horizontal distance to the stripe centroid is closest.

8. The method for three-dimensional measurement of complex object surface based on multi-line structured light encoding and decoding according to claim 1, characterized in that: Combined with the horizontal coordinates of the centroids of each stripe, the centerline binary image I'1 after noise reduction processing in which all centerlines have been sorted is used to sort the remaining centerline binary images that have not been sorted, including: Using the obtained horizontal coordinates of the centroids of each stripe, fill in the missing parts of the line and extend the two ends of the line to the vertical area of ​​the entire image, set the value of all pixels in the area between the kth line and the k+1th line of the center line binary image I'1 after noise reduction to k, k = 1, 2, ..., a-1; and set the value of all pixels in the area to the right of the ath line to a, and obtain the region segmentation map M; The unsorted centerline binary graph I' j , j = 2, 3, ..., T, T represents the total number of projection images, and performs "AND" logic operation with M respectively, and then adds the appropriate offset to the number of each line according to the coding logic to realize the sorting of all line stripes.

Citation Information

Patent Citations

  • Three-dimensional imaging method and device, computer equipment and computer readable storage medium

    CN115752291A

  • Multi-line structured light projection device suitable for high-temperature object and encoding and decoding method

    CN116358445A

  • Multi-line laser stripe clustering and matching method based on user-defined window iteration

    CN116934826A

  • Method for decoding line structured light patterns by using fourier analysis

    KR1020170079153A