Wood processing flatness detection method and system based on data analysis

By generating a three -dimensional cloud data of wood and combining Bessel curve to analyze the flatness, combined with two -dimensional gray image and appearance algorithm in -depth analysis of the micro -structure of the surface, solving the problem of unable to analyze non -flat regional size in existing technologies, realize it Efficient wood processing flatness detection and optimization.

CN119379673AActive Publication Date: 2025-01-28LIANYUNGANG CHUNYOU WOOD CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411935328.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-26
Publication Date
2025-01-28
Estimated Expiration
2044-12-26

AI Technical Summary

Technical Problem

The prior art cannot analyze the size of non-flat areas in wood processing flatness detection, and thus cannot optimize the processing process.

Method used

Adopt data -based analysis methods, generate three -dimensional cloud data data by measuring instrument, combine the Bessel curve analysis distance curve, obtain the flatness of the wood, and use the two -dimensional gray image and appearance algorithm to analyze the micro -structures on the surface on the surface Determine the flat parameters to adjust the processing control parameters.

Benefits of technology

The high -precision wood surface shape data obtains a peaceful analysis, can automatically adjust the processing parameters, and improve the quality of wood processing and production efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119379673A_ABST
    Figure CN119379673A_ABST
Patent Text Reader

Abstract

The invention discloses a flatness detection method and system for wood processing based on data analysis, and relates to the field of irregular surface detection.The method comprises the steps that a measuring instrument is used for measuring the surface of wood to be detected to generate wood three-dimensional point cloud data; acquiring the relative distance between the measuring instrument and the wood to be detected by using a distance measuring sensor; combining the relative distance measurement result with a Bezier curve to draw a distance curve, and analyzing the change condition of the distance curve to obtain the flatness of the wood to be detected; generating a wood two-dimensional gray level image by using the wood three-dimensional point cloud data to determine the flatness parameter of the wood surface; and the leveling parameters are sent to a wood processing controller. According to the method, the microstructure of the wood surface is deeply analyzed, the length and area information of the uneven area of the wood surface is disclosed, control parameters can be automatically adjusted according to the actual wood flatness, and then the wood processing quality and the production efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of irregular surface detection, and in particular to a flatness detection method and system for wood processing based on data analysis. Background Art

[0002] Wood is a natural material widely used in construction, furniture manufacturing, paper production and other fields. It is obtained from trees and has many unique properties, such as renewability, biodegradability and beautiful natural texture. Depending on different needs and applications, wood can be processed and treated in various ways, such as cutting, polishing, painting, etc.

[0003] Wood processing is the process of converting logs into products that can be used in various construction and manufacturing applications. Flatness testing in wood processing is an important part of ensuring product quality and compliance with usage requirements. Flatness testing involves the use of various methods and techniques to measure the surface flatness of wood processed parts, as well as to ensure the adaptability and aesthetics of wood products in processing, assembly or final application.

[0004] However, the prior art can only determine whether there is a non-flat area on the wood surface when performing wood processing flatness detection, but cannot analyze the size of the non-flat area based on the judgment result, and thus cannot optimize the wood processing process based on the detection result.

[0005] Currently, no effective solution has been proposed for the problems in the related technologies. Summary of the invention

[0006] In order to achieve the above object, the present invention adopts the following technical solution: In a first aspect, the present invention provides a method for detecting flatness of wood processing based on data analysis, the method comprising the following steps: S1. Use a measuring instrument to measure the surface of the wood to be tested to generate three-dimensional point cloud data of the wood, and use a distance measurement sensor to obtain the relative distance between the measuring instrument and the wood to be tested; S2, combining the relative distance measurement result with the Bezier curve to draw a distance curve, and analyzing the change of the distance curve to obtain the flatness of the wood to be tested; S3, if the flatness is greater than the preset value, it means that the processed wood meets the requirements, then the wood flatness detection is completed; if the flatness is less than the preset value, it means that the processed wood does not meet the requirements, then step S4 is executed to perform wood morphology characterization processing to obtain morphological information of the wood surface; S4, using the three-dimensional point cloud data of the wood to generate a two-dimensional grayscale image of the wood, and processing the two-dimensional grayscale image of the wood based on a morphology characterization algorithm to determine the flatness parameters of the wood surface; S5. Send the leveling parameters to the wood processing controller, and the wood processing controller adjusts the control parameters of the wood during the processing based on the leveling parameters.

[0007] Furthermore, the relative distance measurement result is combined with the Bezier curve to draw a distance curve, and the change of the distance curve is analyzed to obtain the flatness of the wood to be tested, which includes the following steps: S21, confirming the target contour line according to the wood processing requirements, traversing the numerical points in the target contour line based on the relative distance measurement quantity and the relative distance measurement value, and generating a numerical point set after the traversal is completed; S22, constructing a Bezier curve expression for each set of numerical points, and obtaining the maximum curvature of each set of numerical points based on the Bezier curve expression to obtain a sequence of local curvature maximum values; S23, determining the shear points of the relative distance measurement values ​​according to the local curvature maximum value sequence, and obtaining the flatness of the wood to be tested based on the ratio of the number of shear points to the number of relative distance measurements.

[0008] Furthermore, constructing a Bezier curve expression for each set of numerical points, and obtaining the maximum curvature of each set of numerical points based on the Bezier curve expression, and obtaining a local curvature maximum sequence includes the following steps: S221, dividing the numerical points in each numerical point set according to a preset parameter ratio, and taking the numerical points corresponding to the initial and end positions as key points of the numerical point set based on the processing results; S222, constructing a Bezier curve for each set of numerical points based on the key points, and defining a corresponding curve expression according to the Bezier curve; S223. Calculate the first-order differential and the second-order differential of each set of numerical points according to the curve expression, and calculate the maximum curvature of the set of numerical points based on the first-order differential and the second-order differential to obtain a local curvature maximum sequence.

[0009] Further, determining the shear point of the relative distance measurement value according to the local curvature maximum value sequence, and obtaining the flatness of the wood to be tested based on the ratio of the number of shear points to the number of relative distance measurements includes the following steps: S231, traversing the local curvature maximum values ​​in the local curvature maximum value sequence, eliminating the local curvature maximum values ​​in the local curvature maximum value sequence that are less than a preset threshold, and obtaining a local curvature maximum value sequence; S232, calculating the numerical point screening range according to the relative distance measurement quantity, and traversing the local curvature maximum value sequence to determine the local curvature maximum value located in the numerical point screening range; S233, comparing the local curvature maximum value with the relative distance measurement quantity to determine the shear point of the relative distance measurement value, and determining the quantity of the shear points; S234, calculating the ratio between the shear point data point and the relative distance measurement quantity, and using the ratio result as a wood flatness measurement index to obtain a flatness test result of the wood to be tested.

[0010] Furthermore, generating a two-dimensional grayscale image of the wood using the three-dimensional point cloud data of the wood, and processing the two-dimensional grayscale image of the wood based on the morphology characterization algorithm to determine the flatness parameters of the wood surface includes the following steps: S41, performing noise reduction filtering on the wood three-dimensional point cloud data, and converting the wood three-dimensional point cloud data into a wood two-dimensional grayscale image by using an orthogonal projection method; S42, performing edge detection processing on the two-dimensional grayscale image of the wood using a morphology characterization algorithm to obtain an edge detection result, and converting the edge detection result from the original space into the Hough space to generate data points corresponding to the wood surface; S43, analyzing the wood surface data points based on the distribution law in the Hough space, and determining the combined size of the wood surface data points according to the analysis results to obtain the flattening parameter data.

[0011] Further, analyzing the wood surface data points based on the distribution law in the Hough space, and determining the combined size of the wood surface data points according to the analysis results to obtain the flattening parameter data includes the following steps: S431, dividing the data points belonging to the same continuous contour in the Hough space into the same data point set, and according to the distribution law in the Hough space, grouping every two data points into one group to complete the data point grouping; S432, calculating the probability that the shape enclosed by the straight lines corresponding to the data points in the data point set in the original space is a regular polygon according to the grouping result of the data points; S432, calculating the probability that the shape enclosed by the corresponding straight lines of the data points in the original space is a regular polygon based on the extraction results, and determining the geometric shape composed of the data points on the wood surface according to the probability result; S433, measuring the length of the corresponding constituent straight line according to the geometric shape, and obtaining the area corresponding to the set of all data points based on the length result; S434, comparing the corresponding areas of each data point set, and determining the flat area and the uneven area on the wood surface based on the comparison result and the evaluation criteria.

[0012] In a second aspect, the present invention further provides a flatness detection system for wood processing based on data analysis, the flatness detection system for wood processing comprising: The detection data acquisition module uses a measuring instrument to measure the surface of the wood to be detected to generate three-dimensional point cloud data of the wood, and uses a distance measurement sensor to obtain the relative distance between the measuring instrument and the wood to be detected; The flatness detection module combines the relative distance measurement result with the Bezier curve to draw a distance curve, and analyzes the change of the distance curve to obtain the flatness of the wood to be detected; Execute the judgment and analysis module. If the flatness is greater than the preset value, it means that the processed wood meets the requirements, and then complete the wood flatness detection. If the flatness is less than the preset value, it means that the processed wood does not meet the requirements, then execute the step of the morphological information determination module to implement the wood morphology characterization process to obtain the morphological information of the wood surface; A morphological information determination module is used to generate a two-dimensional grayscale image of the wood using the three-dimensional point cloud data of the wood, and to process the two-dimensional grayscale image of the wood based on a morphological characterization algorithm to determine the flatness parameters of the wood surface; The processing control adjustment module is used to send the leveling parameters to the wood processing controller, and the wood processing controller adjusts the control parameters of the wood during the processing based on the leveling parameters.

[0013] The beneficial effects of the present invention are: 1. The present invention can obtain high-precision and high-resolution wood surface shape data by generating three-dimensional point cloud data of the wood surface, and analyze the flatness of the wood surface based on relative distance measurement and Bezier curve drawing distance curve, providing data support for further processing and decision-making. At the same time, after the flatness analysis is completed, the two-dimensional grayscale image and morphology characterization algorithm can be used to deeply analyze the microstructure of the wood surface, revealing the length and area information of the non-flat area of ​​the wood surface, so as to facilitate the automatic adjustment of control parameters according to the actual flatness of the wood, thereby improving the quality and production efficiency of wood processing.

[0014] 2. After confirming the target contour according to the specific needs of wood processing, the present invention traverses the numerical points in the target contour and generates a numerical point set based on the number and value of relative distance measurement, thereby ensuring the integrity and meticulousness of the data, and obtains the maximum curvature of each numerical point set through the Bezier curve, generates a local curvature maximum sequence, and then identifies the key change area on the wood surface, that is, the potential uneven area, and finally determines the shear point of the relative distance measurement value according to the local curvature maximum sequence, which can accurately identify the slight changes in the surface and reflect the local flatness of the wood surface, thereby improving the accuracy of wood flatness detection.

[0015] 3. The present invention improves the quality of three-dimensional point cloud data in advance through noise reduction and filtering processing, selects orthogonal projection to convert three-dimensional point cloud data into two-dimensional grayscale images, and uses morphology characterization algorithm to perform edge detection processing, which can accurately identify key geometric edges and features of the wood surface, determine the combined size of wood surface data points to obtain flattening parameter data, and provide a judgment basis for subsequent wood processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0017] Figure 1 is a flow chart of a method for detecting flatness for wood processing based on data analysis according to an embodiment of the present invention; Figure 2 The invention is a principle block diagram of a flatness detection system for wood processing based on data analysis according to an embodiment of the invention.

[0018] In the figure: 1. Detection data acquisition module; 2. Flatness detection module; 3. Execution judgment and analysis module; 4. Shape information determination module; 5. Processing control adjustment module. DETAILED DESCRIPTION

[0019] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0020] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used in the present invention have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0021] It should be noted that the terms used herein are only for describing specific embodiments, and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that the terms "include" and "have" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0022] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.

[0023] See also Figure 1 The present invention provides a method for detecting flatness of wood processing based on data analysis, and the method for detecting flatness of wood processing comprises the following steps: S1. Use a measuring instrument to measure the surface of the wood to be tested to generate three-dimensional point cloud data of the wood, and use a distance measurement sensor to obtain the relative distance between the measuring instrument and the wood to be tested.

[0024] In this embodiment, when a measuring instrument is used to measure the surface of the wood to be inspected to generate three-dimensional point cloud data of the wood, and a distance measuring sensor is used to obtain the relative distance between the measuring instrument and the wood to be inspected, a three-dimensional scanner can be used to set the working range and scanning path of the measuring instrument according to the size and shape of the wood. The measuring instrument moves on a preset path, continuously scans the surface of the wood through laser or other sensing technology, and generates three-dimensional point cloud data from multiple angles; and a distance measuring sensor is used to obtain the relative distance between the measuring instrument and the wood.

[0025] S2. Combining the relative distance measurement result with the Bezier curve to draw a distance curve, and analyzing the change of the distance curve to obtain the flatness of the wood to be tested.

[0026] In this embodiment, the relative distance measurement result is combined with the Bezier curve to draw a distance curve, and the change of the distance curve is analyzed to obtain the flatness of the wood to be tested, which includes the following steps: S21, confirming the target contour line according to the wood processing requirements, traversing the numerical points in the target contour line based on the relative distance measurement quantity and the relative distance measurement value, and generating a numerical point set after the traversal is completed; S22, constructing a Bezier curve expression for each set of numerical points, and obtaining the maximum curvature of each set of numerical points based on the Bezier curve expression to obtain a sequence of local curvature maximum values; S23, determining the shear points of the relative distance measurement values ​​according to the local curvature maximum value sequence, and obtaining the flatness of the wood to be tested based on the ratio of the number of shear points to the number of relative distance measurements.

[0027] Specifically, when confirming the target contour line according to the wood processing requirements and traversing the numerical points in the target contour line based on the number and value of relative distance measurements to generate a set of numerical points, the contour line can be set according to the wood processing requirements, including the expected use environment and functional requirements, to determine the required flatness standard, that is, the target level of flatness. The contour line represents a specific height or distance on the wood surface. The target contour line is traversed, and the qualified numerical points are selected and recorded according to the set standards. The numerical point set is extracted and generated from the traversed data.

[0028] Specifically, constructing a Bezier curve expression for each set of numerical points, and obtaining the maximum curvature of each set of numerical points based on the Bezier curve expression, and obtaining a local curvature maximum sequence includes the following steps: S221, dividing the numerical points in each numerical point set according to a preset parameter ratio, and taking the numerical points corresponding to the initial and end positions as key points of the numerical point set based on the processing results; S222, constructing a Bezier curve for each set of numerical points based on the key points, and defining a corresponding curve expression according to the Bezier curve; S223. Calculate the first-order differential and the second-order differential of each set of numerical points according to the curve expression, and calculate the maximum curvature of the set of numerical points based on the first-order differential and the second-order differential to obtain a local curvature maximum sequence.

[0029] Among them, the calculation formula for the maximum curvature of the numerical point set is: ; Where Lmax represents the maximum curvature of the numerical point set, b represents the curve value of the numerical point set, dm(t) represents the first-order differential value corresponding to the t-th numerical point set, dn(t) represents the second-order differential value corresponding to the t-th numerical point set, and t represents the number of numerical point sets.

[0030] Specifically, determining the shear point of the relative distance measurement value according to the local curvature maximum value sequence, and obtaining the flatness of the wood to be tested based on the ratio of the number of shear points to the number of relative distance measurements includes the following steps: S231, traversing the local curvature maximum values ​​in the local curvature maximum value sequence, eliminating the local curvature maximum values ​​in the local curvature maximum value sequence that are less than a preset threshold, and obtaining a local curvature maximum value sequence; S232, calculating the numerical point screening range according to the relative distance measurement quantity, and traversing the local curvature maximum value sequence to determine the local curvature maximum value located in the numerical point screening range; S233, comparing the local curvature maximum value with the relative distance measurement quantity to determine the shear point of the relative distance measurement value, and determining the quantity of the shear points; S234, calculating the ratio between the shear point data point and the relative distance measurement quantity, and using the ratio result as a wood flatness measurement index to obtain a flatness test result of the wood to be tested.

[0031] The step of comparing the local curvature maximum value with the relative distance measurement quantity to determine the shear point of the relative distance measurement value comprises the following steps: When the number of local curvature maxima within the numerical point screening range is greater than or equal to the number of relative distance measurements, the curvature maximum of the target numerical point is determined according to the corresponding local curvature maximum; The local curvature maximum value within the numerical point screening range is replaced with the target numerical point curvature maximum value, and the pixel point corresponding to the maximum curvature value in the final screened curvature value is determined as the shear point.

[0032] S3. If the flatness is greater than the preset value, it means that the processed wood meets the requirements, and the wood flatness detection is completed. If the flatness is less than the preset value, it means that the processed wood does not meet the requirements, and step S4 is executed to implement wood morphology characterization processing to obtain morphological information of the wood surface.

[0033] S4. Generate a two-dimensional grayscale image of the wood using the three-dimensional point cloud data of the wood, and process the two-dimensional grayscale image of the wood based on a morphology characterization algorithm to determine the flatness parameters of the wood surface.

[0034] In this embodiment, the two-dimensional grayscale image of the wood is generated by using the three-dimensional point cloud data of the wood, and the two-dimensional grayscale image of the wood is processed based on the morphology characterization algorithm to determine the flatness parameters of the wood surface, including the following steps: S41, performing noise reduction filtering on the wood three-dimensional point cloud data, and converting the wood three-dimensional point cloud data into a wood two-dimensional grayscale image by using an orthogonal projection method; S42, performing edge detection processing on the two-dimensional grayscale image of the wood using a morphology characterization algorithm to obtain an edge detection result, and converting the edge detection result from the original space into the Hough space to generate data points corresponding to the wood surface; S43, analyzing the wood surface data points based on the distribution law in the Hough space, and determining the combined size of the wood surface data points according to the analysis results to obtain the flattening parameter data.

[0035] Specifically, when performing noise reduction filtering on the three-dimensional point cloud data of wood and converting these data into a two-dimensional grayscale image through orthogonal projection, a noise reduction algorithm such as Gaussian filtering, median filtering or other point cloud noise reduction techniques can be applied to remove or reduce the impact of noise; the processed point cloud data is integrated and aligned as necessary to ensure that all data are based on the same reference frame, and the data is downsampled or compressed for easy processing and conversion while retaining key geometric information.

[0036] Orthogonal projection is selected to process point cloud data. This method can compress three-dimensional data into two-dimensional data without changing the characteristics of the object. A two-dimensional grayscale image is generated by mapping the three-dimensional coordinates of the point cloud to a two-dimensional plane and converting the density or height of the points into grayscale values.

[0037] Specifically, when edge detection processing is performed on a two-dimensional grayscale image of wood using a morphological characterization algorithm to obtain an edge detection result, and the edge detection result is converted from the original space to the Hough space to generate data points corresponding to the wood surface, a morphological algorithm can be used to enhance the structural edges in the image, and an edge detection algorithm (such as a Canny edge detector) is applied to identify and extract the edges of the wood surface; the parameters of the Hough transform, such as the resolution of the angle and distance, are set according to the edge detection result, the edge points in the image space are mapped to the Hough space, and the position of each point is converted into a curve in the parameter space; in the Hough space, the intersection points of different curves represent the straight lines or shape edges in the original image, and these intersection points are extracted from the Hough space, and these points represent specific straight lines or edges on the wood surface.

[0038] Specifically, analyzing the wood surface data points based on the distribution law in the Hough space, and determining the combined size of the wood surface data points according to the analysis results to obtain the flattening parameter data includes the following steps: S431, dividing the data points belonging to the same continuous contour in the Hough space into the same data point set, and according to the distribution law in the Hough space, grouping every two data points into one group to complete the data point grouping; S432, calculating the probability that the shape enclosed by the straight lines corresponding to the data points in the data point set in the original space is a regular polygon according to the grouping result of the data points; S432, calculating the probability that the shape enclosed by the corresponding straight lines of the data points in the original space is a regular polygon based on the extraction results, and determining the geometric shape composed of the data points on the wood surface according to the probability result; S433, measuring the length of the corresponding constituent straight line according to the geometric shape, and obtaining the area corresponding to the set of all data points based on the length result; S434, comparing the corresponding areas of each data point set, and determining the flat area and the uneven area on the wood surface based on the comparison result and the evaluation criteria.

[0039] The judging criteria include: If the corresponding areas of two adjacent sets of data points are equal, it means that this section of the area is a flat area; If the area difference between two adjacent sets of data points exceeds the set tolerance, it indicates that this section of the area is a non-flat area, and the areas corresponding to the data set points in the non-flat area are added together as the range value in the non-flat area.

[0040] S5. Send the leveling parameters to the wood processing controller, and the wood processing controller adjusts the control parameters of the wood during the processing based on the leveling parameters.

[0041] In this embodiment, when the leveling parameters are sent to the wood processing controller and the wood processing controller adjusts the control parameters of the wood during the processing based on the leveling parameters, the processing control parameters that need to be adjusted can be determined based on the flatness parameters of the wood, such as tool depth, feed rate or other mechanical settings; ensure that the leveling parameters can be safely transmitted to the processing controller through an appropriate communication protocol (such as TCP / IP, Modbus, OPC, etc.), and send the parameters from the analysis system to the processing controller.

[0042] After receiving the leveling parameters, the processing controller analyzes the data and adjusts the settings of the mechanical equipment as needed. The controller automatically adjusts the processing parameters based on the received parameters, such as adjusting the tool position, changing the speed of the machine tool, or applying different processing strategies.

[0043] See also Figure 2The present invention also provides a flatness detection system for wood processing based on data analysis, and the flatness detection system for wood processing includes: The detection data acquisition module 1 uses a measuring instrument to measure the surface of the wood to be detected to generate wood three-dimensional point cloud data, and uses a distance measurement sensor to obtain the relative distance between the measuring instrument and the wood to be detected; Flatness detection module 2, combining the relative distance measurement result with the Bezier curve to draw a distance curve, and analyzing the change of the distance curve to obtain the flatness of the wood to be detected; Execute the judgment and analysis module 3. If the flatness is greater than the preset value, it means that the processed wood meets the requirements, and then complete the wood flatness detection. If the flatness is less than the preset value, it means that the processed wood does not meet the requirements, then execute the step of the morphological information determination module to implement the wood morphology characterization process to obtain the morphological information of the wood surface; The morphological information determination module 4 is used to generate a two-dimensional grayscale image of the wood using the three-dimensional point cloud data of the wood, and to process the two-dimensional grayscale image of the wood based on the morphological characterization algorithm to determine the flatness parameters of the wood surface; The processing control adjustment module 5 is used to send the leveling parameters to the wood processing controller, and the wood processing controller adjusts the control parameters of the wood during the processing based on the leveling parameters.

[0044] Those skilled in the art will appreciate that the units, i.e., algorithm steps, of the various examples described in conjunction with this embodiment can be implemented in electronic hardware or in a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0045] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.

Claims

1. A method for detecting flatness of wood processing based on data analysis, characterized in that: The flatness detection method for wood processing comprises the following steps: S1. Use a measuring instrument to measure the surface of the wood to be tested to generate three-dimensional point cloud data of the wood, and use a distance measurement sensor to obtain the relative distance between the measuring instrument and the wood to be tested; S2, combining the relative distance measurement result with the Bezier curve to draw a distance curve, and analyzing the change of the distance curve to obtain the flatness of the wood to be tested; S3, if the flatness is greater than the preset value, it means that the processed wood meets the requirements, then the wood flatness detection is completed; if the flatness is less than the preset value, it means that the processed wood does not meet the requirements, then step S4 is executed to perform wood morphology characterization processing to obtain morphological information of the wood surface; S4, using the three-dimensional point cloud data of the wood to generate a two-dimensional grayscale image of the wood, and processing the two-dimensional grayscale image of the wood based on a morphology characterization algorithm to determine the flatness parameters of the wood surface; S5, sending the leveling parameters to the wood processing controller, and the wood processing controller adjusts the control parameters of the wood during the processing based on the leveling parameters; The method of combining the relative distance measurement result with the Bezier curve to draw a distance curve, and analyzing the change of the distance curve to obtain the flatness of the wood to be tested includes the following steps: S21, confirming the target contour line according to the wood processing requirements, traversing the numerical points in the target contour line based on the relative distance measurement quantity and the relative distance measurement value, and generating a numerical point set after the traversal is completed; S22, constructing a Bezier curve expression for each set of numerical points, and obtaining the maximum curvature of each set of numerical points based on the Bezier curve expression to obtain a sequence of local curvature maximum values; S23, determining the shear points of the relative distance measurement values ​​according to the local curvature maximum value sequence, and obtaining the flatness of the wood to be tested based on the ratio of the number of shear points to the number of relative distance measurements.

2. A method for detecting flatness of wood processing based on data analysis according to claim 1, characterized in that: The step of constructing a Bezier curve expression for each set of numerical points, and obtaining the maximum curvature of each set of numerical points based on the Bezier curve expression to obtain a sequence of local curvature maximum values ​​comprises the following steps: S221, dividing the numerical points in each numerical point set according to a preset parameter ratio, and taking the numerical points corresponding to the initial and end positions as key points of the numerical point set based on the processing results; S222, constructing a Bezier curve for each set of numerical points based on the key points, and defining a corresponding curve expression according to the Bezier curve; S223. Calculate the first-order differential and the second-order differential of each set of numerical points according to the curve expression, and calculate the maximum curvature of the set of numerical points based on the first-order differential and the second-order differential to obtain a local curvature maximum sequence.

3. A method for detecting flatness of wood processing based on data analysis according to claim 2, characterized in that: The calculation formula for the maximum curvature of the numerical point set is: ; In the formula, L max Represents the maximum curvature of a set of numerical points, b represents the curve value of a set of numerical points, d m ( t ) indicates the t The first-order differential value corresponding to each set of numerical points, d n ( t ) indicates the t The second-order differential value corresponding to each set of numerical points, t Indicates the number of value point sets.

4. A method for detecting flatness of wood processing based on data analysis according to claim 3, characterized in that: Determining the shear points of the relative distance measurement values ​​according to the local curvature maximum sequence, and obtaining the flatness of the wood to be tested based on the ratio of the number of shear points to the number of relative distance measurements comprises the following steps: S231, traversing the local curvature maximum values ​​in the local curvature maximum value sequence, eliminating the local curvature maximum values ​​in the local curvature maximum value sequence that are less than a preset threshold, and obtaining a local curvature maximum value sequence; S232, calculating the numerical point screening range according to the relative distance measurement quantity, and traversing the local curvature maximum value sequence to determine the local curvature maximum value located in the numerical point screening range; S233, comparing the local curvature maximum value with the relative distance measurement quantity to determine the shear point of the relative distance measurement value, and determining the quantity of the shear points; S234, calculating the ratio between the shear point data point and the relative distance measurement quantity, and using the ratio result as a wood flatness measurement index to obtain a flatness test result of the wood to be tested.

5. A method for detecting flatness of wood processing based on data analysis according to claim 4, characterized in that: The step of comparing the local curvature maximum value with the relative distance measurement quantity to determine the shear point of the relative distance measurement value comprises the following steps: When the number of local curvature maxima within the numerical point screening range is greater than or equal to the number of relative distance measurements, the curvature maximum of the target numerical point is determined according to the corresponding local curvature maximum; The local curvature maximum value within the numerical point screening range is replaced with the target numerical point curvature maximum value, and the pixel point corresponding to the maximum curvature value in the final screened curvature value is determined as the shear point.

6. A method for detecting flatness of wood processing based on data analysis according to claim 1, characterized in that: The method of generating a two-dimensional grayscale image of wood using the three-dimensional point cloud data of wood, and processing the two-dimensional grayscale image of wood based on a morphology characterization algorithm to determine the flattening parameters of the wood surface comprises the following steps: S41, performing noise reduction filtering on the wood three-dimensional point cloud data, and converting the wood three-dimensional point cloud data into a wood two-dimensional grayscale image by using an orthogonal projection method; S42, performing edge detection processing on the two-dimensional grayscale image of the wood using a morphology characterization algorithm to obtain an edge detection result, and converting the edge detection result from the original space into the Hough space to generate data points corresponding to the wood surface; S43, analyzing the wood surface data points based on the distribution law in the Hough space, and determining the combined size of the wood surface data points according to the analysis results to obtain the flattening parameter data.

7. A method for detecting flatness of wood processing based on data analysis according to claim 6, characterized in that: The step of analyzing the wood surface data points based on the distribution law in the Hough space and determining the combined size of the wood surface data points according to the analysis results to obtain the flattening parameter data comprises the following steps: S431, dividing the data points belonging to the same continuous contour in the Hough space into the same data point set, and according to the distribution law in the Hough space, grouping every two data points into one group to complete the data point grouping; S432, calculating the probability that the shape enclosed by the straight lines corresponding to the data points in the data point set in the original space is a regular polygon according to the grouping result of the data points; S432, calculating the probability that the shape enclosed by the corresponding straight lines of the data points in the original space is a regular polygon based on the extraction results, and determining the geometric shape composed of the data points on the wood surface according to the probability result; S433, measuring the length of the corresponding constituent straight line according to the geometric shape, and obtaining the area corresponding to the set of all data points based on the length result; S434, comparing the corresponding areas of each data point set, and determining the flat area and the uneven area on the wood surface based on the comparison result and the evaluation criteria.

8. A method for detecting flatness of wood processing based on data analysis according to claim 7, characterized in that: The judging criteria include: If the corresponding areas of two adjacent sets of data points are equal, it means that this section of the area is a flat area; If the area difference between two adjacent sets of data points exceeds the set tolerance, it indicates that this section of the area is a non-flat area, and the areas corresponding to the data set points in the non-flat area are added together as the range value in the non-flat area.

9. A wood processing flatness detection system based on data analysis, used to implement the wood processing flatness detection method based on data analysis according to any one of claims 1 to 8, characterized in that: The flatness detection system for wood processing includes: The detection data acquisition module uses a measuring instrument to measure the surface of the wood to be detected to generate three-dimensional point cloud data of the wood, and uses a distance measurement sensor to obtain the relative distance between the measuring instrument and the wood to be detected; The flatness detection module combines the relative distance measurement result with the Bezier curve to draw a distance curve, and analyzes the change of the distance curve to obtain the flatness of the wood to be detected; Execute the judgment and analysis module. If the flatness is greater than the preset value, it means that the processed wood meets the requirements, and then complete the wood flatness detection. If the flatness is less than the preset value, it means that the processed wood does not meet the requirements, then execute the step of the morphological information determination module to implement the wood morphology characterization process to obtain the morphological information of the wood surface; A morphological information determination module is used to generate a two-dimensional grayscale image of the wood using the three-dimensional point cloud data of the wood, and to process the two-dimensional grayscale image of the wood based on a morphological characterization algorithm to determine the flatness parameters of the wood surface; The processing control adjustment module is used to send the leveling parameters to the wood processing controller, and the wood processing controller adjusts the control parameters of the wood during the processing based on the leveling parameters.

Citation Information

Patent Citations

  • Detection method and device, electronic equipment and storage medium

    CN113344917A

  • Wood board deformation detection method and system based on deep learning and 3D point cloud data

    CN113674204A

  • Wind shear point identification method and device based on Bezier curve, storage medium and terminal

    CN115859628A

  • Wind shear identification method and device, electronic equipment and medium

    CN115937007A

  • Method for accurately measuring profile steel overall dimension based on data analysis

    CN118314191A