Pot tray seedling leakage detection method based on 3D point cloud reconstruction

Through the detection method based on 3D point cloud reconstruction, the problem of inaccurate detection of leaking seedlings during transplanting of seedlings in the bowl is solved, the accurate identification and replanting of leaking seedling holes is achieved, and the quality of transplanting operations is improved.

CN118608818APending Publication Date: 2024-09-06HENAN UNIV OF SCI & TECH
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410757734.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

During the transplanting process of pot seedlings, existing technology cannot accurately detect missing seedlings, resulting in a decline in the quality of mechanized transplanting operations.

Method used

A detection method based on 3D point cloud reconstruction is used to collect data through a depth camera, use a point cloud processing library to segment and reconstruct the shape of plug trays and seedlings, identify the coordinates of holes where leaking seedlings are located, and perform replanting operations through robots.

Benefits of technology

The efficiency and accuracy of missing seedling detection during transplanting operations are improved, and the quality of transplanting operations is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118608818A
    Figure CN118608818A
Patent Text Reader

Abstract

The invention relates to a pot seedling leakage detection method based on 3D point cloud reconstruction, and the method comprises the steps: collecting the point cloud data information of a pot seedling tray through a depth camera, carrying out the processing of the data, segmenting a seedling from a plug, judging which hole the seedling is located in, judging the position of a hole where no seedling is located, calculating the coordinate of the hole where no seedling is located through perspective projection, and carrying out the calculation of the hole where no seedling is located. And carrying out subsequent complementary planting operation. The judgment efficiency of missing seedling detection and complementary planting in the transplanting operation is improved, and the transplanting operation quality can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent transplanting detection, and in particular to a method for detecting seedling leakage in pot tray seedlings based on 3D point cloud reconstruction. Background Art

[0002] With the rapid development of modern agricultural technology, the seedling raising method adopted by people has gradually shifted to the direction of factory-based pot tray seedlings, and automated transplanting technology has gradually become a research hotspot. As a common seedling raising method, accurate and efficient detection during the transplanting process of pot tray seedlings is the key to achieving automated transplanting. The pot tray seedling raising method can be used to cultivate seedlings in a unified manner, but the leaves of the seedlings will be staggered, making it impossible for the transplanting equipment to accurately determine the holes where the seedlings are missing, and unable to replant the holes, which is not conducive to subsequent transplanting operations. Summary of the invention

[0003] In view of the defects of the prior art, the present invention provides a method for detecting leaking seedlings in pot tray seedlings based on 3D point cloud reconstruction, which solves the problem that leaking seedlings are not discovered in time during the current mechanized transplanting, resulting in reduced transplanting operation quality.

[0004] In order to achieve the above object, the technical solution adopted by the present invention is: a method for detecting seedling leakage in pot tray seedlings based on 3D point cloud reconstruction, comprising the following steps: S1: The transplanting robot transports the seedlings to the detection black box and is located directly below the depth camera, so that the light in the depth camera's field of view is bright and uniform; S2: Use the depth camera to scan the seedlings in the plug tray to obtain image data, and use the depth camera to photograph the seedlings in the plug tray to obtain its depth image. The value of each pixel in the image represents the depth information from the point to the camera; S3: preprocessing the collected point cloud data; S4: Use the point cloud processing library PointCloudLibrary to segment the plug tray and seedlings, segment the point cloud data into individual seedling areas, identify the seedlings in each hole, and extract the point cloud data of each seedling; S5: Process the point cloud data inside each hole, extract the shape and structure information of the seedling, and use surface reconstruction technology to reconstruct the morphology of the seedling from the root to the leaf; S6: Analyze and compare the reconstructed seedlings, identify and judge them using the morphology and other characteristics of the seedlings, and obtain the coordinates of the holes where the missing seedlings are located; S7: If any missed seedlings are identified, the holes where they are located are marked, and the robot performs subsequent removal and replanting operations.

[0005] As a preferred solution, in step S2, the seedlings in the plug tray are scanned to obtain image data in the following process: the depth camera is pointed directly at the seedlings in the plug tray, the light in the field of view of the depth camera is bright and uniform, the seedlings in the plug tray are scanned, and point cloud data are obtained.

[0006] As a preferred solution, in step S3, preprocessing includes: using Gaussian filtering for denoising, setting the convolution kernel size to 3x3, and setting the standard deviation to 1; using a voxel grid filter function, setting the voxel grid size to 1 cm; converting the depth value of each pixel point into the corresponding three-dimensional coordinates, and combining these coordinates into a point cloud data set.

[0007] As a preferred solution, in step S4, the point cloud data is segmented into individual seedling regions, and a K-means clustering method is used to segment the point cloud data into different clusters corresponding to different seedling regions: Assume that the seedling point cloud is a data set containing n data points, denoted as {a1, a2, ..., a n}, where each data point a i Represents a point in a point cloud; set K cluster centers, denoted as {c1,c2,...,c k}, where each cluster center c j Represents the center point of a seedling; using the Euclidean distance dist(a i ,c j ) to measure data point a i With cluster center c j The distance between them is given by the following formula: Among them, a i and c j Represent the coordinates of data points and cluster centers respectively.

[0008] As a preferred solution, in step S5, the morphology of each seedling is reconstructed using the Poisson reconstruction algorithm: Assume that the point cloud data set X contains d points, and the coordinates of each point are expressed as (x i ,y i ,z i ), where i represents the index of the point; for each point X i , use the nearest neighbor-based normal vector estimation method to obtain its normal vector n i , represents the direction of the normal vector of the point cloud surface at that point; the Poisson reconstruction algorithm estimates the surface coordinate data f(x, y, z) by solving the following Poisson equation, that is, the function representation of the object surface: in, represents the Laplace operator, represents the divergence operator, n is the normal vector, and the solution f of the Poisson equation is the reconstructed object surface mesh model data.

[0009] As a preferred solution, the Open3D library is used to read the surface mesh model data of the object and perform seedling three-dimensional point cloud visualization operations.

[0010] As a preferred solution, the reconstructed seedlings are analyzed and compared with the complete healthy seedling point cloud data set to determine whether there are any missing seedlings, and the perspective projection method is used to convert the three-dimensional data of the holes where the missing seedlings are located into two-dimensional coordinates. The formula is as follows: Among them, U and V are the positions of the hole on the horizontal plane in the three-dimensional space, H is the depth in the three-dimensional space, F is the focal length of the camera, u is the two-dimensional horizontal coordinate, and v is the two-dimensional vertical coordinate.

[0011] Beneficial effects: The present invention can perform three-dimensional reconstruction of seedlings according to the 3D point cloud data generated by the seedlings, and can better distinguish the seedlings from the plug tray through image data preprocessing and K-means clustering data segmentation in sequence; in the seedling reconstruction, the use of the Poisson reconstruction algorithm can better reconstruct the seedling model, and more intuitively and conveniently determine the situation of erroneous seedling leakage and the coordinates of the holes where the leaked seedlings are located; the present invention improves the judgment efficiency of missed seedling detection and replanting in transplanting operations, and can improve the quality of transplanting operations. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 It is the overall flow chart of the present invention;

[0014] Figure 2 It is a data segmentation flow chart of the present invention;

[0015] Figure 3 It is a flow chart of seedling reconstruction of the present invention. DETAILED DESCRIPTION

[0017] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0018] The present invention provides a method for detecting missing seedlings in seedling trays based on 3D point cloud reconstruction. The method collects point cloud data information of seedling trays through a depth camera, processes the data, and separates the seedlings from the tray, thereby determining in which hole the seedlings are located and the location of the hole without seedlings. The coordinates of the hole without seedlings are calculated through perspective projection, and subsequent replanting operations are performed.

[0019] The transplanting robot transports the seedlings in the tray to the detection black box and is located directly below the depth camera. The detection position is determined by the beam sensor in front of the conveyor belt.

[0020] Use a depth camera to scan the seedlings in the plug tray to obtain image data, and pre-process the collected point cloud data, including denoising and filtering operations.

[0021] The point cloud processing software PointCloudLibrary was used to segment the plug trays and seedlings. K-means clustering was used to segment the point cloud data into individual seedling areas, including the following steps: randomly selecting K data points as the initial cluster centers; for each data point xi, calculating its distance to all cluster centers and assigning it to the category where the nearest cluster center is located; for each data point in each category, recalculating the cluster center of the category, that is, taking the mean of all data points in the category as the new cluster center; repeating the assignment and update steps until the cluster center no longer changes or the set number of iterations is reached.

[0022] The Poisson surface reconstruction technology is used to reconstruct the morphology of the seedlings from the root to the leaf, including the following steps: first, the normal vector of the point cloud data is estimated to obtain the normal vector information of each point; the normal vector information and Poisson's equation are used to solve the surface coordinate data f, that is, the reconstructed object surface; the surface coordinate data f is converted into a grid representation to obtain a grid model of the three-dimensional object, and the Open3D library is used to read the object surface grid model data to perform seedling three-dimensional point cloud visualization operations.

[0023] The reconstructed seedlings were analyzed and compared, and their morphology and other characteristics were used for identification and judgment. The perspective projection method was used to obtain the coordinates of the holes where the missing seedlings were located.

[0024] More specifically, an embodiment of the present invention provides a method for detecting seedling leakage in a pot seedling tray based on 3D point cloud reconstruction, comprising the following steps: S1: The transplanting robot transports the seedlings to the detection black box and is located directly below the depth camera, so that the light in the depth camera's field of view is bright and uniform; S2: Use the depth camera to scan the seedlings in the plug tray to obtain image data, and use the depth camera to photograph the seedlings in the plug tray to obtain its depth image. The value of each pixel in the image represents the depth information from the point to the camera; S3: preprocessing the collected point cloud data; S4: Use the point cloud processing library PointCloudLibrary to segment the plug tray and seedlings, segment the point cloud data into individual seedling areas, identify the seedlings in each hole, and extract the point cloud data of each seedling; S5: Process the point cloud data inside each hole, extract the shape and structure information of the seedling, and use surface reconstruction technology to reconstruct the morphology of the seedling from the root to the leaf; S6: Analyze and compare the reconstructed seedlings, identify and judge them using the morphology and other characteristics of the seedlings, and obtain the coordinates of the holes where the missing seedlings are located; S7: If any missed seedlings are identified, the holes where they are located are marked, and the robot performs subsequent removal and replanting operations.

[0025] In step S1, the depth camera is located on the top surface of the detection black box, wherein the parts not described in detail in this application are all prior art.

[0026] In step S2, the seedlings in the plug tray are scanned, and the process of obtaining image data is as follows: the depth camera is pointed directly at the seedlings in the plug tray, so that the light in the field of view of the depth camera is bright and uniform, and the seedlings in the plug tray are scanned to obtain point cloud data.

[0027] In step S3, the preprocessing includes: using Gaussian filtering for denoising, setting the convolution kernel size to 3x3, and setting the standard deviation to 1; using the voxel grid filter function, setting the voxel grid size to 1 cm; converting the depth value of each pixel point into the corresponding three-dimensional coordinates, and combining these coordinates into a point cloud data set.

[0028] In step S4, the point cloud data is segmented into individual seedling regions, and a K-means clustering method is used to segment the point cloud data into different clusters corresponding to different seedling regions: Assume that the seedling point cloud is a data set containing n data points, denoted as {a1, a2, ..., a n}, where each data point a i Represents a point in a point cloud; set K cluster centers, denoted as {c1,c2,...,c k}, where each cluster center c j Represents the center point of a seedling; using the Euclidean distance dist(a i ,c j ) to measure data point a i With cluster center c j The distance between them is given by the following formula: Among them, a i and c j Represent the coordinates of data points and cluster centers respectively.

[0029] In step S5, the morphology of each seedling is reconstructed using the Poisson reconstruction algorithm: Assume that the point cloud dataset X contains d points, and the coordinates of each point are expressed as (x i ,y i ,z i ), where i represents the index of the point; for each point X i, use the nearest neighbor-based normal vector estimation method to obtain its normal vector n i , represents the direction of the normal vector of the point cloud surface at that point; the Poisson reconstruction algorithm estimates the surface coordinate data f(x, y, z) by solving the following Poisson equation, that is, the function representation of the object surface: in, represents the Laplace operator, represents the divergence operator, n is the normal vector, and the solution f of the Poisson equation is the reconstructed object surface mesh model data.

[0030] Use the Open3D library to read the surface mesh model data of the object and perform seedling three-dimensional point cloud visualization operations.

[0031] The reconstructed seedlings were analyzed and compared with the complete healthy seedling point cloud data set to determine whether there were any missing seedlings, and the perspective projection method was used to convert the three-dimensional data of the holes where the missing seedlings were located into two-dimensional coordinates. The formula is as follows: Among them, U and V are the positions of the hole on the horizontal plane in the three-dimensional space, H is the depth in the three-dimensional space, F is the focal length of the camera, u is the two-dimensional horizontal coordinate, and v is the two-dimensional vertical coordinate.

[0032] The present invention can perform three-dimensional reconstruction of seedlings according to the 3D point cloud data generated by the seedlings, and can better distinguish the seedlings from the plug tray through image data preprocessing and K-means clustering data segmentation in sequence; in the seedling reconstruction, the Poisson reconstruction algorithm can be used to better reconstruct the seedling model, and the situation of erroneous seedling leakage and the coordinates of the holes where the leaked seedlings are located can be more intuitive and convenient; the present invention improves the judgment efficiency of missed seedling detection and replanting in transplanting operations, and can improve the quality of transplanting operations.

[0033] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technician familiar with this profession can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present invention. However, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention without departing from the content of the technical solution of the present invention still fall within the scope of the technical solution of the present invention.

Claims

1. A method for detecting seedling leakage in pot trays based on 3D point cloud reconstruction, characterized in that: The following steps are involved: S1: The transplanting robot transports the seedlings to the detection black box and is located directly below the depth camera, so that the light in the depth camera's field of view is bright and uniform; S2: Use the depth camera to scan the seedlings in the plug tray to obtain image data, and use the depth camera to photograph the seedlings in the plug tray to obtain its depth image. The value of each pixel in the image represents the depth information from the point to the camera; S3: preprocessing the collected point cloud data; S4: Use the point cloud processing library PointCloudLibrary to segment the plug tray and seedlings, segment the point cloud data into individual seedling areas, identify the seedlings in each hole, and extract the point cloud data of each seedling; S5: Process the point cloud data inside each hole, extract the shape and structure information of the seedling, and use surface reconstruction technology to reconstruct the morphology of the seedling from the root to the leaf; S6: Analyze and compare the reconstructed seedlings, identify and judge them using the morphology and other characteristics of the seedlings, and obtain the coordinates of the holes where the missing seedlings are located; S7: If any missed seedlings are identified, the holes where they are located are marked, and the robot performs subsequent removal and replanting operations.

2. The method for detecting seedling leakage in pot tray seedlings based on 3D point cloud reconstruction as claimed in claim 1, characterized in that: In step S2, the seedlings in the plug tray are scanned, and the process of obtaining image data is as follows: the depth camera is pointed directly at the seedlings in the plug tray, so that the light in the field of view of the depth camera is bright and uniform, and the seedlings in the plug tray are scanned to obtain point cloud data.

3. The method for detecting seedling leakage in pot tray seedlings based on 3D point cloud reconstruction as claimed in claim 1, characterized in that: In step S3, the preprocessing includes: using Gaussian filtering for denoising, setting the convolution kernel size to 3x3, and setting the standard deviation to 1; using the voxel grid filter function, setting the voxel grid size to 1 cm; converting the depth value of each pixel point into the corresponding three-dimensional coordinates, and combining these coordinates into a point cloud data set.

4. The method for detecting seedling leakage in pot tray seedlings based on 3D point cloud reconstruction as claimed in claim 1, characterized in that: In step S4, the point cloud data is segmented into individual seedling regions, and a K-means clustering method is used to segment the point cloud data into different clusters corresponding to different seedling regions: Assume that the seedling point cloud is a data set containing n data points, denoted as {a1, a2, ..., a n }, where each data point a i Represents a point in a point cloud; set K cluster centers, denoted as {c1,c2,...,c k }, where each cluster center c j Represents the center point of a seedling; using the Euclidean distance dist(a i ,c j ) to measure data point a i With cluster center c j The distance between them is given by the following formula: Among them, a i and c j Represent the coordinates of data points and cluster centers respectively.

5. The method for detecting seedling leakage in pot tray seedlings based on 3D point cloud reconstruction as claimed in claim 1, characterized in that: In step S5, the morphology of each seedling is reconstructed using the Poisson reconstruction algorithm: suppose the point cloud data set X contains d points, and the coordinates of each point are represented as (xi, yi, zi), where i represents the index of the point; for each point Xi, the normal vector estimation method based on the nearest neighbor is used to obtain its normal vector ni, which represents the normal vector direction of the point cloud surface at that point; the Poisson reconstruction algorithm estimates the surface coordinate data f(x, y, z) by solving the following Poisson equation, that is, the function representation of the object surface: in, represents the Laplace operator, represents the divergence operator, n is the normal vector, and the solution f of the Poisson equation is the reconstructed object surface mesh model data.

6. The method for detecting seedling leakage in pot tray seedlings based on 3D point cloud reconstruction as claimed in claim 5, characterized in that: Use the Open3D library to read the surface mesh model data of the object and perform seedling three-dimensional point cloud visualization operations.

7. The method for detecting seedling leakage in pot tray seedlings based on 3D point cloud reconstruction according to claim 1, characterized in that: In step S6, the reconstructed seedlings are analyzed and compared with the complete healthy seedling point cloud data set to determine whether there are any missing seedlings, and the perspective projection method is used to convert the three-dimensional data of the holes where the missing seedlings are located into two-dimensional coordinates. The formula is as follows: Among them, U and V are the positions of the hole on the horizontal plane in the three-dimensional space, H is the depth in the three-dimensional space, F is the focal length of the camera, u is the two-dimensional horizontal coordinate, and v is the two-dimensional vertical coordinate.

Citation Information

Cited By

  • Planting missing detection and complementary planting seedling planting system and method of vegetable transplanter

    CN120359877A

  • Sowing quality detection method based on image stitching algorithm and clustering analysis

    CN120673100A