A method and system for eliminating multiple reflections of a line laser 3D profile measuring instrument
By collecting and processing image data in an online laser 3D contour measuring instrument, multiple reflections are eliminated using the center point extraction function and continuity judgment algorithm, the measurement error problem is solved, and more accurate and stable measurement results are achieved.
Patent Information
- Application Number
- CN202411310987.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-20
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-09-20
AI Technical Summary
Linear laser 3D contour measuring instruments are prone to multiple reflections when measuring the surface of complex highly reflective objects, resulting in inaccurate measurement values, large fluctuations and poor repeatability. It is difficult for the prior art to effectively eliminate multiple reflection signals.
By collecting a single-frame image, obtaining the center point data of the laser line based on the center point extraction function, and using the continuity judgment algorithm to calculate the longitudinal distance, selecting the point with the smallest longitudinal distance as the effective point, outputting the single-frame image data, and switching to the next single frame The image is repeated to accommodate batch processing.
Detect and eliminate false signals caused by multiple reflections in real time, ensure the accuracy of measurement data, reduce fluctuations, improve the repetition and stability of measurements, and is suitable for objects of different materials and colors.
Smart Images

Figure CN118816757B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of 3D profile measurement, and in particular to a method and system for eliminating multiple reflections of a line laser 3D profile measuring instrument. Background Art
[0002] The line laser 3D profile measuring system performs poorly in measuring the surfaces of objects of different materials, shapes and colors, especially when multiple reflections are formed on the surfaces of complex and highly reflective objects. Multiple reflected light will cause false image data, resulting in inaccurate measurement values. The existing technology is difficult to effectively distinguish and eliminate multiple reflection signals, resulting in large fluctuations in measurement results, poor repeatability, and reduced measurement reliability. In order to solve the above problems, the present invention designs a 3D profile measurement method that eliminates multiple reflections to eliminate measurement errors caused by multiple reflections and ensure the accuracy of measurement data. Summary of the invention
[0003] The present invention provides a method for eliminating multiple reflections of a line laser 3D profile measuring instrument, comprising:
[0004] Step 1: Collect a single frame image of the object to be measured with a laser line through a 3D profile measuring instrument;
[0005] Step 2, obtain the center point data of the laser line in the image based on the center point extraction function;
[0006] Step 3, bring the center point data into the continuity judgment algorithm and give the algorithm starting point;
[0007] Step 4. Starting from the given starting point, traverse the center point data of the current queue and calculate the longitudinal distance between the current point and the valid point of the previous queue;
[0008] Step 5. Select the point with the smallest longitudinal distance as the valid point of the current queue and output it. The single-frame image data acquisition is completed.
[0009] The method for eliminating multiple reflections of a line laser 3D profile measuring instrument as described above, wherein after Step 5, there is Step 6, switching to the next single frame image and re-executing Step 2 to Step 5; and the method is used to adapt to batch processing of images collected by the 3D profile measuring instrument.
[0010] A method for eliminating multiple reflections of a line laser 3D profile measuring instrument as described above, wherein the center point data of the laser line in the image is obtained based on a center point extraction function, specifically comprising the following sub-steps:
[0011] Convert the acquired image into a grayscale image;
[0012] Separate the laser line from the grayscale image to form a pixel set of the laser line;
[0013] The pixel set of the laser line is passed as an input parameter to the center point extraction function, and the extracted center point data is returned.
[0014] A method for eliminating multiple reflections of a line laser 3D profile measuring instrument as described above, wherein the center point data is brought into a continuity judgment algorithm and a starting point of the algorithm is given, specifically comprising the following sub-steps:
[0015] Load the center data of the laser line into the current queue;
[0016] If the current queue is the first queue, a valid point is preset for the current queue;
[0017] If the current queue is not the first queue, the first data item of the current queue is set as the starting point of the continuity judgment algorithm.
[0018] A method for eliminating multiple reflections of a line laser 3D profile measuring instrument as described above, wherein starting from a given starting point, traversing the center point data of the current queue and calculating the longitudinal distance between the current point and the valid point of the previous queue, specifically includes the following sub-steps:
[0019] Create a formula to calculate the longitudinal distance;
[0020] Use the longitudinal distance calculation formula to calculate the longitudinal distance between each point in the current queue and the valid point in the previous queue;
[0021] The calculated longitudinal distance is marked according to the queue sequence number and the center point data sequence number.
[0022] The present invention also provides a system for eliminating multiple reflections of a line laser 3D profile measuring instrument, comprising: a single frame image acquisition module, a center point data extraction module, a continuity judgment algorithm initialization module, a continuity judgment algorithm execution module, and a valid point output module;
[0023] A single-frame image acquisition module is used to acquire a single-frame image of the object to be measured with a laser line through a 3D profile measuring instrument;
[0024] A center point data extraction module is used to obtain the center point data of the laser line in the image using a center point extraction function;
[0025] The continuity judgment algorithm initialization module is used to bring the center point data into the continuity judgment algorithm and give the algorithm starting point;
[0026] The continuity judgment algorithm execution module is used to traverse the center point data of the current queue from a given starting point and calculate the longitudinal distance between the current point and the valid point of the previous queue;
[0027] The effective point output module is used to select the point with the smallest longitudinal distance as the effective point of the current queue and output it.
[0028] A system for eliminating multiple reflections of a line laser 3D profile measuring instrument as described above, wherein the center point data extraction module comprises: a grayscale image conversion submodule, a laser line separation submodule, and a center data return submodule;
[0029] A grayscale image conversion submodule is used to convert the collected image into a grayscale image;
[0030] A laser line separation submodule, used for separating the laser line from the grayscale image to form a pixel set of the laser line;
[0031] The center data return submodule is used to pass the pixel set of the laser line as an input parameter into the center point extraction function and return the extracted center point data.
[0032] A system for eliminating multiple reflections of a line laser 3D profile measuring instrument as described above, wherein the continuity judgment algorithm initialization module includes: a center data loading submodule, a first queue judgment submodule, a valid point preset submodule, and a starting point given submodule;
[0033] A center data loading submodule is used to load the center data of the laser line into the queue;
[0034] The first queue determination submodule is used to determine whether the current queue is the first queue;
[0035] A valid point presetting submodule is used to preset a valid point for the queue for which the first queue judgment submodule returns yes;
[0036] The starting point setting submodule is used to set the first item of data in the queue returned by the first queue judgment submodule as the starting point of the continuity judgment algorithm.
[0037] A system for eliminating multiple reflections of a line laser 3D profile measuring instrument as described above, wherein the continuity judgment algorithm execution module includes: a longitudinal distance calculation formula creation submodule, a longitudinal distance calculation submodule, and a longitudinal distance marking submodule;
[0038] A longitudinal distance calculation formula creation submodule is used to create a longitudinal distance calculation formula;
[0039] A longitudinal distance calculation submodule is used to calculate the longitudinal distance between each point in the current queue and the valid point in the previous queue using a longitudinal distance calculation formula;
[0040] The longitudinal distance marking submodule is used to mark the calculated longitudinal distance according to the queue sequence number and the center point data sequence number.
[0041] The beneficial effects achieved by the present invention are as follows: through advanced optical and signal processing technology, false signals caused by multiple reflections can be detected and eliminated in real time, ensuring the accuracy of measurement data, reducing fluctuations in measurement results, and improving measurement repeatability and stability; the influence of multiple reflections can be effectively eliminated on objects of different materials and colors; the measurement data can be post-processed and optimized, and deviations caused by multiple reflections can be corrected in real time, providing reliable technical support for industrial inspection, precision manufacturing, quality control and other fields. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0043] Figure 1 This is a flow chart of a method for eliminating multiple reflections of a line laser 3D profile measuring instrument provided in Example 1 of the present application;
[0044] Figure 2 This is a system schematic diagram of a line laser 3D profile measuring instrument for eliminating multiple reflections provided in Example 2 of the present application. DETAILED DESCRIPTION
[0045] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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 those skilled in the art without creative work are within the scope of protection of the present invention. Embodiment 1
[0046] like Figure 1 As shown, the first embodiment of the present application provides a method for eliminating multiple reflections of a line laser 3D profile measuring instrument, comprising:
[0047] Step S10: collecting a single frame image of the object to be measured with a laser line by a 3D profile measuring instrument;
[0048] The main body of the 3D profile measuring instrument is a camera with a laser sensor. The light projected by the laser sensor is mapped on the object to be measured. The camera is responsible for photographing the object to be measured with the laser line. The object to be measured moves with the translation of the placement platform, and the position of the laser line also changes accordingly. The camera continuously collects single-frame images of the object to be measured with the laser line.
[0049] Step S20: acquiring the center point data of the laser line in the image based on the center point extraction function;
[0050] The center point extraction function is divided into two parts F 1 ()、F 2 (), expressed as: , where G is F 1 () function input parameter set, represents the kth local domain of the input parameter set G, k ranges from 1 to W, W is the number of local domains divided by the input parameter set G, Represents a local domain The pixels in Represents pixel The grayscale value of the F1() function returns a local domain with the largest sum of grayscale values in the input parameter set, which is then passed as an input parameter to the F2() function. , Represents a local domain The i-th pixel in Represents pixel The gray value of Indicates except The maximum gray value of all pixels in other local areas is compared cyclically in the F2() function and The size of , then execute , and returns the pixel ,like , then execute , no return is made until i equals n, where n is the local domain The number of pixels in the image.
[0051] It should be noted that It is to update the value of i after the function returns. It updates the value of i immediately.
[0052] The center point data of the laser line in the image is obtained based on the center point extraction function, which specifically includes the following sub-steps:
[0053] Step S21: converting the collected image into a grayscale image;
[0054] Step S22: separating the laser line from the grayscale image to form a pixel set of the laser line;
[0055] The grayscale value of the laser line is significantly higher than that of the background. We can select some pixels at the edge of the laser line and take their average as a threshold. After filtering out the pixels below the threshold, the remaining pixels can be used as the pixel set of the laser line. The threshold setting can also be adjusted in combination with multiple images and screening results to ensure the accuracy of laser line separation.
[0056] Step S23: passing the pixel set of the laser line as an input parameter into the center point extraction function, and returning the extracted center point data;
[0057] The extracted center point data is stored in the set P, expressed as ,in Represents different center point pixels, and m is the number of identified center points.
[0058] Step S30: Bring the center point data into the continuity judgment algorithm and give the algorithm starting point;
[0059] Due to the multiple reflection phenomenon of the measured object, multiple bright noise points will appear in the center of the laser line, which are called center data in this embodiment. The continuity judgment algorithm can eliminate the noise interference and find the effective point for positioning. First, the starting point needs to be given to the algorithm. Specifically:
[0060] Step S31: Load the center data of the laser line into the current queue;
[0061] The laser line position of each single frame image is different, and the extracted center data is also different, so it needs to be reloaded into the current queue each time.
[0062] Step S32: If the current queue is the first queue, a valid point is preset for the current queue;
[0063] Use the center data of each item in the current queue as the center point of the laser line to generate a point cloud, compare the deviation between each point in the point cloud and the actual position, and take the center point corresponding to the point cloud with the smallest deviation as the valid point of the first judgment queue.
[0064] Step S33: If the current queue is not the first queue, the first data item of the current queue is set as the starting point of the continuity judgment algorithm.
[0065] Step S40: starting from a given starting point, traverse the center point data of the current queue and calculate the longitudinal distance between the current point and the valid point of the previous queue;
[0066] This step is the core step of the continuity judgment algorithm, which is used to determine the continuity of the laser line. Specifically:
[0067] Step S41: creating a longitudinal distance calculation formula;
[0068] The calculation formula of the longitudinal distance is expressed as: , where D represents the calculation result of the longitudinal distance, It represents the coordinate value of a center point data in the current queue on the y-axis, and d represents the translation distance from the previous queue to the current queue. Indicates the coordinate values of the valid points of the previous pair of columns on the y-axis.
[0069] Step S42: using a longitudinal distance calculation formula to calculate the longitudinal distance between each point in the current queue and a valid point in the previous queue;
[0070] Initialize the longitudinal distance calculation formula with the coordinate value of the previous queue's valid point on the y-axis , and then the coordinate values of each point in the current queue on the y-axis are respectively substituted into the longitudinal distance calculation formula to obtain the longitudinal distance between each point in the current queue and the valid point in the previous queue.
[0071] Step S43: marking the calculated longitudinal distance according to the queue sequence number and the center point data sequence number;
[0072] This step is to establish the correlation between the vertical intensity and the central data point to facilitate positioning and subsequent output.
[0073] Step S50: Select the point with the smallest longitudinal distance as the valid point of the current queue and output it, and the single frame image data acquisition is completed;
[0074] The smaller the longitudinal distance, the better the continuity between the two queues. Selecting the point with the smallest longitudinal distance as the valid point can ensure the accuracy of the generated point cloud data and improve the measurement accuracy under the influence of multiple reflections.
[0075] Step S60: Switch to the next single frame image and re-execute steps S20 to S50;
[0076] After the single-frame image data acquisition is completed, it is necessary to switch to the next frame image for processing, that is, extract the effective points of the laser line in the next frame image and output them until all single-frame images are processed. Embodiment 2
[0077] like Figure 2 As shown, the second embodiment of the present application provides a system for eliminating multiple reflections of a line laser 3D profile measuring instrument, including: a single-frame image acquisition module, a center point data extraction module, a continuity judgment algorithm initialization module, a continuity judgment algorithm execution module, and a valid point output module;
[0078] (1) A single-frame image acquisition module, used to acquire a single-frame image of the object to be measured with a laser line through a 3D profile measuring instrument;
[0079] The main body of the 3D profile measuring instrument is a camera with a laser sensor. The light projected by the laser sensor is mapped on the object to be measured. The camera is responsible for photographing the object to be measured with the laser line. The object to be measured moves with the translation of the placement platform, and the position of the laser line also changes accordingly. The camera continuously collects single-frame images of the object to be measured with the laser line.
[0080] (2) A center point data extraction module, which is used to obtain the center point data of the laser line in the image using a center point extraction function, including: a grayscale image conversion submodule, a laser line separation submodule, and a center data return submodule;
[0081] The center point extraction function is divided into two parts F 1 ()、F 2 (), expressed as: , where G is F 1 () function input parameter set, represents the kth local domain of the input parameter set G, k ranges from 1 to W, W is the number of local domains divided by the input parameter set G, Represents a local domain The pixels in Represents pixel The grayscale value of the F1() function returns a local domain with the largest sum of grayscale values in the input parameter set, which is then passed as an input parameter to the F2() function. , Represents a local domain The i-th pixel in Represents pixel The gray value of Indicates except The maximum gray value of all pixels in other local areas is compared cyclically in the F2() function and The size of , then execute , and returns the pixel ,like , then execute , no return is made until i equals n, where n is the local domain The number of pixels in the image.
[0082] It should be noted that It is to update the value of i after the function returns. It updates the value of i immediately.
[0083] 1. Grayscale image conversion submodule, used to convert the collected image into a grayscale image.
[0084] 2. A laser line separation submodule, used to separate the laser line from the grayscale image to form a pixel set of the laser line;
[0085] The grayscale value of the laser line is significantly higher than that of the background. We can select some pixels at the edge of the laser line and take their average as a threshold. After filtering out the pixels below the threshold, the remaining pixels can be used as the pixel set of the laser line. The threshold setting can also be adjusted in combination with multiple images and screening results to ensure the accuracy of laser line separation.
[0086] 3. The center data return submodule is used to pass the pixel set of the laser line as an input parameter into the center point extraction function and return the extracted center point data;
[0087] The extracted center point data is stored in the set P, expressed as ,in Represents different center point pixels, and m is the number of identified center points.
[0088] (3) Continuity judgment algorithm initialization module, used to bring the center point data into the continuity judgment algorithm and give the algorithm starting point, including: center data loading submodule, first queue judgment submodule, valid point preset submodule, starting point setting submodule;
[0089] 1. The center data loading submodule is used to load the center data of the laser line into the queue;
[0090] The laser line position of each single-frame image is different, and the extracted center data is also different. Therefore, multiple queues are required to load the center data of different single-frame images. The loading order is consistent with the acquisition order.
[0091] 2. The first queue judgment submodule is used to judge whether the current queue is the first queue;
[0092] Returns yes if the current queue is the first queue, otherwise returns no.
[0093] 3. A valid point presetting submodule, used to preset a valid point for the queue for which the first queue judgment submodule returns yes;
[0094] Use the center data of each item in the current queue as the center point of the laser line to generate a point cloud, compare the deviation between each point in the point cloud and the actual position, and take the center point corresponding to the point cloud with the smallest deviation as the valid point of the first judgment queue.
[0095] 4. A starting point setting submodule is used to set the first item of data in the queue returned by the first queue judgment submodule as the starting point of the continuity judgment algorithm.
[0096] (4) A continuity judgment algorithm execution module, which is used to traverse the center point data of the current queue from a given starting point and calculate the longitudinal distance between the current point and the valid point of the previous queue, including: a longitudinal distance calculation formula creation submodule, a longitudinal distance calculation submodule, and a longitudinal distance marking submodule;
[0097] 1. The longitudinal distance calculation formula creation submodule is used to create the longitudinal distance calculation formula;
[0098] The calculation formula of the longitudinal distance is expressed as: , where D represents the calculation result of the longitudinal distance, It represents the coordinate value of a center point data in the current queue on the y-axis, and d represents the translation distance from the previous queue to the current queue. Indicates the coordinate values of the valid points of the previous pair of columns on the y-axis.
[0099] 2. A longitudinal distance calculation submodule, which is used to calculate the longitudinal distance between each point in the current queue and the valid point in the previous queue using the longitudinal distance calculation formula;
[0100] Initialize the longitudinal distance calculation formula with the coordinate value of the previous queue's valid point on the y-axis , and then the coordinate values of each point in the current queue on the y-axis are respectively substituted into the longitudinal distance calculation formula to obtain the longitudinal distance between each point in the current queue and the valid point in the previous queue.
[0101] 3. A longitudinal distance marking submodule is used to mark the calculated longitudinal distance according to the queue sequence number and the center point data sequence number;
[0102] Establish the correlation between the vertical intensity and the central data point to facilitate positioning and subsequent output.
[0103] (5) Valid point output module, used to select the point with the smallest longitudinal distance as the valid point of the current queue and output it;
[0104] The smaller the longitudinal distance, the better the continuity between the two queues. Selecting the point with the smallest longitudinal distance as the valid point can ensure the accuracy of the generated point cloud data and improve the measurement accuracy under the influence of multiple reflections.
[0105] Corresponding to the above embodiment, an embodiment of the present invention provides a computer storage medium, including: at least one memory and at least one processor;
[0106] The memory is used to store one or more program instructions;
[0107] The processor is used for running one or more program instructions to execute a method for eliminating multiple reflections of a line laser 3D profile measuring instrument.
[0108] Corresponding to the above-mentioned embodiment, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer storage medium contains one or more program instructions, and the one or more program instructions are used to be executed by a processor to provide a method for eliminating multiple reflections of a line laser 3D profile measuring instrument.
[0109] The embodiment disclosed in the present invention provides a computer-readable storage medium, in which computer program instructions are stored. When the computer program instructions are executed on a computer, the computer executes the above-mentioned method for eliminating multiple reflections of a line laser 3D profile measuring instrument.
[0110] In the embodiment of the present invention, the processor may be an integrated circuit chip having the ability to process signals. The processor may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0111] The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present invention can be directly embodied as a hardware decoding processor for execution, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The processor reads the information in the storage medium and completes the steps of the above method in combination with its hardware.
[0112] The storage medium may be a memory, which may be, for example, a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memory.
[0113] Among them, the non-volatile memory can be a read-only memory (ROM), a programmable ROM (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory.
[0114] The volatile memory may be a random access memory (RAM) which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous DRAM (DDRSDRAM), enhanced synchronous DRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus DRAM (DRRAM).
[0115] The storage media described in the embodiments of the present invention are intended to include, but are not limited to, these and any other suitable types of memory.
[0116] Those skilled in the art will appreciate that in one or more of the above examples, the functions described in the present invention can be implemented using a combination of hardware and software. When software is used, the corresponding functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. Storage media can be any available media that can be accessed by general or special-purpose computers.
[0117] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solution of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for eliminating multiple reflections in a line laser 3D profile measuring instrument. It is characterized in that include: Step 1: Collect a single frame image of the object to be measured with a laser line through a 3D profile measuring instrument; Step 2, obtain the center point data of the laser line in the image based on the center point extraction function; Step 3: Bring the center point data into the continuity judgment algorithm and give the algorithm starting point, which is divided into the following sub-steps: Load the center data of the laser line into the current queue; If the current queue is the first queue, a valid point is preset for the current queue; If the current queue is not the first queue, the first data item of the current queue is set as the starting point of the continuity judgment algorithm; Step 4: Starting from the given starting point, traverse the center point data of the current queue and calculate the longitudinal distance between the current point and the valid point of the previous queue. It is divided into the following sub-steps: Create a formula to calculate the longitudinal distance; The calculation formula of the longitudinal distance is expressed as: , where D represents the calculation result of the longitudinal distance, It represents the coordinate value of a center point data in the current queue on the y-axis, and d represents the translation distance from the previous queue to the current queue. Indicates the coordinate values of the valid points of the previous pair of columns on the y-axis; Use the longitudinal distance calculation formula to calculate the longitudinal distance between each point in the current queue and the valid point in the previous queue; Initialize the longitudinal distance calculation formula with the coordinate value of the previous queue's valid point on the y-axis , then the coordinate values of each point in the current queue on the y-axis are respectively substituted into the longitudinal distance calculation formula to obtain the longitudinal distance between each point in the current queue and the valid point in the previous queue; The calculated longitudinal distance is marked according to the queue sequence number and the center point data sequence number; Step 5. Select the point with the smallest longitudinal distance as the valid point of the current queue and output it. The single-frame image data acquisition is completed.
2. The method for eliminating multiple reflections of a line laser 3D profile measuring instrument according to claim 1, It is characterized in that If it is necessary to process multiple frames of image data, the method further includes: after the single frame image data acquisition is completed, switching to the next single frame image and re-executing Step 2 to Step 5 to adapt to the batch processing of the images acquired by the 3D profilometer.
3. The method for eliminating multiple reflections of a line laser 3D profile measuring instrument according to claim 1, It is characterized in that The center point data of the laser line in the image is obtained based on the center point extraction function, which specifically includes the following sub-steps: Convert the acquired image into a grayscale image; Separate the laser line from the grayscale image to form a pixel set of the laser line; The pixel set of the laser line is passed as an input parameter to the center point extraction function, and the extracted center point data is returned.
4. A system for eliminating multiple reflections in a line laser 3D profile measuring instrument. It is characterized in that include: Single frame image acquisition module, center point data extraction module, continuity judgment algorithm initialization module, continuity judgment algorithm execution module, effective point output module; A single-frame image acquisition module is used to acquire a single-frame image of the object to be measured with a laser line through a 3D profile measuring instrument; A center point data extraction module is used to obtain the center point data of the laser line in the image using a center point extraction function; The continuity judgment algorithm initialization module is used to bring the center point data into the continuity judgment algorithm and give the algorithm starting point, which specifically includes: A center data loading submodule is used to load the center data of the laser line into the queue; The first queue determination submodule is used to determine whether the current queue is the first queue; The effective point presetting submodule is used to preset an effective point for the queue for which the first queue judgment submodule returns yes; A starting point setting submodule is used to set the first item of data in the queue returned by the first queue judgment submodule as the starting point of the continuity judgment algorithm; The continuity judgment algorithm execution module is used to traverse the center point data of the current queue from a given starting point and calculate the longitudinal distance between the current point and the valid point of the previous queue, specifically including: A longitudinal distance calculation formula creation submodule is used to create a longitudinal distance calculation formula; The calculation formula of the longitudinal distance is expressed as: , where D represents the calculation result of the longitudinal distance, It represents the coordinate value of a center point data in the current queue on the y-axis, and d represents the translation distance from the previous queue to the current queue. Indicates the coordinate values of the valid points of the previous pair of columns on the y-axis; A longitudinal distance calculation submodule is used to calculate the longitudinal distance between each point in the current queue and the valid point in the previous queue using a longitudinal distance calculation formula; Initialize the longitudinal distance calculation formula with the coordinate value of the previous queue's valid point on the y-axis , then the coordinate values of each point in the current queue on the y-axis are respectively substituted into the longitudinal distance calculation formula to obtain the longitudinal distance between each point in the current queue and the valid point in the previous queue; The longitudinal distance marking submodule is used to mark the calculated longitudinal distance according to the queue sequence number and the center point data sequence number; The effective point output module is used to select the point with the smallest longitudinal distance as the effective point of the current queue and output it.
5. A system for eliminating multiple reflections of a line laser 3D profile measuring instrument according to claim 4, It is characterized in that The center point data extraction module includes: grayscale image conversion submodule, laser line separation submodule, and center data return submodule; A grayscale image conversion submodule is used to convert the collected image into a grayscale image; A laser line separation submodule, used for separating the laser line from the grayscale image to form a pixel set of the laser line; The center data return submodule is used to pass the pixel set of the laser line as an input parameter into the center point extraction function and return the extracted center point data.
6. A computer storage medium, It is characterized in that include: at least one memory and at least one processor; A memory for storing one or more program instructions; A processor is used to run one or more program instructions to execute the method for eliminating multiple reflections of a line laser 3D profile measuring instrument as described in any one of claims 1 to 3.
