Intelligent measuring method and system for measuring log pile diameter
Through deep learning, three-dimensional reconstruction and digital twin physical topology technology, the problem of high manual labor intensity and dependence on measurement accuracy in log inspection is solved, and automatic measurement of log stack length, number of points and end faces is realized, improving efficiency and data accuracy, and reducing cost and safety risks.
Patent Information
- Application Number
- CN202411001047.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-07-25
AI Technical Summary
In the process of measuring logs, there are problems such as high manual repetitive labor intensity, high safety risks, and high costs. The accuracy of measurement data depends on the experience and ability of the measuring personnel. In addition, the existing intelligent measuring rulers have deep learning missed detections and area segmentation errors. and other problems, resulting in the need for manual review.
Using deep learning, three-dimensional reconstruction and digital twin physical topology technology, by acquiring the depth projection, point cloud and image of the log stack, the end face is detected and segmented, the end face diameter is calculated, and the data is processed through 3D camera photography and deep learning model. Realize the automated measurement of log stack length, number of points and end-face gauges.
It realizes the automation and integration of log measurement, reduces manual intervention, improves measurement accuracy and production efficiency, provides reliable data support for the timber industry, and reduces costs and safety risks.
Smart Images

Figure CN118552602B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of log measuring technology, and in particular to an intelligent measuring method and system for measuring log pile diameters. Background Art
[0002] Log measuring is an important part of wood production and processing. The cost and accuracy of log measuring process greatly affect the entire wood industry and the protection of forest resources. Traditional log measuring is manual or semi-automatic with human participation. In the prior art, a variety of automated and intelligent log measuring methods have been designed.
[0003] Manual measurement is mainly done by using a caliper to measure the diameter of the two ends of the log from multiple directions, using a hammer to hit one end of the log and then listening to the sound to identify which one it is, recording the smallest diameter of the end of the log, and then measuring the length of the log to calculate the volume of the log, and recording the data in the log number table. This method is inevitably affected by the work experience and level of the measuring personnel, and the manual method is costly, the measurement accuracy cannot be guaranteed, and the work efficiency is relatively low.
[0004] Semi-automatic measurement is done manually using the Internet of Things (IoT) with diameter measuring equipment. The equipment sends the data to a handheld smart terminal, and the terminal software automatically records the key data of the log and completes the record. This method reduces the error of manual measurement records, but still requires manual participation, and has certain requirements on the quality of personnel and the use of equipment.
[0005] Intelligent ruler measurement is mainly based on image processing and deep learning technology. It uses a camera to take a picture of the end face of a log, obtains the end face area of the image through object detection and instance segmentation, and then estimates the size of the log through perspective geometry. This method greatly improves the efficiency of ruler measurement and no longer requires manual front-line operation. However, there are also ruler measurement anomalies and errors caused by deep learning missed detection, area segmentation errors, etc., which also lead to the need for manual review. Therefore, it is necessary to further optimize the intelligent ruler measurement. Summary of the invention
[0006] The purpose of the present invention is to provide an intelligent measuring solution based on deep learning, three-dimensional reconstruction, digital twin physical topology and other technologies to address the deficiencies in the above-mentioned background technology, so as to realize integrated and automated operations such as log pile length measurement, log pile point counting, log end face measuring, and log end face correspondence on both sides, so as to solve the problems of high intensity of manual repetitive labor, high safety risks, high costs, and high reliance on the experience and ability of measuring personnel for the accuracy of measurement data in the log measuring process.
[0007] In order to achieve the above object, the present invention provides an intelligent measuring method for measuring the diameter of log piles, comprising the following steps:
[0008] S1, obtaining the depth projection of the log pile, calculating the length of the log pile and the distance between the log piles according to the depth difference, and confirming the gap position between the log piles;
[0009] S2, acquiring the point cloud and image of the end face of the log at the gap position of the log chop, detecting and segmenting the end face of the log through the deep learning model, and acquiring the end face area of the log;
[0010] S3, according to the end face area of the log, corresponding to the obtained 3D point cloud, recalculate the PCA main direction of the point cloud based on the normal, and obtain the real position and orientation of the end face of the log;
[0011] S4, reconstruct the local coordinates according to the main direction of the log end point cloud, calculate the centroid position of the log end point cloud, draw a line through the centroid of the log end at every preset angle, and intersect with the edge point cloud of the log end, calculate the distance between the intersection and the centroid, and calculate the average of all distances to obtain the diameter of the log end;
[0012] S5, reconstruct the physical topology of the log pile so that the end faces on the front and back sides of the log pile correspond uniquely, and calculate the diameter of the smallest log end face as the diameter of the log.
[0013] Furthermore, the end face images of the logs are photographed by multiple 3D cameras, using segmented overlapping photography so that each log is covered with the optimal viewing angle. The 3D point cloud is converted to the coordinate system of the 2D image, and the point cloud is aligned with the 2D image in the form of a depth map.
[0014] Furthermore, the deep learning model in S2 includes a LU-Net++ model. The U-Net++ model is trained with a large number of log end face images to obtain a LU-Net++ model for log end face image segmentation. The acquired log end face images are segmented by the LU-Net++ model to obtain grayscale images. The grayscale images are binarized and converted into black and white images to identify and determine the contours of the log ends. The holes in the binarized images are filled.
[0015] Furthermore, S3 specifically includes the following sub-steps:
[0016] S31, performing normal calculation on the point cloud of the end face of the log, calculating the normal direction of each point, and calculating the normal direction of the point by considering the positions of other points in its neighborhood;
[0017] S32, for each point, regard its normal vector as a eigenvector, form the normal vectors of all points into a normal matrix, and then calculate the covariance matrix of the normal matrix;
[0018] S33, performing eigenvalue decomposition on the covariance matrix to obtain eigenvalues and corresponding eigenvectors of the covariance matrix;
[0019] S34, selecting the eigenvector corresponding to the maximum eigenvalue as the main direction;
[0020] S35, recalculating the actual position and orientation of the end face of the log according to the selected main direction, and corresponding to the ground coordinate system.
[0021] Furthermore, in S4, a line is drawn through the centroid of the end face of the log at every 15°, and intersects with the edge point cloud of the end face of the log, and the distance between the intersection point and the centroid is calculated.
[0022] Furthermore, the edge point cloud of the log end face in S4 is a collection of points on the edge of the log end face, corresponding to the log end face contour identified in S2.
[0023] Furthermore, in S5, according to the direction of the log end face obtained in S4 and the diameter of the log end face obtained in S3, the logs are enlarged and extended at a preset angle so that the log end face on the other side is within the enlarged and extended area, and m log end faces are obtained in the extended area. The physical topological area is constructed and represented as W = {θ, R, L}, where θ is the direction vector of the log, R is the diameter of the log, and L is the length of the log. In the topological state, the incorrect correspondence between the front and rear log ends will make the stagger ratio between the logs large. The optimization goal is a constrained global optimization so that all logs can find the corresponding two end faces, and the stagger ratio is minimized. The smallest diameter of each log end face is taken as the diameter of the log.
[0024] Furthermore, in S5, an optimization equation is constructed according to the main direction of the end point cloud of each log. The constructed optimization equation is as follows:
[0025] Assume that there are N logs, and the main direction of the end point cloud of each log is expressed as ,in ; For each log, through the variable represents the position of the center of the log end face on the log pile, where The range is 0~L;
[0026] The optimization goal is to minimize the following cost function:
[0027] ;
[0028] Where J is the cost function, is a function that represents the degree of matching of the point cloud directions of the front and rear log ends. is a function representing the probability of overlap between the long axes of logs, and is the weight factor.
[0029] Furthermore, the constraints include a unique correspondence constraint: ensuring that each log end can only be matched with one corresponding log end.
[0030] The present invention also provides an intelligent measuring system for measuring the diameter of log piles, which adopts the intelligent measuring method for measuring the diameter of log piles as described above, including a workstation with a measuring area, a ground rail arranged in the measuring area, and a truss mechanical arm capable of moving along the ground rail, the truss mechanical arm including Z-axis lifting components distributed on left and right sides and a cross beam connecting the Z-axis lifting components on the left and right sides, the Z-axis lifting component drives the cross beam to rise and fall, the Z-axis lifting component is provided with a rotating component, the rotating component is used to drive the cross beam to rotate relative to the left and right axes, the cross beam is provided with multiple 3D cameras, and the 3D cameras are used to obtain point cloud and image data in real time.
[0031] The above scheme of the present invention has the following beneficial effects:
[0032] The intelligent measuring method and system for log pile diameter measurement provided by the present invention adopts technologies including deep learning, three-dimensional reconstruction, digital twin physical topology, etc., and completes operations such as log pile length measurement, log pile point counting, log end face measuring, and front and rear log end face correspondence, effectively solving the problems of high manual repetitive labor intensity, high safety risks, high costs, and high reliance on the experience and ability of measuring personnel in the log measuring process, and realizes the integrated and automated transformation of log measuring from manual measuring to intelligent measuring, improves production efficiency, and provides reliable basic data for production decision-making;
[0033] Other beneficial effects of the present invention will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 is a flow chart of the steps of the present invention;
[0035] Figure 2 A schematic diagram of the depth projection of a log pile of the present invention (a log pile located in a truck bed);
[0036] Figure 3 A schematic diagram of obtaining a log end face image according to the present invention;
[0037] Figure 4 It is a schematic diagram of different projection radii of a 2D image and a 3D point cloud of the present invention;
[0038] Figure 5 This is a schematic diagram of log end diameter calculation according to the present invention;
[0039] Figure 6 It is a schematic diagram of the log end face search range of the present invention.
[0040] [Description of Reference Numerals]
[0041] 1- Ground rail; 2- Z-axis lifting assembly; 3- Rotation assembly; 4- Cross beam; 5- 3D camera. DETAILED DESCRIPTION
[0042] The following describes the embodiments of the present disclosure through specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. The present disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.
[0043] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein may be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein may be implemented independently of any other aspect, and two or more of these aspects may be combined in various ways. For example, any number of aspects described herein may be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein may be used to implement this device and / or practice this method.
[0044] It should also be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present disclosure, and the illustrations only show the components related to the present disclosure rather than the number, shape and size of the components in actual implementation. The type, quantity and proportion of each component in actual implementation may be changed at will, and the component layout type may also be more complicated. In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, those skilled in the art will understand that the aspects described can be practiced without these specific details.
[0045] like Figure 1 As shown, an embodiment of the present invention provides an intelligent measuring method for measuring the diameter of log piles, which specifically includes the following steps:
[0046] S1, after the truck carrying the log pile enters the inspection area and is in place, the truss robot arm starts, the cross beam 4 rotates so that the 3D camera 5 looks downward, the truss robot arm moves along the X axis to the center position, and each 3D camera takes pictures synchronously. Figure 2 As shown, the length L of the log pile and the distance d between the log piles are calculated based on the depth difference.
[0047] S2, according to the calculated distance d between the log piles, the position of the gap between the log piles in the ground coordinate system is confirmed, the truss robot arm moves to this position, and the span beam 4 rotates (90 degrees) so that the 3D camera 5 is facing the end face of the log pile. The span beam 4 moves downward along the Z axis, and the 3D camera synchronously scans to obtain the point cloud and image, such as Figure 3 As shown in the figure, the image is detected and segmented by a deep learning model to obtain the area of the log end face.
[0048] It should be noted that due to the unevenness of the logs before and after chopping, direct splicing of 2D images will have time difference and loss problems, so the method of segmented overlapping photography is adopted to ensure that each log is covered with the optimal perspective; then the 2D image is accurately aligned with the 3D point cloud external parameters, the 3D point cloud is converted to the 2D image coordinate system, and the point cloud is strictly aligned with the 2D image in the form of a depth map to form a deep color image.
[0049] As a preferred embodiment, the deep learning model in this embodiment includes a LU-Net++ model. The U-Net++ model is widely used to segment medical cell images because of its dense short connection structure and deep supervision to enhance the image segmentation performance. Since medical cell images and log end images have certain similarities, in this embodiment, the U-Net++ model is trained with a large number of log end images to obtain a log end image segmentation network LU-Net++, and the acquired log end image is segmented by LU-Net++ to obtain a grayscale image. Then, the grayscale image is binarized and converted into a black and white image by software such as ImageJ to facilitate the identification and determination of the outline of the log end. In addition, in the binarized image, there are cracks and holes in some log ends. The binarization process regards this part as a non-log end, which will affect the subsequent identification, so it is necessary to fill the holes. Similarly, the holes of the binarized image are filled using ImageJ's Fill holes. Finally, the log end can be accurately identified.
[0050] Of course, other forms of deep learning models can also be used to train the deep learning model using the prepared log end images to learn how to accurately detect and segment the log ends. The trained deep learning model is then used to infer the new log end images to detect and segment the log end areas. Based on the learned features and shapes of the log ends, the deep learning model can accurately identify and segment the log end areas in the image to be detected.
[0051] S3, based on the log end area obtained in S2, the corresponding 3D point cloud is obtained. There is a problem of different projection radius between the 2D image and the 3D point cloud, such as Figure 4 As shown, the point cloud of the end face of the log is recalculated based on the PCA main direction of the normal to calculate the true position and orientation of the end face of the log.
[0052] It should be noted that the PCA (principal component analysis) based on normals in this embodiment is mainly used to estimate the main direction of the point cloud. In the point cloud of the end face of the log, the normal indicates the direction of the surface, so the normal information can be used to calculate the main direction. Specifically, it may include:
[0053] S31, calculate the normal of the point cloud of the end face of the log, and use the K nearest neighbor method to calculate the normal direction of each point. The principle is: for each point, the normal direction of the point is estimated by considering the positions of other points in its neighborhood.
[0054] S32, for each point, regard its normal vector as a eigenvector, compose the normal vectors of all points into a normal matrix, and then calculate the covariance matrix of the normal matrix.
[0055] S33, performing eigenvalue decomposition on the covariance matrix to obtain eigenvalues and corresponding eigenvectors of the covariance matrix.
[0056] S34, the eigenvector corresponding to the eigenvalue represents the main direction of the data, and the eigenvector corresponding to the maximum eigenvalue is selected as the main direction.
[0057] S35, recalculating the actual position and orientation of the end face of the log according to the selected main direction, and corresponding to the ground coordinate system.
[0058] Therefore, the PCA main direction calculation based on the normal can determine the main direction of the log end point cloud, thereby solving the problem of different projection radii between 2D images and 3D point clouds, making the position and direction of the end point cloud more accurate.
[0059] S4, reconstructs the local coordinate direction according to the main direction of the log end point cloud calculated by S3, and calculates the centroid position of the log end point cloud in the area. Considering that these point cloud parts are not represented in standard coordinate directions, there may be rotation or offset. Therefore, it is necessary to reconstruct the coordinate direction first so that the point cloud of the log end is aligned in a specific direction. For the reconstructed log end point cloud, calculate its centroid position. Among them, the centroid is the average position of all points in the area, which is usually used to represent the geometric center of the area.
[0060] In this embodiment, a line is drawn through the centroid of the log end face at every 15° and intersects with the edge point cloud of the log end face, and the distance between the intersection point and the centroid is calculated. The average of all distances is the diameter grade of the log end face, that is, the average diameter, such as Figure 5 shown.
[0061] It should be noted that the edge point cloud of the log end face is a collection of points on the edge of the log end face, which corresponds to the log end face contour identified in S2.
[0062] S5, uniquely correspond the end faces on both sides of the log pile, and calculate the diameter of the smallest log end face as the diameter of the log.
[0063] In this step, the physical topology of the log pile is reconstructed. According to the direction of the log end face obtained in S3 and the diameter of the log end face obtained in S4, the log end face is enlarged and extended at a certain angle so that the log end face on the other side is within the enlarged and extended area, such as Figure 6 As shown. In this extended area, m log end faces are obtained, and the physical topological area is constructed as W={θ, R,L}, where θ is the direction vector of the log, R is the diameter of the log, and L is the length of the log. In the topological state, the wrong correspondence between the front and rear log ends will make the interleaving ratio between the logs large. The optimization goal is a constrained global optimization so that all logs can find the corresponding two end faces and minimize the interleaving ratio. Finally, the smallest diameter of each log end face is used as the diameter of the log, which can be accurately measured.
[0064] It should be noted that the staggered ratio refers to the ratio of the contact area between two adjacent layers of logs in a wood stack to the surface area of the logs, which can evaluate the compactness and stability of the log chops.
[0065] Specifically in this embodiment, an optimization equation can be constructed according to the main direction of the end point cloud of each log. The constructed optimization equation is as follows:
[0066] Assume there are N logs, and the main direction of the end point cloud of each log is expressed as ,in For each log, there is also a variable , represents the position of the center of the log end face on the log pile, where The range is 0~L.
[0067] The optimization goal is to minimize the following cost function:
[0068] ;
[0069] Where J is the cost function, is a function that represents the degree of matching of the point cloud directions of the front and rear log ends. is a function representing the probability of overlap between the long axes of logs, and is the weight factor used to adjust the weights of the two cost terms.
[0070] In this embodiment, the correlation coefficient r can be used to measure the matching degree of the point cloud directions of the front and rear log ends, and is defined as as follows:
[0071] ;
[0072] in, represents the end point cloud of the nth log, represents the end point cloud of the n+1th log, is the minimum value of the matching degree.
[0073] For the overlap probability between the long axes of logs , can be calculated based on the overlap area and threshold A max The ratio is defined as:
[0074] ;
[0075] in, is the overlapping area between the two logs.
[0076] By adjusting the weight factor and The value of can balance the influence of the matching degree of the front and rear point clouds and the overlap probability between the long axes of the logs on the alignment relationship. Therefore, the optimization objective can be solved to obtain the best alignment relationship, which meets the requirements of high matching degree of the front and rear point clouds on the end of the log and low overlap probability between the long axes.
[0077] The introduced constraints include unique correspondence constraints: ensuring that each log end can only match one corresponding end. Of course, other constraints can also be introduced, such as log size constraints, stacking stability constraints, etc.
[0078] As described above, the intelligent measuring method provided in this embodiment completes the operations of measuring the length of log piles, counting log piles, measuring the end faces of logs, and corresponding the end faces of logs on the front and back sides through technologies such as deep learning, three-dimensional reconstruction, and digital twin physical topology. It effectively solves the problems of high intensity of manual repetitive labor, high safety risks, high costs, and high dependence of the accuracy of measurement data on the experience and ability of measuring personnel in the process of measuring logs, and realizes the integrated and automated transformation of log measuring from manual measuring to intelligent measuring, improves production efficiency, and provides reliable basic data for production decisions.
[0079] Based on the same inventive concept, this embodiment also provides an intelligent measuring system for measuring the diameter of log piles, including a workstation with a measuring area, a ground rail 1 arranged in the measuring area, and a truss robot arm that can move along the ground rail 1. The truss robot arm includes a Z-axis lifting assembly 2 distributed on the left and right sides and a cross beam connecting the Z-axis lifting assemblies 2 on the left and right sides. The Z-axis lifting assembly 2 can drive the cross beam 4 to lift and lower, and a rotating assembly 3 is arranged to enable the cross beam 4 to rotate relative to the left and right axes. A 3D camera 5 is arranged on the cross beam 4, and the 3D camera 5 can take pictures and obtain point cloud and image data in real time.
[0080] When a truck carrying a log pile enters the inspection area, the truck license plate can be photographed and recorded and checked by a camera to ensure that it is consistent with the information on the digital management platform. In order to facilitate the truck to park accurately, the truck tires are scanned in real time by laser radar and other devices, and the front and rear and left and right deviations of the truck and the marked parking position are calculated, and the large screen is used to display the real-time deviation to prompt the truck driver to operate the distance range. When the truck stops steadily, the truss mechanical arm starts to move forward and backward and move closer to each other under the drive of the ground rail 1. At this time, the cross beam 4 is at the top of the truss mechanical arm and the angle is vertically downward. The 3D camera 5 starts to take pictures synchronously, obtains point clouds in real time, and aligns them in the truss mechanical arm coordinate system. The depth curve of the Z axis can distinguish the gap distance between the front baffle and the log pile, the length of the log pile, and the gap distance between the log pile and the log pile. When the truss mechanical arm moves to the gap between the front baffle and the log pile and the gap between the log piles, the cross beam 4 rotates through the rotating component 3 so that the 3D camera 5 faces the end face of the log pile. The cross beam 4 moves downward along the Z axis on the Z axis lifting assembly 2 , and the 3D camera 5 starts to take pictures synchronously, acquiring point cloud and image data in real time, and the point cloud and image data timestamps of the 3D camera 5 are aligned.
[0081] It should be noted that multiple 3D cameras are installed on each of the two sets of truss robotic arms, and the images obtained by each 3D camera are stitched together by the system to obtain complete point cloud and image data of the chopped end surface of the log.
[0082] The system provided in this embodiment has the same inventive concept and beneficial effects as the aforementioned method, which will not be described in detail here.
[0083] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0084] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. An intelligent measuring method for measuring the diameter of log piles, characterized in that: The steps include: S1, obtaining the depth projection of the log pile, calculating the length of the log pile and the distance between the log piles according to the depth difference, and confirming the gap position between the log piles; S2, acquiring the point cloud and image of the end face of the log at the gap position of the log chop, detecting and segmenting the end face of the log through the deep learning model, and acquiring the end face area of the log; S3, according to the end face area of the log, corresponding to the obtained 3D point cloud, recalculate the PCA main direction of the point cloud based on the normal, and obtain the real position and orientation of the end face of the log; S4, reconstruct the local coordinates according to the main direction of the log end point cloud, calculate the centroid position of the log end point cloud, draw a line through the centroid of the log end at every preset angle, and intersect with the edge point cloud of the log end, calculate the distance between the intersection and the centroid, and calculate the average of all distances to obtain the diameter of the log end; S5, reconstruct the physical topology of the log pile so that the end faces on the front and back sides of the log pile correspond uniquely, and calculate the diameter of the smallest log end face as the diameter of the log.
2. The intelligent measuring method for log pile diameter measurement according to claim 1, characterized in that: The end face images of the logs are taken by multiple 3D cameras, using segmented overlapping photography so that each log is covered from the optimal perspective. The 3D point cloud is converted to the coordinate system of the 2D image, and the point cloud is aligned with the 2D image in the form of a depth map.
3. The intelligent measuring method for log pile diameter measurement according to claim 1, characterized in that: The deep learning model in S2 includes the LU-Net++ model. The U-Net++ model is trained with a large number of log end face images to obtain the LU-Net++ model for log end face image segmentation. The acquired log end face images are segmented by the LU-Net++ model to obtain grayscale images. The grayscale images are binarized and converted into black and white images to identify and determine the contours of the log ends. The holes in the binarized images are filled.
4. The intelligent measuring method for log pile diameter measurement according to claim 1, characterized in that: S3 specifically includes the following sub-steps: S31, performing normal calculation on the point cloud of the end face of the log, calculating the normal direction of each point, and calculating the normal direction of the point by considering the positions of other points in its neighborhood; S32, for each point, regard its normal vector as a eigenvector, form the normal vectors of all points into a normal matrix, and then calculate the covariance matrix of the normal matrix; S33, performing eigenvalue decomposition on the covariance matrix to obtain eigenvalues and corresponding eigenvectors of the covariance matrix; S34, selecting the eigenvector corresponding to the maximum eigenvalue as the main direction; S35, recalculating the actual position and orientation of the end face of the log according to the selected main direction, and corresponding to the ground coordinate system.
5. The intelligent measuring method for log pile diameter measurement according to claim 1, characterized in that: In S4, a line is drawn through the centroid of the end face of the log at every 15°, and intersects with the edge point cloud of the end face of the log, and the distance between the intersection point and the centroid is calculated.
6. The intelligent measuring method for log pile diameter measurement according to claim 5, characterized in that: The edge point cloud of the log end face in S4 is a collection of points on the edge of the log end face, corresponding to the log end face contour identified in S2.
7. The intelligent measuring method for log pile diameter measurement according to claim 1, characterized in that: In S5, according to the direction of the log end face obtained in S4 and the diameter of the log end face obtained in S3, the logs are enlarged and extended at a preset angle so that the log end face on the other side is within the enlarged and extended area. In the extended area, m log end faces are obtained, and the physical topological area is constructed as W = {θ, R, L}, where θ is the direction vector of the log, R is the diameter of the log, and L is the length of the log. In the topological state, the wrong correspondence between the front and rear log ends will make the stagger ratio between the logs large. The optimization goal is a constrained global optimization so that all logs can find the corresponding two end faces, and the stagger ratio is minimized. The smallest diameter of each log end face is taken as the diameter of the log.
8. The intelligent measuring method for log pile diameter measurement according to claim 7, characterized in that: In S5, an optimization equation is constructed according to the main direction of the end point cloud of each log. The constructed optimization equation is as follows: Assume that there are N logs, and the main direction of the end point cloud of each log is expressed as ,in ; For each log, through the variable represents the position of the center of the log end face on the log pile, where The range is 0~L; The optimization goal is to minimize the following cost function: ; Where J is the cost function, is a function that represents the degree of matching of the point cloud directions of the front and rear log ends. is a function representing the probability of overlap between the long axes of logs, and is the weight factor.
9. The intelligent measuring method for log pile diameter measurement according to claim 8, characterized in that: Constraints include a unique correspondence constraint: ensuring that each log end can only be matched with one corresponding log end.
10. An intelligent measuring system for measuring log pile diameter, using the intelligent measuring method for measuring log pile diameter as claimed in any one of claims 1 to 9, characterized in that: It includes a workstation with a ruler checking area, a ground rail arranged in the ruler checking area, and a truss robot arm capable of moving along the ground rail, the truss robot arm includes Z-axis lifting components distributed on left and right sides and a cross beam connecting the Z-axis lifting components on left and right sides, the Z-axis lifting component drives the cross beam to rise and fall, the Z-axis lifting component is provided with a rotating component, the rotating component is used to drive the cross beam to rotate relative to the left and right axes, a plurality of 3D cameras are provided on the cross beam, and the 3D cameras are used to obtain point cloud and image data in real time.
Citation Information
Patent Citations
Tree measurement and reconstruction method based on single three-dimensional laser scanning
CN101488226A
Multiple stumpage breast height diameter passive measurement method based on depth extraction model
CN109269430A
