Crop three-dimensional phenotype analysis method, device, equipment and medium
By acquiring and processing 3D point cloud data in the facility environment, performing point cloud registration and segmentation, and combining with the time-series phenotypic analysis algorithm, the problem of low accuracy of crop 3D phenotype analysis is solved, and efficient and automated crop growth monitoring is achieved. and data analysis.
Patent Information
- Application Number
- CN202410755743.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-09-10
AI Technical Summary
The accuracy of crop three-dimensional phenotypic analysis results in the existing technology is low, which leads to challenges in high-throughput and automated acquisition and analysis of crops. In particular, it is difficult to convert high-time-series, automated phenotypic data into usable by agronomists in a facility environment. live data.
By obtaining multiple 3D point cloud sets of the target area in the facility environment, point cloud registration, single potted crop segmentation and plant segmentation are performed, and combined with the time series phenotype analysis algorithm, the time series phenotype analysis results of each plant are obtained , improve the accuracy and availability of data.
It realizes automated analysis of crop 3D phenotypic data, improves the efficiency and accuracy of crop growth monitoring, can efficiently acquire and analyze crop time-series phenotypic data, and solves the problem of low accuracy in existing technologies.
Smart Images

Figure CN118628537A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of crop phenotyping, and in particular to a method, device, equipment and medium for analyzing three-dimensional phenotyping of crops. Background Art
[0002] With the widespread application of third-generation sequencing technology, the acquisition of crop genotype data has become relatively mature. How to obtain and analyze the corresponding genotype data with high throughput has become a bottleneck in crop multi-omics research. There are problems such as large workload, low efficiency, and inconsistent measurement standards when obtaining phenotypic data through traditional manual measurement. This is particularly prominent when obtaining phenotypic data for thousands of combined materials, and it is even more difficult to obtain time-series phenotypic data for these materials. Therefore, high-throughput, automated acquisition and analysis of crop phenotypes is particularly important.
[0003] Crop phenotyping analysis is mainly applied to two categories: open field environments and controlled facility environments. The field environment is complex and crop cultivation and management are extensive, which poses higher challenges to crop phenotyping acquisition and analysis. The facility environment is relatively controllable, and the crop cultivation and management are more consistent, which is more suitable for high-throughput, automated, and high-time-series phenotypic information acquisition. Facility environment phenotyping platforms mainly include track-based, assembly line-based, unmanned vehicle-based, and robotic-based. Track-based phenotyping platforms can automatically acquire high-time-series crop phenotypic data, but as the data continues to accumulate, due to the lack of easy-to-use phenotypic analysis algorithms, these data are piled up in large quantities and cannot be converted into live data that can be used by agronomists.
[0004] The changes in crop morphological structure in three-dimensional (3D) space are the most intuitive manifestation of observing and evaluating crop appearance and growth. 3D phenotyping technology provides a means for analyzing crop morphological structure phenotypes, and can quantify the differences in morphological traits between populations and related species that cannot be measured manually. Observing the changes in crop morphological structure over a continuous period of time places higher demands on the acquisition and analysis of high-throughput, automated crop phenotypes. Therefore, the prior art proposes a time-series phenotyping analysis method, but the existing time-series phenotyping analysis algorithm is not perfect and has a low precision, resulting in inaccurate results of crop 3D phenotyping analysis. Summary of the invention
[0005] The present invention provides a crop three-dimensional phenotypic analysis method, device, equipment and medium, which are used to solve the problem of low accuracy of crop three-dimensional phenotypic analysis results in the prior art.
[0006] In a first aspect, the present invention provides a method for analyzing three-dimensional phenotyping of crops, comprising: Acquire a plurality of first target 3D point cloud sets of a target area in the facility environment at preset day intervals; the target area includes a plurality of single potted crops; Performing point cloud registration based on the multiple first target 3D point cloud sets to obtain multiple second target 3D point cloud sets that have completed registration; Performing single potted crop segmentation based on each second target 3D point cloud set to obtain a single potted crop 3D point cloud set for each single potted crop in each second target 3D point cloud set; Performing plant segmentation based on each single plant 3D point cloud set in each second target 3D point cloud set to obtain a plant 3D point cloud set of each plant in each second target 3D point cloud set; Based on the plant 3D point cloud set of each plant in each second target 3D point cloud set, a temporal phenotype analysis is performed to obtain a temporal phenotype analysis result for each plant.
[0007] In one embodiment, performing point cloud registration based on the plurality of first target 3D point cloud sets to obtain a plurality of second target 3D point cloud sets that have completed registration includes: Determine the centroid of each first target 3D point cloud set; Taking each centroid as a reference, each first target 3D point cloud set is updated to a standard position to obtain multiple standard 3D point cloud sets; extracting the RGB value of each point cloud in the first standard 3D point cloud set; Determine the point cloud in the first standard 3D point cloud set whose RGB value is greater than or equal to a preset threshold as the flower pot edge point cloud; Based on the plurality of flower pot edge point clouds, dividing the point cloud sets according to the same flower pot, to obtain a plurality of first flower pot edge point cloud sets in the first standard 3D point cloud set; Performing flowerpot edge segmentation on each of the remaining standard 3D point cloud sets to obtain a plurality of second flowerpot edge point cloud sets in each of the remaining standard 3D point cloud sets; the remaining standard 3D point cloud sets refer to the remaining standard 3D point cloud sets in the plurality of standard 3D point cloud sets except the first standard 3D point cloud set; According to the completeness of each second flower pot edge point cloud set in each remaining standard 3D point cloud set, determine the top N third flower pot edge point cloud sets with the highest degree of completeness in each remaining standard 3D point cloud set; A plurality of fourth flower pot edge point cloud sets corresponding to each of the remaining standard 3D point cloud sets are segmented from the plurality of first flower pot edge point cloud sets; any of the fourth flower pot edge point cloud sets is a first flower pot edge point cloud set matched by any third flower pot edge point cloud set in the remaining standard 3D point cloud sets; Based on the multiple fourth flower pot edge point cloud sets corresponding to each other standard 3D point cloud set, the multiple third flower pot edge point cloud sets of each other standard 3D point cloud set, the multiple other standard 3D point cloud sets and the multiple first flower pot edge point cloud sets, each other standard 3D point cloud set is point cloud aligned with the first standard 3D point cloud set to obtain multiple second target 3D point cloud sets that have completed the alignment.
[0008] In one embodiment, based on a plurality of fourth flowerpot edge point cloud sets corresponding to each remaining standard 3D point cloud set, a plurality of third flowerpot edge point cloud sets of each remaining standard 3D point cloud set, a plurality of remaining standard 3D point cloud sets and the plurality of first flowerpot edge point cloud sets, each remaining standard 3D point cloud set is point cloud aligned with the first standard 3D point cloud set to obtain a plurality of second target 3D point cloud sets that have been aligned, the following steps are performed for each remaining standard 3D point cloud set: point cloud alignment is performed based on a plurality of fourth flowerpot edge point cloud sets corresponding to the remaining standard 3D point cloud sets and a plurality of third flowerpot edge point cloud sets of the remaining standard 3D point cloud sets to obtain a plurality of first alignment results; Merging the multiple first registration results to obtain a first merged result; Performing point cloud registration on the first merging result and the plurality of first flower pot edge point cloud sets to obtain a second registration result; Merging the second registration result and the plurality of first flower pot edge point cloud sets to obtain a second merged result; Point cloud registration is performed on the remaining standard 3D point cloud sets and the second merging result to obtain a second target 3D point cloud set in which the remaining standard 3D point cloud sets are registered.
[0009] In one embodiment, the segmentation of individual potted crops based on each second target 3D point cloud set to obtain an individual 3D point cloud set of each individual potted crop in each second target 3D point cloud set includes: Segmenting the first second target 3D point cloud set into individual potted crops to obtain an individual 3D point cloud set of each individual potted crop in the first second target 3D point cloud set; Determine a point cloud bounding box of each single potted crop in the first second target 3D point cloud set based on the single plant 3D point cloud set of each single potted crop in the first second target 3D point cloud set; Based on the point cloud bounding box of each single potted crop in the first second target 3D point cloud set, each remaining second target 3D point cloud set is segmented into single potted crop to obtain a single plant 3D point cloud set of each single potted crop in each remaining second target 3D point cloud set; the remaining second target 3D point cloud sets are the second target 3D point cloud sets remaining in the multiple second target 3D point cloud sets except the first second target 3D point cloud set.
[0010] In one embodiment, based on the point cloud bounding box of each single potted crop in the first second target 3D point cloud set, each remaining second target 3D point cloud set is segmented into single potted crops to obtain a single plant 3D point cloud set of each single potted crop in each remaining second target 3D point cloud set, and the following steps are performed for each remaining second target 3D point cloud set: Based on the X-axis coordinates and Y-axis coordinates of each vertex in each point cloud bounding box, the segmentation area of each single potted crop is divided; according to the segmentation area of each single potted crop, the remaining second target 3D point cloud sets are segmented into single potted crops to obtain the single 3D point cloud sets of each single potted crop in the remaining second target 3D point cloud sets.
[0011] In one embodiment, when plant segmentation is performed based on each single plant 3D point cloud set in each second target 3D point cloud set to obtain a plant 3D point cloud set of each plant in each second target 3D point cloud set, the following steps are performed for each single plant 3D point cloud set in each second target 3D point cloud set: Inputting the single plant 3D point cloud set in the second target 3D point cloud set into a plant segmentation model to obtain an initial 3D point cloud set of the plant in the second target 3D point cloud set output by the plant segmentation model; the plant segmentation model is obtained by model training based on single plant 3D point cloud set samples and label data corresponding to the single plant 3D point cloud set samples; Outliers are removed from the initial 3D point cloud set of the plant to obtain the plant 3D point cloud set of the plant.
[0012] In one embodiment, when performing temporal phenotype analysis based on the plant 3D point cloud set of each plant in each second target 3D point cloud set to obtain the temporal phenotype analysis result of each plant, the following steps are performed for each plant: Determining a plurality of phenotypic data of the plant in each second target 3D point cloud set based on the plant 3D point cloud set of the plant in each second target 3D point cloud set; Based on the multiple phenotypic data of the plant in each second target 3D point cloud set, a temporal phenotypic change analysis is performed to obtain a temporal phenotypic analysis result of the plant.
[0013] In a second aspect, the present invention further provides a crop three-dimensional phenotyping device, comprising: An acquisition module is used to acquire a plurality of first target 3D point cloud sets of a target area in the facility environment at preset day intervals; the target area includes a plurality of single potted crops; A registration module, used for performing point cloud registration based on the multiple first target 3D point cloud sets to obtain multiple second target 3D point cloud sets that have completed registration; A first segmentation module is used to segment individual potted crops based on each second target 3D point cloud set to obtain an individual 3D point cloud set of each individual potted crop in each second target 3D point cloud set; A second segmentation module is used to perform plant segmentation based on each single plant 3D point cloud set in each second target 3D point cloud set to obtain a plant 3D point cloud set of each plant in each second target 3D point cloud set; The temporal phenotype analysis module is used to perform temporal phenotype analysis based on the plant 3D point cloud set of each plant in each second target 3D point cloud set to obtain the temporal phenotype analysis result of each plant.
[0014] In a third aspect, the present invention provides a device, comprising an electronic device, wherein the electronic device comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any one of the above-mentioned methods for analyzing three-dimensional crop phenotypes are implemented.
[0015] In a fourth aspect, the present invention further provides a medium, comprising a non-transitory computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of any of the above-mentioned methods for analyzing three-dimensional crop phenotypes are implemented.
[0016] The crop three-dimensional phenotypic analysis method, device, equipment and medium provided by the present invention perform point cloud registration based on multiple first target 3D point cloud sets with time sequence, and can realize point cloud position alignment for subsequent analysis, and further accurately obtain the plant 3D point cloud set of each plant in each second target 3D point cloud set through processing methods such as single potted crop segmentation and plant segmentation, and perform time sequence phenotypic analysis based on this to obtain the time sequence phenotypic analysis result of each plant, which can not only realize the automatic analysis of crop 3D phenotypic data, but also greatly improve the accuracy of crop 3D analysis, thereby improving the efficiency and accuracy of crop growth monitoring. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 It is a schematic diagram of the process of the crop three-dimensional phenotyping method provided by the present invention.
[0019] Figure 2 It is a schematic diagram of the structure of the crop three-dimensional phenotype analysis device provided by the present invention.
[0020] Figure 3 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0022] The terms "first", "second", etc. in the present invention are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention can be implemented in an order other than those illustrated or described herein.
[0023] Combine the following Figure 1-Figure 3 The present invention describes the crop three-dimensional phenotyping method, device, equipment and medium provided by the present invention.
[0024] It should be noted that the crop three-dimensional phenotypic analysis method provided in the embodiment of the present invention is implemented based on the crop three-dimensional phenotypic analysis device. The crop three-dimensional phenotypic analysis method provided in the embodiment of the present invention is applicable to crops planted in flower pots or other containers in a facility environment. The facility environment refers to an environment created by artificial means in a specific space, such as a multi-span greenhouse. The embodiment of the present invention is described by taking crops planted in flower pots, i.e. potted crops, as an example, and the facility environment is not restricted. The embodiment of the present invention describes the crop three-dimensional phenotypic analysis method by taking the crop three-dimensional phenotypic analysis device as the execution subject as an example.
[0025] Figure 1 : is a schematic diagram of the process of the crop three-dimensional phenotyping method provided by the present invention, such as Figure 1 As shown, the method includes the following: Step 101: Acquire multiple first target 3D point cloud sets of a target area in a facility environment at preset day intervals.
[0026] Specifically, before monitoring the growth of individual potted crops, they are manually arranged in strips in the facility environment according to preset rules, such as a long strip matrix of 4 rows × 50 columns. The flower pots used for each individual potted crop are consistent, and there is a certain interval between the placement positions of the flower pots.
[0027] Furthermore, the track-type phenotyping platform is used to obtain top-view images or lidar data of the target area in the facility environment multiple times at preset day intervals to obtain multiple top-view image data or multiple lidar data, wherein the preset day interval is set according to actual conditions, such as collecting data once every 3 days.
[0028] Furthermore, multiple top view image data are processed by a Structure From Motion (SFM) algorithm, or multiple lidar data are processed by a radar data processing algorithm to obtain multiple first initial 3D point cloud sets of the target area within the golden area of the facility, wherein the target area is the area where multiple single potted crops are placed.
[0029] It should be noted that each first initial 3D point cloud set corresponds to a collection time, and since they are obtained at preset intervals of days, multiple first initial 3D point cloud sets have a time sequence. For example, the first first initial 3D point cloud set refers to the 3D point cloud set of the target area within the first day of collecting data, the second first initial 3D point cloud set refers to the 3D point cloud set of the target area within the second day of collecting data, and so on.
[0030] Furthermore, downsampling the multiple first initial 3D point cloud sets to obtain multiple first processed data can improve the efficiency of subsequent point cloud data processing.
[0031] Furthermore, based on a statistical filtering algorithm, a plurality of first processed data are subjected to denoising processing to obtain a plurality of second processed data.
[0032] In one embodiment, the statistical filtering algorithm can adopt a random sample consensus algorithm (RANSAC). RANSAC is a statistical algorithm used to fit mathematical models to outliers in observed data. It fits a plane in the point cloud, which divides the point cloud into two parts, and sets two different filtering thresholds for the upper and lower parts of the point cloud. In this way, the integrity of the point cloud can be well preserved, and the noise of the point cloud can also be removed.
[0033] Furthermore, a plurality of second processed data are horizontally calibrated to obtain a plurality of third processed data.
[0034] In one embodiment, the horizontal calibration method can be: using the RANSAC algorithm to fit a plane and obtain the ground plane equation, determining the normal vector N of the ground according to the ground plane equation, calculating the rotation matrix R according to the normal vector N and the horizontal vector Q in the global coordinate system, and multiplying the point cloud by the rotation matrix R to obtain the point cloud after the horizontal plane is rotated.
[0035] Furthermore, ground point clouds are removed from the plurality of third processed data to obtain a plurality of fourth processed data. In one embodiment, a convexity shape function (CSF) algorithm can be used to detect and segment the ground point clouds and remove them.
[0036] Furthermore, the plurality of fourth processed data are divided into stripes to obtain a plurality of fifth processed data.
[0037] It should be noted that the reconstructed point cloud includes other point clouds except the strip of interest. The Density-Based Spatial Clustering of Applications with Noise (DBSCAN) algorithm can be used to segment the strips and save the cluster with the largest number of points in the cluster to obtain a clean point cloud of the strip of interest.
[0038] Furthermore, a plurality of fifth processed data are subjected to strip point cloud direction calibration to obtain a plurality of sixth processed data.
[0039] In one embodiment, the strip point cloud direction calibration method can be: use the principal component analysis (PCA) algorithm to calculate the eigenvalues and eigenvectors of the covariance matrix of the point cloud, obtain the first principal component eigenvector (Y axis) and the second principal component eigenvector (X axis), define the Z axis vector in the global coordinate system as the reference direction, and calculate the rotation angle with the first principal component eigenvector. If the calculated angle is greater than 90 degrees, subtract 180 degrees to ensure that the calculated angle is not a reverse angle. Finally, the point cloud is rotated around the Z axis according to the rotation angle and the rotation matrix R to obtain the point cloud after the coordinate system is calibrated. The direction of the calibrated point cloud is the Y axis direction.
[0040] Furthermore, point cloud scaling is performed on the plurality of sixth processed data to obtain a plurality of seventh processed data.
[0041] In one embodiment, the point cloud scaling method may be: scaling is performed by measuring the ratio between the actual distance between two markers and the distance in the point cloud according to the calibration object set in the strip of interest.
[0042] Furthermore, distortion correction is performed on the plurality of seventh processed data to obtain a plurality of first target 3D point cloud sets.
[0043] In one embodiment, the distortion correction method may be: adopting a segmentation and rotation method to perform distortion correction. The point cloud is evenly divided into several parts along the Y axis, and according to the principle of the above-mentioned horizontal calibration, the segmented point clouds are rotated one by one, and the rotated point cloud bounding box is calculated, and the point cloud is arranged according to the center point of the point cloud bounding box in the Y axis direction, and the translation distance is calculated, so that the point cloud is arranged along the Y axis and translated to the plane of Z=0 to keep the bottom aligned, and the corrected point cloud data is obtained.
[0044] Step 102: performing point cloud registration based on the multiple first target 3D point cloud sets to obtain multiple second target 3D point cloud sets that have completed registration.
[0045] Step 103 : performing single potted crop segmentation based on each second target 3D point cloud set to obtain a single potted crop 3D point cloud set of each single potted crop in each second target 3D point cloud set.
[0046] Step 104: perform plant segmentation based on each single plant 3D point cloud set in each second target 3D point cloud set to obtain a plant 3D point cloud set of each plant in each second target 3D point cloud set.
[0047] Step 105 : performing temporal phenotypic analysis based on the plant 3D point cloud set of each plant in each second target 3D point cloud set to obtain a temporal phenotypic analysis result for each plant.
[0048] Specifically, the first first target 3D point cloud set among the multiple first target 3D point cloud sets is determined as the registration target, and each of the remaining first target 3D point cloud sets among the multiple first target 3D point cloud sets is determined as the registration source.
[0049] Furthermore, the multiple registration sources are registered with the registration target respectively to obtain multiple second target 3D point cloud sets that have been registered, wherein the multiple second target 3D point cloud sets that have been registered include the registration target and the registered registration sources.
[0050] Furthermore, based on each single potted crop segmentation in each second target 3D point cloud set, a plant 3D point cloud set of each plant in each second target 3D point cloud set is obtained to achieve point cloud segmentation of group potted crops and single potted crops in the target area.
[0051] Furthermore, plant segmentation is performed based on each single plant 3D point cloud set in each second target 3D point cloud set to obtain a plant 3D point cloud set for each plant in each second target 3D point cloud set, so as to realize point cloud segmentation of plants and flower pots in single potted crops.
[0052] Furthermore, phenotypic data is calculated based on the plant 3D point cloud set of each plant in each second target 3D point cloud set to obtain a variety of phenotypic data of each plant in each second target 3D point cloud set.
[0053] Furthermore, based on the multiple phenotypes of each plant in each second target 3D point cloud set, a temporal phenotypic change analysis is performed to obtain a temporal phenotypic analysis result of the plant.
[0054] The crop three-dimensional phenotypic analysis method provided by the present invention performs point cloud registration based on multiple first target 3D point cloud sets with time series, and can realize point cloud position alignment for subsequent analysis. Further, through processing methods such as single potted crop segmentation and plant segmentation, the plant 3D point cloud set of each plant in each second target 3D point cloud set is accurately obtained, and time series phenotypic analysis is performed based on this to obtain the time series phenotypic analysis results of each plant. This can not only realize the automatic analysis of crop 3D phenotypic data, but also greatly improve the accuracy of crop 3D analysis, thereby improving the efficiency and accuracy of crop growth monitoring.
[0055] Further, based on step 102, performing point cloud registration based on the plurality of first target 3D point cloud sets to obtain a plurality of second target 3D point cloud sets after registration includes: Determine the centroid of each first target 3D point cloud set; based on each centroid, perform standard position update on each first target 3D point cloud set to obtain multiple standard 3D point cloud sets; extract the RGB value of each point cloud in the first standard 3D point cloud set; determine the point cloud in the first standard 3D point cloud set that satisfies the RGB value greater than or equal to a preset threshold as the flower pot edge point cloud; based on multiple flower pot edge point clouds, perform point cloud set division according to the same flower pot to obtain multiple first flower pot edge point cloud sets in the first standard 3D point cloud set; perform flower pot edge segmentation on each remaining standard 3D point cloud set to obtain multiple second flower pot edge point cloud sets in each remaining standard 3D point cloud set; the remaining standard 3D point cloud sets refer to the standard 3D point cloud sets remaining in the multiple standard 3D point cloud sets except the first standard 3D point cloud set; according to each of its According to the completeness of each second flowerpot edge point cloud set in the remaining standard 3D point cloud sets, determine the top N third flowerpot edge point cloud sets with the highest degree of completeness in each remaining standard 3D point cloud set; divide the multiple fourth flowerpot edge point cloud sets corresponding to each remaining standard 3D point cloud set from the multiple first flowerpot edge point cloud sets; any of the fourth flowerpot edge point cloud sets is the first flowerpot edge point cloud set matched by any third flowerpot edge point cloud set in the remaining standard 3D point cloud sets; based on the multiple fourth flowerpot edge point cloud sets corresponding to each remaining standard 3D point cloud set, the multiple third flowerpot edge point cloud sets of each remaining standard 3D point cloud set, the multiple remaining standard 3D point cloud sets and the multiple first flowerpot edge point cloud sets, perform point cloud registration on each remaining standard 3D point cloud set with the first standard 3D point cloud set to obtain multiple second target 3D point cloud sets that have completed the registration.
[0056] It should be noted that the main idea of temporal point cloud registration is that in the middle and late stages of growth, most of the plants have covered the edge of the flower pot, but there are still a few plants that have not covered the edge of the flower pot, and the edge of the flower pot is better identified and located in the scene. Therefore, the flower pot is first identified and located in each second target 3D point cloud set, and then the flower pot positioning information is used to align with the point cloud data of the first day, that is, to align with the first second target 3D point cloud set.
[0057] Specifically, for each first target 3D point cloud set, by traversing all the point clouds therein, calculating the mean of all the point clouds on each coordinate axis (X-axis, Y-axis and Z-axis), and obtaining the centroid coordinates therein, the centroid of each first target 3D point cloud set is determined.
[0058] Furthermore, taking each centroid as a reference, each first target 3D point cloud set is updated to a standard position, that is, each first target 3D point cloud set is moved to a coordinate system with its corresponding centroid as the coordinate origin for standardization to obtain multiple standardized standard 3D point cloud sets.
[0059] It should be noted that performing a standard position update on each first target 3D point cloud set can reduce subsequent registration errors.
[0060] Further, the RGB value of each point cloud in the first standard 3D point cloud set is extracted, and the red, green, blue (Red, Green, Blue, RGB) value of each point cloud is compared with a preset threshold to obtain a comparison result, wherein the preset threshold is set according to the situation.
[0061] Further, according to the comparison result, the point cloud satisfying the RGB value greater than or equal to the preset threshold is determined as the flower pot edge point cloud.
[0062] It should be noted that the edge of the flower pot refers to the edge of the crop root system in the potting container. When the crops are planted in the potting container, their roots will grow in the container to form a root system. The edge of the flower pot refers to the outer edge of this root system, that is, close to the pot wall.
[0063] In one embodiment, the edge of the flowerpot is usually white, which can facilitate the distinction between the plant and the periphery and better locate its position. Therefore, the preset threshold can be set to 250.
[0064] Furthermore, based on the multiple flower pot edge point clouds, point cloud sets are divided according to the same flower pot to obtain multiple first flower pot edge point cloud sets in the first standard 3D point cloud value.
[0065] Furthermore, each remaining standard 3D point cloud set is segmented into flower pot edges to obtain multiple second flower pot edge point cloud sets in the remaining standard 3D point cloud sets, wherein the remaining standard 3D point cloud sets refer to the remaining standard 3D point cloud sets in the multiple standard 3D point cloud sets except the first standard 3D point cloud set.
[0066] In one embodiment, a region growing algorithm may be used to segment the target. The region growing algorithm is a method for image segmentation based on pixel similarity, which is based on a set of seed pixels and gradually merges adjacent pixels to aggregate pixels with similar properties into a region.
[0067] Further, the integrity of each second flowerpot edge point cloud set in each remaining standard 3D point cloud set is determined, and the integrity of each second flowerpot edge point cloud set in each remaining standard 3D point cloud set is compared to obtain an integrity comparison result.
[0068] Furthermore, based on the completeness comparison results, the top N point cloud sets with the highest degree of completeness are selected from the multiple second flower pot edge point cloud sets in each of the remaining standard 3D point cloud sets to obtain the third flower pot edge point cloud set in the multiple second flower pot edge point cloud sets in each of the remaining standard 3D point cloud sets, where N are set according to actual conditions.
[0069] Furthermore, for each remaining standard 3D point cloud, each third flower pot edge point cloud set in the remaining standard 3D point cloud set is matched among multiple first flower pot edge point cloud sets, and the first flower pot edge point cloud set matched with each third flower pot edge point cloud set is determined as the fourth flower pot edge point cloud set.
[0070] Furthermore, a plurality of fourth flower pot edge point cloud sets corresponding to each of the remaining standard 3D point cloud sets are segmented from the plurality of first flower pot edge point cloud sets.
[0071] Furthermore, based on the multiple fourth flower pot edge point cloud sets corresponding to each remaining standard 3D point cloud set, the multiple third flower pot edge point cloud sets of each remaining standard 3D point cloud set, and the multiple first flower pot edge point cloud sets of the first remaining standard 3D point cloud set, each remaining standard 3D point cloud set is point cloud aligned with the first standard 3D point cloud set to obtain multiple second target 3D point cloud sets that have completed the alignment.
[0072] The embodiment of the present invention calculates the center of mass and moves the point cloud to the coordinate axis with the center of mass as the coordinate origin to achieve a preliminary alignment, which can reduce subsequent registration errors. Flower pot features are further extracted based on the point cloud set after the updated position, and subsequent precise registration is achieved through the flower pot feature set, thereby achieving alignment of point cloud data through flower pot alignment, providing reliable and accurate point cloud data for subsequent phenotypic analysis.
[0073] Furthermore, based on the multiple fourth flower pot edge point cloud sets corresponding to each of the remaining standard 3D point cloud sets, the multiple third flower pot edge point cloud sets of each of the remaining standard 3D point cloud sets, the multiple remaining standard 3D point cloud sets and the multiple first flower pot edge point cloud sets, each of the remaining standard 3D point cloud sets is point cloud registered with the first standard 3D point cloud set to obtain multiple second target 3D point cloud sets that have been registered, the following steps are performed for each of the remaining standard 3D point cloud sets: based on the multiple fourth flower pot edge point cloud sets corresponding to the remaining standard 3D point cloud sets and the remaining standard Perform point cloud registration on multiple third flower pot edge point cloud sets of the 3D point cloud set to obtain multiple first registration results; merge the multiple first registration results to obtain a first merged result; perform point cloud registration on the first merged result and the multiple first flower pot edge point cloud sets to obtain a second registration result; merge the second registration result and the multiple first flower pot edge point cloud sets to obtain a second merged result; perform point cloud registration on the remaining standard 3D point cloud sets and the second merged result to obtain a second target 3D point cloud set in which the remaining standard 3D point cloud sets are registered.
[0074] It should be noted that the point cloud data of the following days are registered with the point cloud data of the first day one by one, that is, the other standard 3D point cloud sets are registered with the first standard 3D point cloud set one by one, so as to achieve the temporal point cloud registration. The principle of ICP registration is to first register each point p in the registration source source. s Apply the initial transformation matrix T0 to get p s '; Further search for the same s 'The nearest point p t , forming corresponding point pairs; further based on the established point pairs, using mathematical methods such as the least squares method to calculate the optimal transformation matrix T applied to the source; further using the calculated T to iteratively and cumulatively update the position of the source, if the predetermined convergence condition is reached, the iteration will stop; the final T obtained after the iterative process is used as the registration result from source to target. The embodiment of the present invention combines the principle of ICP registration to implement the method of temporal point cloud registration as follows.
[0075] Specifically, multiple fourth flower pot edge point cloud sets corresponding to the remaining current standard 3D point cloud sets are determined as registration targets, and multiple third flower pot edge point cloud sets of the remaining current standard 3D point cloud sets are determined as registration sources. Further, the registration source and the registration target are point cloud registered to obtain multiple first registration results.
[0076] Furthermore, multiple first registration results are merged to obtain a first merged result.
[0077] Further, a plurality of first flower pot edge point cloud sets are determined as registration targets, and the first merged result is determined as a registration source. Further, the registration source and the registration target are point cloud registered to obtain a second registration result.
[0078] Furthermore, the second registration result and the plurality of first flower pot edge point cloud sets are merged to obtain a second merged result.
[0079] Furthermore, the second merging result is determined as the registration target, and the remaining current standard 3D point cloud sets are determined as the registration source. Further, the registration source and the registration target are point cloud registered to obtain the second target 3D point cloud set that has completed the registration of the remaining current standard 3D point cloud sets.
[0080] It should be noted that after the registration is completed, all standard 3D point cloud sets are aligned in a unified coordinate system, and the positions of the flower pots in the scene are consistent.
[0081] The embodiment of the present invention performs multiple registrations through the flower pot feature set, and finally achieves accurate registration of each standard 3D point cloud set, and further accurate alignment of the point cloud data collected every day, thereby providing reliable and accurate point cloud data for subsequent phenotypic analysis.
[0082] Further, based on step 103, the segmentation of individual potted crops is performed based on each second target 3D point cloud set to obtain the individual 3D point cloud set of each individual potted crop in each second target 3D point cloud set, including: segmenting the first second target 3D point cloud set to individual potted crops to obtain the individual 3D point cloud set of each individual potted crop in the first second target 3D point cloud set; determining the individual 3D point cloud set of each individual potted crop in the first second target 3D point cloud set based on the individual 3D point cloud set of each individual potted crop in the first second target 3D point cloud set; a point cloud bounding box for each single potted crop in the second target 3D point cloud set; based on the point cloud bounding box for each single potted crop in the first second target 3D point cloud set, segmenting each remaining second target 3D point cloud set into single potted crops to obtain a single plant 3D point cloud set for each single potted crop in each remaining second target 3D point cloud set; the remaining second target 3D point cloud sets are the second target 3D point cloud sets remaining in the multiple second target 3D point cloud sets except the first second target 3D point cloud set.
[0083] It should be noted that, since the plants on the first day have not grown out of the pots, the relevant clustering method can be used directly to directly segment the individual potted crops.
[0084] Specifically, the first second target 3D point cloud set is segmented into individual potted crops to obtain an individual 3D point cloud set of each individual potted crop in the first second target 3D point cloud set.
[0085] In one embodiment, the segmentation of a single potted crop can be achieved using a region growing algorithm. When using the region growing algorithm for segmentation, in order to segment two close or overlapping flower pots (which may be caused by the early deployment of the flower pots), the threshold of the region growing algorithm is set to a larger value, in order to keep the flower pots intact during point cloud segmentation, and to maintain the integrity of the crown as much as possible after the leaves of the plant grow beyond the flower pots.
[0086] Furthermore, based on the single plant 3D point cloud set of each single potted crop in the first second target 3D point cloud set, a point cloud bounding box of each single potted crop in the first second target 3D point cloud set is calculated.
[0087] It should be noted that the point cloud bounding box refers to a bounding box that encloses the entire point cloud set with a minimum axis-aligned matrix box or cube. The point cloud bounding box is usually used to represent the overall range and shape of the point cloud set.
[0088] Furthermore, based on the point cloud bounding box of each individual potted crop in the first second target 3D point cloud set, each remaining second target 3D point cloud set is segmented into individual potted crops to obtain individual 3D point cloud sets of each individual potted crop in each remaining second target 3D point cloud set, wherein the remaining second target 3D point cloud sets are the second target 3D point cloud sets remaining in multiple second target 3D point cloud sets except the first second target 3D point cloud set.
[0089] The embodiment of the present invention takes into account the changes of plants as they grow over time and adopts different strategies to process the early and mid-to-late point cloud data. In the early stage, the mutual interference between plants is small and the spatial relationship between plants is relatively clear. Therefore, the early point cloud data is directly segmented into groups and individual plants through clustering. The shapes and positions of plants in the mid-to-late stages may change to a certain extent. Therefore, the mid-to-late point cloud data is segmented into groups and individual plants based on the point cloud bounding boxes calculated after the segmentation of the early data. The point cloud of the individual plant can be effectively extracted. The two processing strategies can improve the accuracy and stability of the segmentation.
[0090] Furthermore, based on the point cloud bounding box of each single potted crop in the first second target 3D point cloud set, each remaining second target 3D point cloud set is segmented into single potted crops to obtain the single 3D point cloud set of each single potted crop in each remaining second target 3D point cloud set, and the following steps are performed for each remaining second target 3D point cloud set: based on the X-axis coordinates and Y-axis coordinates of each vertex in each point cloud bounding box, the segmentation area of each single potted crop is divided; according to the segmentation area of each single potted crop, the remaining second target 3D point cloud sets are segmented into single potted crops to obtain the single 3D point cloud set of each single potted crop in the remaining second target 3D point cloud sets.
[0091] It should be noted that in order to segment the subsequent time series group point cloud into individual plants, the registration relationship and the characteristics of the unchanged position of the flower pot are used to segment the area divided by the X-axis coordinates and Y-axis coordinates of each fixed point of the point cloud bounding box of the individual potted crops after the first day of data segmentation. The segmentation process does not consider the Z-axis coordinate, because the plant heights of the plants are different, and only the plant point cloud within the X-axis and Y-axis range is segmented. This single plant segmentation method has a strong dependence on the position and registration process of the flower pot. If the flower pot is too large or the registration error is large during the data acquisition process, it will cause other plants to be segmented during the single plant segmentation process or the plant segmentation will be incomplete.
[0092] Specifically, the segmentation area of each single potted crop is divided based on the X-axis coordinates and Y-axis coordinates of each fixed point in the point cloud bounding box of each single potted crop.
[0093] Furthermore, according to the segmented area of each single potted crop, the current remaining second target 3D point cloud sets are segmented into single potted crops to obtain the single 3D point cloud sets of each single potted crop in the current remaining second target 3D point cloud sets.
[0094] The embodiment of the present invention takes into account the changes in the shape and position of the plants, utilizes the characteristics of the registration relationship and the unchanged position of the flower pot, uses the point cloud bounding box calculated after the previous data segmentation, and performs group-single-plant segmentation according to the segmentation area divided by the X-axis coordinates and Y-axis coordinates of each vertex of the point cloud bounding box, which can effectively extract the information of the single plant and improve the accuracy and stability of the segmentation.
[0095] Further, based on step 104, when plant segmentation is performed based on each single plant 3D point cloud set in each second target 3D point cloud set to obtain the plant 3D point cloud set of each plant in each second target 3D point cloud set, the following steps are performed for each single plant 3D point cloud set in each second target 3D point cloud set: the single plant 3D point cloud set in the second target 3D point cloud set is input into a plant segmentation model to obtain an initial 3D point cloud set of the plant in the second target 3D point cloud set output by the plant segmentation model; the plant segmentation model is obtained by model training based on single plant 3D point cloud set samples and label data corresponding to the single plant 3D point cloud set samples; outliers are removed from the initial 3D point cloud set of the plant to obtain the plant 3D point cloud set of the plant.
[0096] It should be noted that for each individual potted crop in each day’s data, since the point cloud of the plant and the point cloud of the pot are relatively easy to distinguish, they can be directly segmented using the model.
[0097] Specifically, the single plant 3D point cloud set of the current single potted crop in the current second target 3D point cloud set is input into the plant segmentation model to obtain the initial 3D point cloud set of the current plant in the current second target 3D point cloud set output by the plant segmentation model.
[0098] It should be noted that the initial model of the plant segmentation model can adopt a random forest model, which can be obtained by collecting single plant 3D point cloud samples and label data corresponding to the single plant 3D point cloud samples for model training, wherein the label data is the label of the segmented area contained in the plant in the single plant 3D point cloud sample. Before model training, the training set and the test set are normalized first, otherwise there will be more soil and flower pots in the segmented plants. By calculating the mean and standard deviation of each feature in the training set, subtracting the corresponding mean from each feature and dividing it by the standard deviation, the training set is normalized, and the mean and standard deviation calculated on the training set are used to transform the test set to ensure the consistency of data processing.
[0099] Furthermore, outliers are removed from the initial 3D point cloud set of the plant to obtain the 3D point cloud set of the plant.
[0100] It should be noted that there are individual discrete points or leaves of other plants that are not segmented cleanly in the segmented point cloud set. Therefore, the method for removing outliers from the initial 3D point cloud set can be: projecting the segmented initial 3D point cloud set onto a two-dimensional plane, and using the DBSCAN clustering algorithm to remove outliers outside the preset distance threshold of the field distance, wherein the preset distance threshold is set according to the actual situation, and further restoring the clustered point cloud set to the initial three-dimensional state to obtain the final segmented and clean plant 3D point cloud set.
[0101] The embodiment of the present invention can efficiently segment each plant from the point cloud data of the entire single plant through the trained plant segmentation model, thereby improving the efficiency and accuracy of plant segmentation.
[0102] Further, based on step 105, when performing temporal phenotypic analysis based on the plant 3D point cloud set of each plant in each second target 3D point cloud set to obtain the temporal phenotypic analysis result of each plant, the following steps are performed for each plant: based on the plant 3D point cloud set of the plant in each second target 3D point cloud set, determining a variety of phenotypic data of the plant in each second target 3D point cloud set; performing temporal phenotypic change analysis based on the variety of phenotypic data of the plant in each second target 3D point cloud set to obtain the temporal phenotypic analysis result of the plant.
[0103] It should be noted that the segmented 3D point cloud set of the plant will be sorted and named according to its row and column position in the scene and the collection date. Therefore, when performing temporal phenotypic analysis of the plant, it is entirely possible to accurately match the analysis results to the corresponding plant.
[0104] Specifically, based on the plant 3D point cloud set of the current plant in each second target 3D point cloud set, multiple phenotypic data of the current plant in each second target 3D point cloud set are determined, wherein the multiple phenotypic data include but are not limited to the plant height, crown width and convex hull volume of the plant.
[0105] It can also be understood that, based on the 3D point cloud set of the current plant segmented from the daily collected data, a variety of phenotypic data of the current plant segmented from the daily collected data is determined.
[0106] Furthermore, based on the multiple phenotypic data of the current plant in each second target 3D point cloud set, a time-series phenotypic change analysis is performed to obtain the time-series phenotypic analysis result of the current plant, thereby achieving the acquisition of the dynamic growth phenotype of the plant, wherein the time-series phenotypic analysis result includes but is not limited to the dynamic change curves of the plant height, crown width and convex hull volume.
[0107] It can also be understood that, for each phenotypic data of the current plant, the phenotypic data of this type calculated from the data collected every day is analyzed for phenotypic changes in chronological order, and finally the phenotypic change analysis results corresponding to each phenotypic data of the current plant are obtained, that is, the temporal phenotypic analysis results of the current plant.
[0108] The embodiments of the present invention can realize automatic monitoring of crop growth by automatically parsing time-series phenotypic data, comprehensively and accurately capture the growth and change process of plants, and provide strong support for smart agriculture, digital breeding, etc.
[0109] The crop three-dimensional phenotyping analysis device provided by the present invention is described below. The crop three-dimensional phenotyping analysis device described below and the crop three-dimensional phenotyping analysis method described above can be referenced to each other.
[0110] Reference Figure 2 , Figure 2 It is a schematic diagram of the structure of the crop three-dimensional phenotype analysis device provided by the present invention.
[0111] The crop three-dimensional phenotype analysis device comprises: The acquisition module 210 is used to acquire a plurality of first target 3D point cloud sets of a target area in the facility environment at preset day intervals; the target area includes a plurality of single potted crops.
[0112] The registration module 220 is used to perform point cloud registration based on the multiple first target 3D point cloud sets to obtain multiple second target 3D point cloud sets that have completed registration.
[0113] The first segmentation module 230 is used to perform single potted crop segmentation based on each second target 3D point cloud set to obtain a single potted crop 3D point cloud set of each single potted crop in each second target 3D point cloud set.
[0114] The second segmentation module 240 is used to perform plant segmentation based on each single plant 3D point cloud set in each second target 3D point cloud set to obtain a plant 3D point cloud set of each plant in each second target 3D point cloud set.
[0115] The temporal phenotype analysis module 250 is used to perform temporal phenotype analysis based on the plant 3D point cloud set of each plant in each second target 3D point cloud set to obtain a temporal phenotype analysis result for each plant.
[0116] Furthermore, the registration module 220 is also used for: Determine the centroid of each first target 3D point cloud set; Taking each centroid as a reference, each first target 3D point cloud set is updated to a standard position to obtain multiple standard 3D point cloud sets; extracting the RGB value of each point cloud in the first standard 3D point cloud set; Determine the point cloud in the first standard 3D point cloud set whose RGB value is greater than or equal to a preset threshold as the flower pot edge point cloud; Based on the plurality of flower pot edge point clouds, dividing the point cloud sets according to the same flower pot, to obtain a plurality of first flower pot edge point cloud sets in the first standard 3D point cloud set; Performing flowerpot edge segmentation on each of the remaining standard 3D point cloud sets to obtain a plurality of second flowerpot edge point cloud sets in each of the remaining standard 3D point cloud sets; the remaining standard 3D point cloud sets refer to the remaining standard 3D point cloud sets in the plurality of standard 3D point cloud sets except the first standard 3D point cloud set; According to the completeness of each second flower pot edge point cloud set in each remaining standard 3D point cloud set, determine the top N third flower pot edge point cloud sets with the highest degree of completeness in each remaining standard 3D point cloud set; A plurality of fourth flower pot edge point cloud sets corresponding to each of the remaining standard 3D point cloud sets are segmented from the plurality of first flower pot edge point cloud sets; any of the fourth flower pot edge point cloud sets is a first flower pot edge point cloud set matched by any third flower pot edge point cloud set in the remaining standard 3D point cloud sets; Based on the multiple fourth flower pot edge point cloud sets corresponding to each other standard 3D point cloud set, the multiple third flower pot edge point cloud sets of each other standard 3D point cloud set, the multiple other standard 3D point cloud sets and the multiple first flower pot edge point cloud sets, each other standard 3D point cloud set is point cloud aligned with the first standard 3D point cloud set to obtain multiple second target 3D point cloud sets that have completed the alignment.
[0117] Furthermore, the registration module 220 is also used for: Performing point cloud registration based on a plurality of fourth flower pot edge point cloud sets corresponding to the remaining standard 3D point cloud sets and a plurality of third flower pot edge point cloud sets of the remaining standard 3D point cloud sets to obtain a plurality of first registration results; Merging the multiple first registration results to obtain a first merged result; Performing point cloud registration on the first merging result and the plurality of first flower pot edge point cloud sets to obtain a second registration result; Merging the second registration result and the plurality of first flower pot edge point cloud sets to obtain a second merged result; Point cloud registration is performed on the remaining standard 3D point cloud sets and the second merging result to obtain a second target 3D point cloud set in which the remaining standard 3D point cloud sets are registered.
[0118] Furthermore, the first segmentation module 230 is further configured to: Segmenting the first second target 3D point cloud set into individual potted crops to obtain an individual 3D point cloud set of each individual potted crop in the first second target 3D point cloud set; Determine a point cloud bounding box of each single potted crop in the first second target 3D point cloud set based on the single plant 3D point cloud set of each single potted crop in the first second target 3D point cloud set; Based on the point cloud bounding box of each single potted crop in the first second target 3D point cloud set, each remaining second target 3D point cloud set is segmented into single potted crop to obtain a single plant 3D point cloud set of each single potted crop in each remaining second target 3D point cloud set; the remaining second target 3D point cloud sets are the second target 3D point cloud sets remaining in the multiple second target 3D point cloud sets except the first second target 3D point cloud set.
[0119] Furthermore, the first segmentation module 230 is further configured to: Based on the X-axis coordinates and Y-axis coordinates of each vertex in each point cloud bounding box, the segmentation area of each single potted crop is divided; according to the segmentation area of each single potted crop, the remaining second target 3D point cloud sets are segmented into single potted crops to obtain the single 3D point cloud sets of each single potted crop in the remaining second target 3D point cloud sets.
[0120] Furthermore, the second segmentation module 240 is further configured to: Inputting the single plant 3D point cloud set in the second target 3D point cloud set into a plant segmentation model to obtain an initial 3D point cloud set of the plant in the second target 3D point cloud set output by the plant segmentation model; the plant segmentation model is obtained by model training based on single plant 3D point cloud set samples and label data corresponding to the single plant 3D point cloud set samples; Outliers are removed from the initial 3D point cloud set of the plant to obtain the plant 3D point cloud set of the plant.
[0121] Furthermore, the time series table analysis module 250 is also used for: Determining a plurality of phenotypic data of the plant in each second target 3D point cloud set based on the plant 3D point cloud set of the plant in each second target 3D point cloud set; Based on the multiple phenotypic data of the plant in each second target 3D point cloud set, a temporal phenotypic change analysis is performed to obtain a temporal phenotypic analysis result of the plant.
[0122] Figure 3 is a schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 3As shown, the electronic device may include: a processor (processor) 310, a communication interface (Communications Interface) 320, a memory (memory) 330 and a communication bus 340, wherein the processor 310, the communication interface 320, and the memory 330 communicate with each other through the communication bus 340. The processor 310 can call the logic instructions in the memory 330 to execute the crop three-dimensional phenotyping method, which includes: obtaining multiple first target 3D point cloud sets of the target area in the facility environment at preset day intervals; the target area includes multiple single potted crops; performing point cloud registration based on the multiple first target 3D point cloud sets to obtain multiple second target 3D point cloud sets that have completed registration; performing single potted crop segmentation based on each second target 3D point cloud set to obtain a single plant 3D point cloud set of each single potted crop in each second target 3D point cloud set; performing plant segmentation based on each single plant 3D point cloud set in each second target 3D point cloud set to obtain a plant 3D point cloud set of each plant in each second target 3D point cloud set; performing temporal phenotyping analysis based on the plant 3D point cloud set of each plant in each second target 3D point cloud set to obtain a temporal phenotyping analysis result for each plant.
[0123] In addition, the logic instructions in the above-mentioned memory 330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0124] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the crop three-dimensional phenotyping analysis method provided by the above embodiments, the method including: obtaining multiple first target 3D point cloud sets of a target area in a facility environment at preset day intervals; the target area includes multiple single potted crops; performing point cloud registration based on the multiple first target 3D point cloud sets to obtain multiple second target 3D point cloud sets that have completed registration; performing single potted crop segmentation based on each second target 3D point cloud set to obtain a single plant 3D point cloud set of each single potted crop in each second target 3D point cloud set; performing plant segmentation based on each single plant 3D point cloud set in each second target 3D point cloud set to obtain a plant 3D point cloud set of each plant in each second target 3D point cloud set; performing temporal phenotyping analysis based on the plant 3D point cloud set of each plant in each second target 3D point cloud set to obtain a temporal phenotyping analysis result for each plant.
[0125] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented by a processor to execute the crop three-dimensional phenotyping analysis method provided by the above-mentioned embodiments when the computer program is executed, the method comprising: obtaining a plurality of first target 3D point cloud sets of a target area in a facility environment at preset day intervals; the target area includes a plurality of single potted crops; performing point cloud registration based on the plurality of first target 3D point cloud sets to obtain a plurality of second target 3D point cloud sets that have completed registration; performing single potted crop segmentation based on each second target 3D point cloud set to obtain a single plant 3D point cloud set of each single potted crop in each second target 3D point cloud set; performing plant segmentation based on each single plant 3D point cloud set in each second target 3D point cloud set to obtain a plant 3D point cloud set of each plant in each second target 3D point cloud set; performing temporal phenotyping analysis based on the plant 3D point cloud set of each plant in each second target 3D point cloud set to obtain a temporal phenotyping analysis result for each plant.
[0126] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment. Those of ordinary skill in the art may understand and implement the present invention without creative effort.
[0127] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0128] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for analyzing crop three-dimensional phenotyping, characterized in that: include: Acquire a plurality of first target 3D point cloud sets of a target area in the facility environment at preset day intervals; the target area includes a plurality of single potted crops; Performing point cloud registration based on the multiple first target 3D point cloud sets to obtain multiple second target 3D point cloud sets that have completed registration; Performing single potted crop segmentation based on each second target 3D point cloud set to obtain a single potted crop 3D point cloud set for each single potted crop in each second target 3D point cloud set; Performing plant segmentation based on each single plant 3D point cloud set in each second target 3D point cloud set to obtain a plant 3D point cloud set of each plant in each second target 3D point cloud set; Based on the plant 3D point cloud set of each plant in each second target 3D point cloud set, a temporal phenotype analysis is performed to obtain a temporal phenotype analysis result for each plant.
2. The method for three-dimensional phenotyping of crops according to claim 1, characterized in that: The step of performing point cloud registration based on the plurality of first target 3D point cloud sets to obtain a plurality of second target 3D point cloud sets that have been registered includes: Determine the centroid of each first target 3D point cloud set; Taking each centroid as a reference, each first target 3D point cloud set is updated to a standard position to obtain multiple standard 3D point cloud sets; extracting the RGB value of each point cloud in the first standard 3D point cloud set; Determine the point cloud in the first standard 3D point cloud set whose RGB value is greater than or equal to a preset threshold as the flower pot edge point cloud; Based on the plurality of flower pot edge point clouds, dividing the point cloud sets according to the same flower pot, to obtain a plurality of first flower pot edge point cloud sets in the first standard 3D point cloud set; Performing flowerpot edge segmentation on each of the remaining standard 3D point cloud sets to obtain a plurality of second flowerpot edge point cloud sets in each of the remaining standard 3D point cloud sets; the remaining standard 3D point cloud sets refer to the remaining standard 3D point cloud sets in the plurality of standard 3D point cloud sets except the first standard 3D point cloud set; According to the completeness of each second flower pot edge point cloud set in each remaining standard 3D point cloud set, determine the top N third flower pot edge point cloud sets with the highest degree of completeness in each remaining standard 3D point cloud set; A plurality of fourth flower pot edge point cloud sets corresponding to each of the remaining standard 3D point cloud sets are segmented from the plurality of first flower pot edge point cloud sets; any of the fourth flower pot edge point cloud sets is a first flower pot edge point cloud set matched by any third flower pot edge point cloud set in the remaining standard 3D point cloud sets; Based on the multiple fourth flower pot edge point cloud sets corresponding to each other standard 3D point cloud set, the multiple third flower pot edge point cloud sets of each other standard 3D point cloud set, the multiple other standard 3D point cloud sets and the multiple first flower pot edge point cloud sets, each other standard 3D point cloud set is point cloud aligned with the first standard 3D point cloud set to obtain multiple second target 3D point cloud sets that have completed the alignment.
3. The method for three-dimensional phenotyping of crops according to claim 2, characterized in that: Based on the multiple fourth flower pot edge point cloud sets corresponding to each other standard 3D point cloud set, the multiple third flower pot edge point cloud sets of each other standard 3D point cloud set, the multiple other standard 3D point cloud sets and the multiple first flower pot edge point cloud sets, each other standard 3D point cloud set is point cloud registered with the first standard 3D point cloud set to obtain multiple second target 3D point cloud sets that have been registered, the following steps are performed for each other standard 3D point cloud set: Performing point cloud registration based on a plurality of fourth flower pot edge point cloud sets corresponding to the remaining standard 3D point cloud sets and a plurality of third flower pot edge point cloud sets of the remaining standard 3D point cloud sets to obtain a plurality of first registration results; Merging the multiple first registration results to obtain a first merged result; Performing point cloud registration on the first merging result and the plurality of first flower pot edge point cloud sets to obtain a second registration result; Merging the second registration result and the plurality of first flower pot edge point cloud sets to obtain a second merged result; Point cloud registration is performed on the remaining standard 3D point cloud sets and the second merging result to obtain a second target 3D point cloud set in which the remaining standard 3D point cloud sets are registered.
4. The method for three-dimensional phenotyping of crops according to claim 1, characterized in that: The single potted crop segmentation is performed based on each second target 3D point cloud set to obtain a single potted crop 3D point cloud set of each single potted crop in each second target 3D point cloud set, including: Segmenting the first second target 3D point cloud set into individual potted crops to obtain an individual 3D point cloud set of each individual potted crop in the first second target 3D point cloud set; Determine a point cloud bounding box of each single potted crop in the first second target 3D point cloud set based on the single plant 3D point cloud set of each single potted crop in the first second target 3D point cloud set; Based on the point cloud bounding box of each single potted crop in the first second target 3D point cloud set, each remaining second target 3D point cloud set is segmented into single potted crop to obtain a single plant 3D point cloud set of each single potted crop in each remaining second target 3D point cloud set; the remaining second target 3D point cloud sets are the second target 3D point cloud sets remaining in the multiple second target 3D point cloud sets except the first second target 3D point cloud set.
5. The method for three-dimensional phenotyping of crops according to claim 4, characterized in that: Based on the point cloud bounding box of each single potted crop in the first second target 3D point cloud set, each remaining second target 3D point cloud set is segmented into single potted crops to obtain a single plant 3D point cloud set of each single potted crop in each remaining second target 3D point cloud set, and the following steps are performed for each remaining second target 3D point cloud set: Based on the X-axis coordinates and Y-axis coordinates of each vertex in each point cloud bounding box, the segmentation area of each single potted crop is divided; according to the segmentation area of each single potted crop, the remaining second target 3D point cloud sets are segmented into single potted crops to obtain the single 3D point cloud sets of each single potted crop in the remaining second target 3D point cloud sets.
6. The method for three-dimensional phenotyping of crops according to claim 1, characterized in that: When performing plant segmentation based on each single plant 3D point cloud set in each second target 3D point cloud set to obtain a plant 3D point cloud set of each plant in each second target 3D point cloud set, the following steps are performed for each single plant 3D point cloud set in each second target 3D point cloud set: Inputting the single plant 3D point cloud set in the second target 3D point cloud set into a plant segmentation model to obtain an initial 3D point cloud set of the plant in the second target 3D point cloud set output by the plant segmentation model; the plant segmentation model is obtained by model training based on single plant 3D point cloud set samples and label data corresponding to the single plant 3D point cloud set samples; Outliers are removed from the initial 3D point cloud set of the plant to obtain the plant 3D point cloud set of the plant.
7. The method for analyzing crop three-dimensional phenotyping according to any one of claims 1 to 6, characterized in that: When performing temporal phenotype analysis based on the plant 3D point cloud set of each plant in each second target 3D point cloud set to obtain the temporal phenotype analysis result of each plant, the following steps are performed for each plant: Determining a plurality of phenotypic data of the plant in each second target 3D point cloud set based on the plant 3D point cloud set of the plant in each second target 3D point cloud set; Based on the multiple phenotypic data of the plant in each second target 3D point cloud set, a temporal phenotypic change analysis is performed to obtain a temporal phenotypic analysis result of the plant.
8. A three-dimensional crop phenotyping device, characterized in that: include: An acquisition module is used to acquire a plurality of first target 3D point cloud sets of a target area in the facility environment at preset day intervals; the target area includes a plurality of single potted crops; A registration module, used for performing point cloud registration based on the multiple first target 3D point cloud sets to obtain multiple second target 3D point cloud sets that have completed registration; A first segmentation module is used to segment individual potted crops based on each second target 3D point cloud set to obtain an individual 3D point cloud set of each individual potted crop in each second target 3D point cloud set; A second segmentation module is used to perform plant segmentation based on each single plant 3D point cloud set in each second target 3D point cloud set to obtain a plant 3D point cloud set of each plant in each second target 3D point cloud set; The temporal phenotype analysis module is used to perform temporal phenotype analysis based on the plant 3D point cloud set of each plant in each second target 3D point cloud set to obtain the temporal phenotype analysis result of each plant.
9. A device, comprising an electronic device, the electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the crop three-dimensional phenotyping method according to any one of claims 1 to 7 are implemented.
10. A medium, comprising a non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the crop three-dimensional phenotyping method according to any one of claims 1 to 7 are implemented.
