A method for three-dimensional modeling of plants and related devices

By using object semantic segmentation and Gaussian meta-optimization of multi-view image sequences, the problem of insufficient reconstruction integrity in 3D plant modeling was solved, achieving high-precision 3D plant modeling and improving the reliability of agricultural decision-making and breeding research.

CN123181782APending Publication Date: 2026-11-27SHENZHEN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611601218.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-16
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing 3D plant modeling methods lack complete reconstruction in low-texture areas, leading to deviations in plant phenotypic parameter analysis and growth process simulation results, which affects the reliability of agricultural decision-making and breeding research.

Method used

By acquiring multi-view image sequences of the target plant scene, object semantic segmentation is performed to obtain an object mask. The semantic boundary confidence and object label are used for weighting to generate Gaussian units and optimize their attributes, ultimately generating a 3D model.

Benefits of technology

It improves the accuracy and integrity of 3D plant modeling, ensures the complete preservation of plant boundaries and detailed structures, and provides 3D models with high visual fidelity and semantic separability of objects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181782A_ABST
    Figure CN123181782A_ABST
Patent Text Reader

Abstract

The embodiment of the application discloses a kind of plant three-dimensional modeling method and related equipment, it is related to three-dimensional modeling technical field, the method obtains the multi-view image sequence of target plant scene, multi-view image sequence is carried out object semantic segmentation, obtains the object mask corresponding to each view, obtains the three-dimensional point cloud corresponding to multi-view image sequence according to the camera parameter of each view, obtains the two-dimensional projection coordinates of each three-dimensional point in object mask in three-dimensional point cloud, for each three-dimensional point, according to semantic boundary confidence and object label is weighted under each view, obtain object semantic label, determine multiple anchor points in the set of three-dimensional point, generate the Gaussian primitive corresponding to each anchor point based on the object semantic label of anchor point, and predict the primitive attribute of each Gaussian primitive, the primitive attribute of each Gaussian primitive is optimized based on object semantic label, generate the three-dimensional model of target plant scene by each Gaussian primitive after optimization, the accuracy of three-dimensional plant modeling is realized to promote.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of 3D modeling technology, specifically to a method for 3D modeling of plants and related equipment. Background Technology

[0002] 3D plant modeling refers to the digital reconstruction of a plant's morphology, structure, and growth status to create a 3D digital model of the plant. This technology is widely used in digital agriculture, 3D reality, plant phenotypic analysis, urban planning, ancient tree protection, and forestry management. For example, it can assist researchers in monitoring crop growth, simulating plant growth processes, and quantitatively analyzing crop phenotypic information.

[0003] Among related technologies, the motion-based multi-view stereo structure (SfM-MVS) method achieves 3D reconstruction through multi-view image feature matching. It has been successfully applied to the 3D reconstruction and phenotypic analysis of crops such as sugar beets and wheat. However, its processing flow is complex and the reconstruction integrity in low-texture areas is insufficient.

[0004] Inaccurate 3D plant modeling can lead to deviations in model-based analysis of plant phenotypic parameters, assessment of growth status, and simulation of growth processes, thereby affecting the reliability of subsequent agricultural decisions, breeding research, and yield prediction. Therefore, improving the accuracy and completeness of 3D plant modeling has become an urgent problem to be solved. Summary of the Invention

[0005] This application provides a method for three-dimensional plant modeling, which can improve the accuracy and completeness of three-dimensional plant modeling.

[0006] To address the aforementioned technical problems, this application provides the following technical solutions: A method for three-dimensional modeling of plants, comprising: A multi-view image sequence of the target plant scene is acquired, and object semantic segmentation is performed on the multi-view image sequence to obtain the object mask corresponding to each view. The three-dimensional point cloud corresponding to the multi-view image sequence is obtained based on the camera parameters of each viewpoint, and the two-dimensional projection coordinates of each three-dimensional point in the three-dimensional point cloud on the object mask are obtained. The two-dimensional projection coordinates include the corresponding semantic boundary confidence and object label. The semantic boundary confidence is used to characterize the distance between the two-dimensional projection coordinates in the object mask and the semantic boundary. For each of the three-dimensional points, the semantic boundary confidence and the object label are weighted according to each of the three viewpoints to obtain the object semantic label; Multiple anchor points are determined in the set of three-dimensional points. Based on the object semantic tags of the anchor points, Gaussian elements corresponding to each anchor point are generated, and the primitive attributes of each Gaussian element are predicted. Based on the object semantic tags, the primitive attributes of each Gaussian unit are optimized, and the optimized Gaussian units are used to generate a 3D model of the target plant scene.

[0007] A plant 3D modeling device, comprising: The image text acquisition module is used to acquire a multi-view image sequence of the target plant scene, perform object semantic segmentation on the multi-view image sequence, and obtain the object mask corresponding to each view. The projection module is used to obtain the three-dimensional point cloud corresponding to the multi-view image sequence according to the camera parameters of each viewpoint, and to obtain the two-dimensional projection coordinates of each three-dimensional point in the three-dimensional point cloud on the object mask. The two-dimensional projection coordinates include the corresponding semantic boundary confidence and object label. The semantic boundary confidence is used to characterize the distance between the pixel in the object mask and the semantic boundary. The semantic label determination module is used to obtain an object semantic label for each of the three-dimensional points by weighting the semantic boundary confidence and the object label under each of the viewpoints. A Gaussian meta-generation module is used to determine multiple anchor points in the set of three-dimensional points, generate Gaussian meta-elements corresponding to each anchor point based on the object semantic tags of the anchor points, and predict the primitive attributes of each Gaussian meta-element. The 3D model generation module is used to optimize the primitive attributes of each Gaussian unit based on the semantic tags of the object, and generate a 3D model of the target plant scene from the optimized Gaussian units.

[0008] A computer-readable storage medium storing a plurality of instructions adapted for loading by a processor to execute the above-described plant 3D modeling method.

[0009] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-described plant 3D modeling method.

[0010] A computer program product or computer program includes computer instructions stored in a storage medium. A processor of a computer device reads the computer instructions from the storage medium and executes the computer instructions to implement the above-described plant 3D modeling method.

[0011] In this embodiment, a multi-view image sequence of the target plant scene is first acquired. Object semantic segmentation is then performed based on the multi-view image sequence to obtain object masks corresponding to each viewpoint. Subsequently, a 3D point cloud corresponding to the multi-view image sequence is obtained based on the camera parameters of each viewpoint. The 2D projection coordinates of each 3D point in the 3D point cloud onto the object mask are then obtained. These 2D projection coordinates include the corresponding semantic boundary confidence and object label. Then, for each 3D point, a weighted sum is applied based on the semantic boundary confidence and object label at each viewpoint to obtain an object semantic label. Multiple anchor points are then determined from the set of 3D points. Based on the object semantic labels of the anchor points, Gaussian primitives corresponding to each anchor point are generated, and the primitive attributes of each Gaussian primitive are predicted. Finally, the primitive attributes of each Gaussian primitive are optimized based on the object semantic labels, and the optimized Gaussian primitives are used to generate a 3D model of the target plant scene. In the above process, since the two-dimensional projection coordinates include the corresponding semantic boundary confidence, and the semantic boundary confidence is used to characterize the distance between the two-dimensional projection coordinates in the object mask and the semantic boundary, when weighting each three-dimensional point, the object labels corresponding to the two-dimensional projection coordinates farther from the semantic boundary have higher weights, while the interference of the object labels corresponding to the two-dimensional projection coordinates closer to the semantic boundary on the weighting result is suppressed. This allows multiple object labels of each three-dimensional point in each viewpoint to be distinguished according to their reliability, thereby ensuring that the object semantic labels of the three-dimensional points maintain a consistent judgment result in each viewpoint. Since the anchor point is determined in three... In a set of points, each Gaussian primitive is generated based on the object semantic label of the anchor point. The object semantic label consistent across perspectives is then passed to each Gaussian primitive. When optimizing the primitive attributes of each Gaussian primitive based on the object semantic label, the optimization of the primitive attributes is constrained by the object semantic level, so that the spatial distribution of each Gaussian primitive is consistent with the object to which it belongs. As a result, in the 3D model of the target plant scene generated by the optimized Gaussian primitives, Gaussian primitives belonging to different objects can be accurately distinguished, and the boundaries and detailed structures of plants in the target plant scene are completely preserved, thereby improving the accuracy and completeness of 3D plant modeling.

[0012] Other features and advantages of this disclosure will be set forth in the following description and will be apparent in part from the description or may be learned by practicing the disclosure. The objectives and other advantages of this disclosure may be realized and obtained by means of the structures particularly pointed out in the description, claims and drawings. Attached Figure Description

[0013] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0014] Figure 1 This is a scene illustration of a plant 3D modeling method provided in an embodiment of this application; Figure 2 This is a flowchart illustrating a three-dimensional plant modeling method provided in an embodiment of this application; Figure 3a A schematic diagram illustrating object semantic segmentation and weighting based on geometric projection and semantic boundary confidence, provided for embodiments of this application; Figure 3b A schematic diagram illustrating the generation of Gaussian elements and the determination of phenotypic parameters provided in this application embodiment; Figure 4 A schematic diagram illustrating the object mask obtained from each viewpoint based on a visual fundamental model, as provided in this application embodiment; Figure 5 A schematic diagram illustrating the data flow for determining the semantic labels of three-dimensional points in an embodiment of this application; Figure 6 A schematic diagram of the framework for generating Gaussian elements provided in this application embodiment; Figure 7 This is a schematic diagram illustrating the determination of phenotypic parameters provided in an embodiment of this application; Figure 8 A schematic diagram comparing the object-level rendering effects of the method provided in the embodiments of this application and the comparative method in a real plant collection scene; Figure 9 This is a schematic diagram comparing the object-level rendering effects of the method provided in this embodiment and the comparative method in a synthetic plant scene; Figure 10 This is a schematic diagram of the processing results from different perspectives in a multi-view image sequence of a real plant scene provided in the embodiments of this application; Figure 11 This is a schematic diagram of the processing results from different perspectives in a multi-view image sequence of a synthetic plant scene provided in an embodiment of this application. Figure 12 A schematic diagram of plant mesh models for different plants provided in the embodiments of this application; Figure 13 A schematic diagram comparing the calculated and measured values ​​of phenotypic parameters provided in the embodiments of this application; Figure 14 A comparative schematic diagram of object semantic labels for 3D point clouds under different voting methods provided in the embodiments of this application; Figure 15 This is a schematic diagram of the structure of a plant three-dimensional modeling device provided in an embodiment of this application; Figure 16 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0015] To enable those skilled in the art to better understand the solutions of this application, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0016] It should be noted that while some processes described in the specification, claims, and accompanying drawings contain multiple steps that appear in a specific order, it should be clearly understood that these steps may not be performed in the order they appear herein, or may be performed in parallel. The step numbers are merely used to distinguish different steps and do not represent any particular order of execution. Furthermore, descriptions such as "first," "second," or "objective" in this document are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0017] Recent breakthroughs in 3D Gaussian Splatting (3DGS) have triggered a paradigm shift in the field of 3D reconstruction. Currently, 3DGS research and applications primarily focus on built environment and large-scale scene reconstruction, while its potential in acquiring 3D plant structures remains to be fully evaluated. Therefore, 3DGS has significant potential to overcome the limitations of traditional methods and is expected to drive the development of 3D plant reconstruction and phenotypic analysis towards high throughput and high accuracy. However, 3D plant scenes generated by 3DGS and similar technologies not only contain the target plants but also inevitably include complex background elements (such as soil and supporting structures), making subsequent point cloud segmentation time-consuming and labor-intensive. To obtain object-level plant models, scene understanding and reconstruction within the plant scene are crucial, and extracting semantic masks (such as those for plants) from multi-view image sequences has become a common solution. Although pre-trained visual models on current large-scale multimodal datasets perform well in general computer vision tasks, their potential for cross-scene plant mask segmentation has not been fully explored and requires further validation. Most existing methods are limited to specific plant types and have not yet formed a unified object-level modeling framework that can adapt to different plant morphologies, acquisition devices, and complex backgrounds. How to reliably separate target plants from general multi-view RGB images, consistently elevate cross-view 2D semantics to 3D space, and simultaneously obtain plant models with high visual fidelity, object semantic separability, and physical measurability remains an unsolved problem.

[0018] To address the aforementioned issues, this application provides a method for 3D modeling of plants. The method involves acquiring a multi-view image sequence of a target plant scene, performing object semantic segmentation based on the multi-view image sequence to obtain object masks corresponding to each viewpoint, obtaining 3D point clouds corresponding to the multi-view image sequence based on camera parameters of each viewpoint, and acquiring the 2D projection coordinates of each 3D point in the 3D point cloud onto the object mask. These 2D projection coordinates include the corresponding semantic boundary confidence and object label. Next, for each 3D point, a weighted average is calculated based on the semantic boundary confidence and object label across different viewpoints to obtain an object semantic label. Then, multiple anchor points are determined from the set of 3D points, and Gaussian primitives corresponding to each anchor point are generated based on the object semantic labels of the anchor points. The primitive attributes of each Gaussian primitive are predicted. Finally, the primitive attributes of each Gaussian primitive are optimized based on the object semantic labels, and the optimized Gaussian primitives are used to generate a 3D model of the target plant scene. This scheme identifies object masks corresponding to each viewpoint through semantic segmentation, enabling the differentiation of different object categories, including target plants, and providing a two-dimensional object basis for the separation of target plants. Since the two-dimensional projection coordinates include corresponding semantic boundary confidence, and the semantic boundary confidence characterizes the distance between the two-dimensional projection coordinates in the object mask and the semantic boundary, when weighting each 3D point, object labels corresponding to two-dimensional projection coordinates farther from the semantic boundary have higher weights. The interference of object labels corresponding to two-dimensional projection coordinates closer to the semantic boundary on the weighting result is suppressed. This allows multiple object labels for each 3D point to participate in the judgment according to their reliability across different viewpoints, ensuring consistency of the resulting object semantic labels across all viewpoints. This consistently elevates the two-dimensional semantics carried by the object masks from each viewpoint to the three-dimensional point cloud. In terms of space, since each Gaussian primitive is generated based on the object semantic label of the anchor point, and the primitive attributes of each Gaussian primitive are optimized based on the object semantic label, the object semantic label consistent across perspectives is transmitted from the 3D point to each Gaussian primitive through the anchor point, so that the spatial distribution and primitive attributes of each Gaussian primitive are consistent with the object to which it belongs. As a result, in the generated 3D model of the target plant scene, Gaussian primitives belonging to different objects can be accurately distinguished, the target plant can be reliably separated from the target plant scene containing background elements, and the boundary and detailed structure of the target plant are completely preserved. This achieves reliable separation and reconstruction of the target plant from multi-view image sequences, consistent elevation of cross-view 2D semantics to 3D space, and obtains a 3D model with both high visual fidelity and object semantic separability. At the same time, it provides an accurate object-level geometric basis for the physical measurability of the 3D model.

[0019] Please refer to the following specific embodiments for details.

[0020] Please see Figure 1 , Figure 1This is a scene illustration of a plant 3D modeling method provided in an embodiment of this application. The plant 3D modeling method of this application embodiment can be implemented in a plant 3D modeling device 100. Figure 1 In the illustrated scenario, the plant 3D modeling device 100 processes a multi-view image sequence of the acquired target plant scene to obtain a 3D model of the target plant scene. For example, a multi-view image sequence of the target plant scene can be acquired using an image acquisition device, and then sent to the plant 3D modeling device 100. Specifically, the plant 3D modeling device 100 can be a computer device with a storage unit and a microprocessor installed, or it can be integrated into a computer device with a storage unit and a microprocessor, possessing computing capabilities. The computer device can be a terminal or a server. In this embodiment, the computer device is described as a server.

[0021] based on Figure 1 The scene diagram shown below will be combined with... Figures 2-14 The plant three-dimensional modeling method provided in the embodiments of this application will be described in detail.

[0022] Please see Figure 2 , Figure 2 This is a flowchart illustrating a three-dimensional plant modeling method provided in an embodiment of this application. Figure 2 As shown, the method in this application embodiment may include the following steps S101~S105: S101, acquire a multi-view image sequence of the target plant scene, perform object semantic segmentation on the multi-view image sequence, and obtain the object mask corresponding to each view; S102, obtain the three-dimensional point cloud corresponding to the multi-view image sequence according to the camera parameters of each viewpoint, and obtain the two-dimensional projection coordinates of each three-dimensional point in the three-dimensional point cloud on the object mask respectively. The two-dimensional projection coordinates include the corresponding semantic boundary confidence and object label. The semantic boundary confidence is used to characterize the distance between the two-dimensional projection coordinates in the object mask and the semantic boundary. S103, For each of the three-dimensional points, the semantic boundary confidence and the object label are weighted according to each of the viewpoints to obtain the object semantic label; S104, determine multiple anchor points in the set of three-dimensional points, generate Gaussian elements corresponding to each anchor point based on the object semantic tags of the anchor points, and predict the primitive attributes of each Gaussian element. S105, based on the object semantic tags, optimize the primitive attributes of each Gaussian unit, and generate a three-dimensional model of the target plant scene from the optimized Gaussian units.

[0023] In step S101 of some embodiments, a multi-view image sequence of the target plant scene is acquired. This multi-view image sequence carries appearance information of the target plant scene from different perspectives. Then, semantic segmentation is used to determine the object category of each pixel in the image, obtaining object masks corresponding to each perspective. This provides a basis for subsequently upscaling the two-dimensional semantics to three-dimensional space. Here, the target plant scene refers to the physical scene containing the target plant to be modeled; the scene may also include other objects besides the target plant. The multi-view image sequence refers to a series of images obtained by acquiring images of the target plant scene from different perspectives. The object category refers to the category to which each object in the target plant scene belongs, which can be set according to modeling requirements.

[0024] In some possible implementations, object semantic segmentation can be performed directly on the multi-view image sequence of the target plant scene. A pre-trained segmentation model can be used to automatically identify different object regions in each view image of the multi-view image sequence, and corresponding object labels can be assigned to each object region according to the object category, thereby obtaining the object mask corresponding to each view.

[0025] In some other possible implementations, text prompts indicating the object categories in the target plant scene can be obtained. Based on the text prompts, object semantic segmentation can be performed on the images of each view in the multi-view image sequence. Only the object categories indicated in the text prompts can be identified to obtain an object mask. The object mask is marked with mask regions corresponding to different object categories.

[0026] In step S102 of some embodiments, it is understood that the object mask in the target plant scene is an important basis for elevating two-dimensional semantics to three-dimensional space. If the semantics of three-dimensional points are determined based solely on the object mask from a single viewpoint, the segmentation error in the object mask will be directly transmitted to the three-dimensional space. Therefore, by projecting the three-dimensional points in the three-dimensional point cloud onto the object masks corresponding to each viewpoint using camera parameters, a geometric correspondence between the three-dimensional points and the object masks of each viewpoint can be established. This allows each three-dimensional point to obtain its two-dimensional projection coordinates under multiple viewpoints, providing a geometric basis for subsequently integrating information from multiple viewpoints to determine the semantics of the three-dimensional points. Simultaneously, the two-dimensional projection coordinates include the corresponding semantic boundary confidence and object label. The semantic boundary confidence is used to characterize the distance between the two-dimensional projection coordinates and the semantic boundary, providing a quantitative basis for measuring the reliability of the object label under each viewpoint. The semantic boundary refers to the position where the object label of adjacent pixels in the object mask changes, and the distance refers to the distance between the two-dimensional projection coordinate and the semantic boundary closest to that two-dimensional projection coordinate. A larger distance indicates that the two-dimensional projection coordinate is farther from the semantic boundary.

[0027] Among them, camera parameters refer to the parameters used to describe the imaging geometry of images from various viewpoints during acquisition, which may include camera extrinsic and intrinsic parameters; 3D point cloud refers to a data set composed of multiple 3D points in 3D space; 3D point refers to a point in 3D space that constitutes the 3D point cloud; 2D projection coordinates refer to the pixel position in the object mask when a 3D point is projected onto the object mask; object label refers to the label indicating the object category to which a pixel or 3D point belongs.

[0028] In some possible implementations, sparse reconstruction can be performed on multi-view image sequences to determine the camera parameters of each view and obtain a 3D point cloud composed of multiple 3D points. For any 3D point in the 3D point cloud, the 3D point is projected onto the object mask corresponding to each view according to the camera parameters of each view, and the pixel position obtained by projection is determined as the 2D projection coordinates of the 3D point under each view. Then, the semantic boundary confidence corresponding to the 2D projection coordinates is determined according to the distance between the pixel in the object mask where the 2D projection coordinates are located and the semantic boundary, and the object label of the pixel in the object mask where the 2D projection coordinates are located is used as the object label corresponding to the 2D projection coordinates.

[0029] For example, a 3D point cloud is denoted as ,in This represents the number of 3D points in a 3D point cloud. For the first The coordinates of the nth 3D point. In the camera parameters, the nth... The camera extrinsics for each viewpoint include the rotation matrix. Translation vector Camera intrinsics include focal length and the main point For any three-dimensional point In its first The coordinates in the camera coordinate system for each viewpoint are:

[0030] in, , , Three-dimensional points In the The three coordinate components in the camera coordinate system of each viewpoint; furthermore, the three-dimensional point In the Two-dimensional projected coordinates from a single perspective for: .

[0031] In step S103 of some embodiments, for each 3D point, a weighted average is performed on the object semantic label from each viewpoint based on the semantic boundary confidence and the object label. The weighting refers to assigning corresponding weights to the object labels from each viewpoint based on the semantic boundary confidence, accumulating the object labels from each viewpoint according to the weights, and finally determining the label of the object category to which the 3D point belongs, i.e., the object semantic label, based on the weighted average result.

[0032] In some possible implementations, for each 3D point, the object labels corresponding to the 2D projected coordinates from each viewpoint can be weighted according to the corresponding semantic boundary confidence level to obtain a weighted score for each candidate object label. The candidate object label with the highest weighted score is then determined as the semantic label for that 3D point. In other possible implementations, if the candidate object label with the highest weighted score is a plant category, the determination can be further based on the proportion of the weighted results of the plant category object labels from each viewpoint in the total weighted results. If this proportion meets a preset condition, the semantic label for that 3D point is determined to be a plant category; otherwise, if the proportion does not meet the preset condition, the semantic label for that 3D point is determined to be a non-plant category.

[0033] In step S104 of some embodiments, determining multiple anchor points in the set of three-dimensional points and generating Gaussian primitives based on the anchor points is because the generation of Gaussian primitives can be constrained to the local range of the anchor points, avoiding the unconstrained distribution of Gaussian primitives in three-dimensional space. Furthermore, generating Gaussian primitives based on the object semantic tags of the anchor points allows the generated Gaussian primitives to carry object semantic tags and possess object semantic awareness capabilities, thereby predicting the primitive attributes of each Gaussian primitive. Here, anchor points refer to reference points set in three-dimensional space for generating Gaussian primitives, and anchor points carry object semantic tags; Gaussian primitives refer to the basic rendering units of a scene represented by a Gaussian distribution; primitive attributes refer to attributes used to describe the rendering characteristics of Gaussian primitives, exemplarily including position, opacity, color, scale, and rotation (which can be represented using quaternions).

[0034] In some possible implementations, the 3D points in the set of 3D points can be directly identified as anchor points, and the object semantic labels of the 3D points can be used as the object semantic labels carried by the anchor points. In other possible implementations, the 3D space containing the set of 3D points can be spatially divided into multiple spatial units. Anchor points are set in the spatial units containing 3D points, and the object semantic labels carried by the anchor points are determined based on the object semantic labels of the 3D points in the spatial units. After determining the anchor points, for any given anchor point, based on the relative positional relationship between the anchor point and the acquisition viewpoint and the feature information associated with the anchor point, multiple Gaussian elements corresponding to the anchor point and the primitive attributes of each Gaussian element are predicted and generated. The position of the Gaussian element can be obtained by offsetting the position of the anchor point within a local range of the anchor point, so that the position of the Gaussian element is constrained within the local range of the anchor point. The Gaussian elements can adopt a planar Gaussian distribution.

[0035] In step S105 of some embodiments, since only Gaussian primitives are generated without imposing constraints at the object semantic level, Gaussian primitives of different objects are easily mixed up in space. Therefore, optimizing the primitive attributes of each Gaussian primitive based on object semantic tags can make the spatial distribution and primitive attributes of each Gaussian primitive consistent with the object to which it belongs, thereby generating a three-dimensional model of the target plant scene with separable object semantics from the optimized Gaussian primitives.

[0036] In some possible implementations, the rendering results of Gaussian primitives are supervised at the object semantic level based on the object semantic labels carried by each Gaussian primitive, and at the geometric level based on the self-consistency relationships between different geometric quantities in the rendering results. Based on these two aspects of supervision, the primitive attributes of each Gaussian primitive are optimized, and a 3D model of the target plant scene is generated from the optimized Gaussian primitives. In other possible implementations, a joint loss can be constructed based on the difference between the rendered image and the real image, as well as the loss corresponding to the above supervision, and the primitive attributes of each Gaussian primitive are optimized based on the joint loss.

[0037] In this embodiment, object semantic labels are obtained by weighting the object labels under each viewpoint according to the semantic boundary confidence, so that the object semantic labels of each 3D point are consistent under each viewpoint, and the 2D semantics are consistently improved to the 3D space. Gaussian primitives are generated based on the object semantic labels of anchor points, and the primitive attributes of each Gaussian primitive are optimized based on the object semantic labels, so that the Gaussian primitives belonging to different objects in the generated 3D model can be accurately distinguished, and the boundary and detailed structure of the target plant are completely preserved, thereby improving the accuracy and completeness of 3D plant modeling.

[0038] In some embodiments, the step "for each of the three-dimensional points, weighting the semantic boundary confidence and the object label under each of the viewpoints to obtain the object semantic label" can be further refined and may include the following steps: S201, for each three-dimensional point in the three-dimensional point cloud, in each viewpoint, the viewpoint whose two-dimensional projection coordinates are within the image range of the corresponding viewpoint is determined as the effective observation viewpoint of the three-dimensional point; S202, based on the object labels of each effective observation perspective, determine the semantic observation labels of the three-dimensional points under each effective observation perspective, and based on the semantic boundary confidence of each effective observation perspective, determine the voting weight corresponding to each semantic observation label. S203, weighting is performed according to each semantic observation label and the corresponding voting weight to obtain the cumulative weighted score of each candidate semantic category, and the candidate semantic category with the highest cumulative weighted score is determined as the object semantic label of the three-dimensional point.

[0039] Specifically, this application provides a detailed process for determining the effective observation viewpoint, semantic observation labels and voting weights, and the final determination of object semantic labels. The aim is to use semantic boundary confidence to weighted votes on object labels from multiple viewpoints, reducing the impact of mask edges and uncertain regions on the final 3D semantic labels, thereby obtaining consistent and reliable object semantic labels across viewpoints.

[0040] To eliminate interference from invalid projections located behind the camera or beyond the image boundaries on semantic voting, for each 3D point in the 3D point cloud, the viewpoint whose 2D projection coordinates fall within the image range of the corresponding viewpoint is determined as the effective observation viewpoint of the 3D point. Here, the image range refers to the effective boundary region of the image corresponding to the viewpoint in the planar coordinate system; the effective observation viewpoint refers to the viewpoint where the 3D point's corresponding 2D projection coordinates fall within the image range and can provide effective observation information.

[0041] In some possible implementations, each 3D point in the 3D point cloud can be projected onto the imaging plane corresponding to each viewpoint based on the camera parameters of each viewpoint, obtaining the projected coordinates of each 3D point in each viewpoint. It is then determined whether the projected coordinates are within the image range of the corresponding viewpoint. If so, the corresponding viewpoint is taken as the effective observation viewpoint; otherwise, the corresponding viewpoint is excluded, thus obtaining the effective observation viewpoints of the 3D point in each viewpoint. In other possible implementations, the depth value of each 3D point in the 3D point cloud can be calculated in each viewpoint. When the depth value is greater than zero and the 2D projected coordinates of the 3D point are within the image range of the corresponding viewpoint, the corresponding viewpoint is determined as the effective observation viewpoint of the 3D point. For example, let the first... The width and height of the image from each viewpoint are respectively and When three-dimensional points In the Depth components in a camera coordinate system from each viewpoint When, it indicates a three-dimensional point Located behind the camera at this viewpoint, this viewpoint does not participate in the voting; when And the two-dimensional projected coordinates satisfy and At that time, the first Each perspective is determined as a three-dimensional point. An effective observation perspective for three-dimensional points. The set of effective observation perspectives is denoted as:

[0042] gather Determines the three-dimensional points From which perspectives can it be observed? Furthermore, what about three-dimensional points? From an effective observation perspective The semantic observation label below is denoted as That is, the first Object mask from a single perspective Medium 2D projected coordinates The object label of the current pixel.

[0043] Furthermore, based on the object labels of each effective observation viewpoint, semantic observation labels for 3D points under each effective observation viewpoint are determined, and voting weights corresponding to each semantic observation label are determined based on the semantic boundary confidence of each effective observation viewpoint. Here, a semantic observation label refers to an intermediate label extracted from the object mask of an effective observation viewpoint, used to represent the object category to which the 3D point belongs under that viewpoint; and a voting weight refers to a numerical value determined based on the semantic boundary confidence, used to measure the importance of the semantic observation label in the weighting process.

[0044] In some possible implementations, the two-dimensional projected coordinates of a 3D point under each effective observation viewpoint can be mapped onto the corresponding object mask, and the corresponding object label can be obtained as a semantic observation label. The semantic boundary confidence corresponding to the two-dimensional projected coordinates can be directly used as the voting weight, so that the projection position farther from the semantic boundary has a larger voting weight. In other possible implementations, the semantic boundary confidence corresponding to the two-dimensional projected coordinates of a 3D point under each effective observation viewpoint can be input into a preset weight mapping function, and the output value of the weight mapping function can be used as the voting weight. The object label of the two-dimensional projected coordinates in the corresponding object mask can be used as the semantic observation label.

[0045] Furthermore, based on each semantic observation label and its corresponding voting weight, a weighted cumulative score is obtained for each candidate semantic category. The candidate semantic category with the highest weighted cumulative score is determined as the object semantic label for the 3D point. Here, the candidate semantic category refers to the category involved in the semantic observation labels under each effective observation perspective that serves as a candidate object category for the 3D point; the weighted cumulative score refers to the total value obtained by summing the voting weights of the same candidate semantic category under each effective observation perspective.

[0046] In some possible implementations, for a 3D point, each candidate semantic category can be traversed, and the voting weights corresponding to the semantic observation labels belonging to the same candidate semantic category can be summed to obtain the cumulative weighted score of each candidate semantic category. The cumulative weighted scores of each candidate semantic category are then compared, and the candidate semantic category corresponding to the highest cumulative weighted score is determined as the object semantic label of the 3D point. In other possible implementations, each semantic observation label and its corresponding voting weight can be constructed into a probability distribution matrix. This probability distribution matrix is ​​then normalized, and the candidate semantic category with the highest normalized probability value is determined as the object semantic label of the 3D point.

[0047] For example, for candidate semantic categories 3D points Corresponding candidate semantic categories The cumulative weighted score is:

[0048] in, As an indicator function, when the semantic observation label Equal to candidate semantic category The time value is Otherwise, the value is ; For three-dimensional points The set consists of effective observation perspectives. Furthermore, the candidate semantic category with the highest cumulative weighted score is denoted as:

[0049] And As a three-dimensional point Candidate results for object semantic tags.

[0050] In this embodiment, by determining the effective observation view of the three-dimensional point, the interference of the invalid view is eliminated, and the voting weight corresponding to the semantic observation label under each effective observation view is determined based on the semantic boundary confidence. Then, the object semantic label is obtained by weighted voting, so that the stable region inside the object mask gets higher discourse power, and the unstable region near the semantic boundary gets lower discourse power. This effectively reduces the propagation and amplification of the two-dimensional segmentation error when it is raised to the three-dimensional space, and improves the accuracy and stability of the three-dimensional point semantic label.

[0051] In some embodiments, the above step of "weighting according to each semantic observation label and the corresponding voting weight to obtain the cumulative weighted score of each candidate semantic category, and determining the candidate semantic category with the highest cumulative weighted score as the object semantic label of the 3D point" can be further refined and may include the following steps: S301, the cumulative weighted score of each candidate semantic category is obtained by weighting according to each semantic observation label and the corresponding voting weight, and the weighted support ratio of the plant category is determined according to the voting weight corresponding to the semantic observation label of the plant category. S302, when the candidate semantic category with the highest cumulative weighted score is the plant category and the weighted support ratio is not less than a preset support ratio threshold, the object semantic label of the three-dimensional point is determined to be the plant category; S303, when the weighted support ratio is less than a preset support ratio threshold, the object semantic label of the three-dimensional point is determined to be a non-plant category.

[0052] Specifically, in multi-view observation, plants are prone to misclassification as plant categories due to boundary occlusion leading to incorrect voting by a few viewpoints. This embodiment further refines the process of determining the semantic label of the object, and introduces a weighted support ratio constraint for plant categories on the basis of cumulative weighted scores, so as to suppress isolated plant labels that are occasionally generated in the boundary area, and ensure that only points with sufficient multi-view weighted support will be assigned the plant category.

[0053] In one embodiment, a weighted average is calculated based on each semantic observation label and its corresponding voting weight to obtain the cumulative weighted score for each candidate semantic category. Then, based on the voting weight corresponding to the semantic observation label for the plant category, the weighted support ratio for the plant category is determined. The weighted support ratio refers to a numerical value used to measure the relative degree of weighted support received by the plant category across all valid observation perspectives. Specifically, it is the ratio of the sum of the voting weights corresponding to the semantic observation labels for the plant category to the sum of the voting weights corresponding to all semantic observation labels. The sum of voting weights refers to the total value of the accumulated voting weights corresponding to the same candidate semantic category across all valid observation perspectives.

[0054] In some possible implementations, the semantic observation labels of 3D points under each effective observation view can be traversed, and effective observation views with semantic observation labels belonging to the plant category can be selected. The voting weights corresponding to the semantic observation labels belonging to the plant category are accumulated to obtain the sum of the voting weights for the plant category. The voting weights corresponding to all semantic observation labels are accumulated to obtain the sum of the voting weights corresponding to all semantic observation labels. The sum of the voting weights for the plant category is divided by the sum of the voting weights corresponding to all semantic observation labels, and the result of the division is used as the weighted support ratio. At the same time, the cumulative weighted score of each candidate semantic category is obtained by weighting according to each semantic observation label and its corresponding voting weight.

[0055] Furthermore, it can be determined whether the candidate semantic category with the highest cumulative weighted score is the plant category. If the determination result is yes, the weighted support ratio is compared with a preset support ratio threshold. If the weighted support ratio is greater than or equal to the support ratio threshold, the object semantic label of the 3D point is determined to be the plant category. Here, the support ratio threshold refers to the minimum ratio value used to determine whether the plant category has sufficient viewpoint weighted support.

[0056] Furthermore, when the weighted support ratio is less than a preset support ratio threshold, the semantic label of the 3D point is determined to be a non-plant category, thereby excluding plant votes that may occur accidentally in the boundary area. Here, "non-plant category" refers to a label representing an object category other than the target plant's object category, such as soil or flowerpot.

[0057] For example, the object label for the plant category is The weighted support ratio for plant categories is:

[0058] in, This is the cumulative weighted score based on the voting weights for semantic observation labels belonging to the plant category. To prevent extremely small constants with a denominator of zero. Three-dimensional points. Object semantic tags Defined as:

[0059] That is when and At that time, the three-dimensional points The object's semantic label is determined to be a plant category; when and At that time, the three-dimensional points The object's semantic label was determined to be a non-plant category (e.g., background category). );when At that time, Determined as a three-dimensional point The semantic tags of objects. Among them, For example, a preset support ratio threshold. A value of 0.6 can be used, meaning that a 3D point will only be assigned an object semantic label for the plant category when the plant category receives at least 60% weighted support from each effective observation viewpoint, thereby suppressing isolated floating points caused by accidental plant voting near the semantic boundary.

[0060] In this embodiment, by introducing a weighted support ratio constraint for plant categories on the basis of cumulative weighted scores, three-dimensional points not only need to achieve the highest score in the cumulative weighted scores, but also need to reach a sufficient ratio threshold in multi-view weighted support in order to be identified as plant categories. This effectively suppresses isolated floating points caused by misclassification of a few views in unstable areas of plant boundaries, and improves the reliability and purity of semantic enhancement of three-dimensional point clouds.

[0061] In some embodiments, the above step of "determining the semantic observation label of the 3D point under each effective observation view based on the object label of each effective observation view, and determining the voting weight corresponding to each semantic observation label based on the semantic boundary confidence of each effective observation view" can be further refined and may include the following steps: S401, for the object mask corresponding to the three-dimensional point in any effective observation view, extract the semantic boundary based on the difference between the object labels of adjacent pixels, and calculate the distance of each pixel in the object mask to the nearest semantic boundary; S402, determine the semantic boundary confidence level corresponding to each pixel based on the distance of each pixel to the nearest semantic boundary; S403, the object label corresponding to the two-dimensional projection coordinates is determined as the semantic observation label of the three-dimensional point under each effective observation view, and the voting weight corresponding to each semantic observation label is determined according to the semantic boundary confidence corresponding to the two-dimensional projection coordinates.

[0062] Specifically, considering that the object mask is more reliable in the internal region of the object but is prone to segmentation errors near the semantic boundary, this embodiment refines the process of determining semantic observation labels and voting weights. The confidence of the semantic boundary is quantified by the distance from the pixel to the nearest semantic boundary, and then the voting weights are allocated based on the confidence of the semantic boundary to reduce the interference of unstable observations near the semantic boundary on the voting results.

[0063] In one embodiment, for an object mask corresponding to a 3D point at any effective viewing angle, semantic boundaries are extracted based on the differences between object labels of adjacent pixels, and the distance from each pixel in the object mask to the nearest semantic boundary is calculated. Here, adjacent pixels refer to pixels in the object mask that are spatially adjacent to each other; differences refer to the differences in category attributes of the object labels carried by adjacent pixels.

[0064] In some possible implementations, for an object mask corresponding to a 3D point at any effective viewing angle, the object labels of adjacent pixels in the object mask can be compared. If the difference between the object labels of adjacent pixels is not zero, a semantic boundary is determined to exist between them. In other possible implementations, for an object mask corresponding to a 3D point at any effective viewing angle, the gradient change between the object labels of adjacent pixels in the object mask can be calculated. The positions of adjacent pixels with gradient changes greater than a preset gradient threshold are determined as semantic boundaries. Subsequently, for each pixel in the object mask, its Euclidean distance, spatial distance, etc., to the nearest semantic boundary are calculated to obtain the distance from each pixel in the object mask to the nearest semantic boundary.

[0065] Furthermore, the semantic boundary confidence level for each pixel is determined based on the distance from each pixel to the nearest semantic boundary; the greater the distance from the pixel to the nearest semantic boundary, the higher the corresponding semantic boundary confidence level. In some possible implementations, a pre-defined monotonically increasing mapping function can be used to map the distance from each pixel to the nearest semantic boundary, and the mapping result is determined as the semantic boundary confidence level for each pixel, so that the greater the distance from the pixel to the nearest semantic boundary, the higher the corresponding semantic boundary confidence level.

[0066] Furthermore, the object labels corresponding to the two-dimensional projection coordinates are determined as the semantic observation labels of the three-dimensional points under each effective observation view, and the voting weights corresponding to each semantic observation label are determined based on the semantic boundary confidence corresponding to the two-dimensional projection coordinates.

[0067] In this embodiment, the confidence of semantic boundaries is quantified based on the distance from the pixel to the nearest semantic boundary, and the voting weight is determined according to the confidence of semantic boundaries. This results in stable observations inside the object mask receiving a larger voting weight, while unstable observations near the semantic boundary receive a smaller voting weight. This effectively reduces the impact of boundary regions with large segmentation errors on the determination of 3D point semantic labels and improves the robustness of multi-view voting.

[0068] In some embodiments, the above step of "determining multiple anchor points in the set of three-dimensional points, generating Gaussian elements corresponding to each anchor point based on the object semantic tags of the anchor points, and predicting the primitive attributes of each Gaussian element" can be further refined and may include the following steps: S501, in the set of three-dimensional points, anchor points carrying the object semantic tags are determined according to the positions of the three-dimensional points and the object semantic tags, and the corresponding object semantic tags and local context features are associated with each anchor point. S502, for any of the anchor points, determine the relative distance and relative direction between the anchor point and the camera, generate multiple Gaussian primitives corresponding to the anchor point based on the relative distance, the relative direction and the local context features of the anchor point, and predict the primitive attributes of each Gaussian primitive.

[0069] Specifically, this embodiment refines the determination of anchor points and the generation process of Gaussian primitives. By introducing local context features and using relative distance and relative direction to predict primitive attributes, the generated Gaussian primitives are constrained within the local range of the anchor points and have object semantic perception capabilities, thereby maintaining the continuity of the local structure of the plant.

[0070] In a set of 3D points, anchor points carrying object semantic labels are determined based on the positions of the 3D points and the object semantic labels. Each anchor point is then associated with a corresponding object semantic label and local contextual features. Here, position refers to the coordinate information of the 3D point in 3D space; local contextual features refer to learnable feature vectors bound to the anchor point, used to implicitly encode the local appearance and geometric information of the anchor point's neighborhood.

[0071] In some possible implementations, the 3D points can be clustered into clusters based on their positions within a set of 3D points. Within each cluster, a 3D point is selected as an anchor point, and the object semantic label of the 3D points within that cluster is used as the object semantic label carried by the anchor point. Each anchor point is then associated with its corresponding object semantic label and local context features. In other possible implementations, several points can be directly selected from the set of 3D points at preset spatial intervals as anchor points. The object semantic labels of the corresponding 3D points are used as the object semantic labels carried by the anchor points, and each anchor point is associated with its corresponding object semantic label and local context features.

[0072] Furthermore, for any anchor point, the relative distance between the anchor point and the current camera, and the relative direction between the anchor point and the camera are determined. Based on the relative distance, relative direction, and local contextual features of the anchor point, multiple Gaussian primitives corresponding to the anchor point are generated. Each generated Gaussian primitive carries the object semantic label of the anchor point, and the primitive attributes of each Gaussian primitive are predicted. The primitive attributes include position, opacity, color, scale, and quaternions. The position of each Gaussian primitive is constrained within the local range of the anchor point. Here, "camera" refers to the camera that acquires the current viewpoint image in a multi-view image sequence; "relative distance" refers to the spatial distance between the anchor point and the camera; "relative direction" refers to the viewing direction of the anchor point relative to the camera; "opacity" refers to the attribute that controls the degree of light occlusion by the Gaussian primitive; "color" refers to the color attribute presented by the Gaussian primitive during rendering; "scale" refers to the attribute that controls the spatial expansion range of the Gaussian primitive; "quaternion" refers to the parameter used to represent the spatial orientation of the Gaussian primitive; and "local range" refers to the finite spatial region centered on the anchor point.

[0073] In some possible implementations, for any anchor point, the spatial distance between the anchor point and the current camera can be calculated as the relative distance, and the direction vector from the current camera to the anchor point can be calculated as the relative direction. The relative distance, relative direction, and local context features of the anchor point are input into the attribute prediction network, which outputs the primitive attributes of multiple Gaussian elements corresponding to the anchor point. By superimposing the learnable offset with the position of the anchor point, the position of each Gaussian element is constrained to the local range of the anchor point, and the object semantic label of the anchor point is assigned to each Gaussian element.

[0074] For example, let the center of the camera at the current viewpoint be... The location of the anchor point is The relative distance and relative direction between the anchor point and the camera are as follows:

[0075] in, Let denote the 2-norm. For [the condition], [the condition] lies in [the condition]. Anchor points, generate There are 1 Gaussian element, and the position of each Gaussian element is:

[0076] in, The learnable offset is used to determine the relative positions of each Gaussian element generated at the same anchor point in the neighborhood of the anchor point. Anchor scaling factor associated with the anchor point, used to convert the normalized learnable offset into an actual displacement that matches the spatial scale of the local area where the anchor point is located; This represents element-wise multiplication. The design constrains the position of each Gaussian element to a local range within the anchor point, preventing unconstrained drift of Gaussian elements in three-dimensional space and thus maintaining the continuity of the plant's local structure. Furthermore, the attribute prediction network includes subnetworks for predicting opacity, color, scale, and quaternions, respectively. , , and For example, opacity The opacity of each Gaussian element is:

[0077] in, The local context features bound to the anchor point are initialized at the start of training and updated via backpropagation during optimization; the prediction methods for color, scale, and quaternions are similar to those for opacity, i.e., the local context features are respectively... Relative distance and relative direction Input subnetwork , and This yields the color, scale, and quaternion of each Gaussian element.

[0078] In this embodiment, by generating Gaussian primitives within the local area of ​​the anchor point, the free drift of Gaussian primitives in the global space is avoided. The primitive attributes are predicted by combining the local context features of the anchor point, making the expression of Gaussian primitives more consistent with the local structural features of the plant, thereby improving the geometric continuity and rendering fidelity of the 3D model.

[0079] In some embodiments, the step of "determining anchor points carrying the object semantic tags based on the positions of the three-dimensional points and the object semantic tags in the set of three-dimensional points, and associating the corresponding object semantic tags and local context features with each anchor point" can be further refined and may include the following steps: S601, the three-dimensional space containing the set of three-dimensional points is voxelized to obtain multiple voxel units; S602, An anchor point is set in a voxel unit containing the three-dimensional points in the set of three-dimensional points, and the position of the anchor point is the center position of the voxel unit or the centroid position of the three-dimensional point in the voxel unit. S603, determine the object semantic label carried by the anchor point based on the object semantic label of the three-dimensional point in the voxel unit, and associate the corresponding object semantic label and the local context feature for each anchor point.

[0080] Specifically, this embodiment further refines the method for determining anchor points. By voxelizing the three-dimensional space and setting anchor points in voxel units, the distribution of anchor points becomes more regular and uniform, while ensuring that anchor points can accurately inherit the object semantic labels and local context features of the three-dimensional points within the voxel unit.

[0081] To ensure that anchor points uniformly cover the 3D space and accurately represent the 3D point information of a local region, the 3D space containing the set of 3D points needs to be voxelized, resulting in multiple voxel units. In some possible implementations, the 3D space containing the set of 3D points can be uniformly divided according to a preset voxel resolution, resulting in multiple voxel units of the same size. In other possible implementations, the partitioning granularity can be adaptively adjusted based on the density distribution of the 3D points in the set, resulting in a non-uniform partition of the 3D space containing the set of 3D points, thus obtaining multiple voxel units of varying sizes.

[0082] Furthermore, anchor points are set within voxel units that comprise a set of three-dimensional points. The anchor point is located at either the center of the voxel unit or the centroid of the three-dimensional points within the voxel unit. Here, the center refers to the coordinates of the geometric center point of the voxel unit; the centroid refers to the position corresponding to the average coordinates of all three-dimensional points contained within the voxel unit.

[0083] Furthermore, based on the object semantic labels of the 3D points in the voxel unit, the object semantic labels carried by the anchor points are determined, and each anchor point is associated with a corresponding object semantic label and local context features. The local context features are used to encode the local appearance information and geometric information of the anchor point's neighborhood. Among them, the local appearance information refers to the visual performance features such as color and texture of the 3D points in the anchor point's neighborhood; the geometric information refers to the spatial distribution and structural shape features of the 3D points in the anchor point's neighborhood.

[0084] In some possible implementations, the object semantic labels of the three-dimensional points in the voxel unit can be counted, and the object semantic label that appears most frequently can be determined as the object semantic label carried by the anchor point by majority voting. The appearance and geometric features are extracted from the three-dimensional points in the voxel unit and associated with the anchor point as local context features, so that each anchor point is associated with the corresponding object semantic label and local context features.

[0085] In this embodiment, anchor points are determined by using voxelization, which enables the anchor points to be regularly distributed in three-dimensional space. By statistically analyzing or aggregating the information of three-dimensional points within the voxel unit, it is ensured that the anchor points can accurately carry object semantic labels and rich local contextual features, providing a reliable benchmark for the subsequent generation of Gaussian units.

[0086] In some embodiments, the step of "optimizing the primitive attributes of each Gaussian unit based on the object semantic tags, and generating a 3D model of the target plant scene from the optimized Gaussian units" can be further refined and may include the following steps: S701, during the optimization of the primitive attributes of each Gaussian primitive, the object semantics rendered according to the object semantic tags carried by each Gaussian primitive are constrained to be consistent with the corresponding object tags in the object mask, and the normals rendered by each Gaussian primitive are constrained to be consistent with the depth-induced normals determined by the rendered depth map according to the normals determined by the rendering depth. S702, Based on the optimized Gaussian elements, generate a three-dimensional model of the target plant scene.

[0087] Specifically, this embodiment adds semantic consistency constraints and geometric consistency constraints during the optimization process of Gaussian elements to simultaneously improve the object semantic separability and local geometric self-consistency of Gaussian elements, and reduce floating Gaussian elements and semantic aliasing caused by plant boundaries and occlusion areas.

[0088] To maintain the semantic separability of objects and enhance the geometric consistency of local surfaces in the rendering space, during the optimization of the primitive properties of each Gaussian element, it is necessary to constrain the object semantics rendered based on the object semantic labels carried by each Gaussian element to be consistent with the corresponding object labels in the object mask, and to constrain the normals rendered by each Gaussian element to be consistent with the depth-induced normals determined by the rendered depth map based on the rendering depth.

[0089] In some possible implementations, during the optimization of the primitive attributes of each Gaussian primitive, rendering can be performed based on the object semantic labels carried by each Gaussian primitive. Rendering refers to the process of projecting 3D Gaussian primitives onto a 2D image plane to generate an image, obtaining the rendered object semantics. Object semantics refers to the object category to which the corresponding pixel of the Gaussian primitive belongs in the rendered image. The object semantics are compared with the corresponding object labels in the object mask, and the two are constrained to be consistent. Simultaneously, rendering is performed based on the primitive attributes of each Gaussian primitive to obtain normals. Normals are direction vectors perpendicular to the plane where the Gaussian primitive is located. A rendered depth map is obtained based on the rendering depth, which refers to the depth value of the corresponding pixel of the Gaussian primitive during the rendering process. The 3D surface is inferred from the rendered depth map, and the depth-induced normals are obtained through neighborhood calculation, constraining the normals to be consistent with the depth-induced normals.

[0090] Furthermore, based on the optimized Gaussian elements, a 3D model of the target plant scene is generated. In some possible implementations, the optimized Gaussian elements can be directly used as the 3D model of the target plant scene, stored and represented in voxel or point cloud form. In other possible implementations, the optimized Gaussian elements can be meshed and extracted, and the extracted mesh model can be used as the 3D model of the target plant scene.

[0091] In this embodiment, by simultaneously introducing semantic consistency constraints and geometric consistency constraints during the optimization process of Gaussian primitives, not only are the Gaussian primitives of different objects semantically separable, but the local surfaces are also geometrically continuous and self-consistent. This effectively suppresses floating Gaussian and depth fragmentation phenomena, and improves the reconstruction quality and surface stability of the 3D model.

[0092] In some embodiments, the step of "constraining the object semantics rendered based on the object semantic tags carried by each Gaussian unit to be consistent with the corresponding object tags in the object mask" can be further refined and may include the following steps: S801, Render each of the Gaussian elements based on the camera parameters to obtain a rendered image, and determine the Gaussian elements that participate in rendering in the viewing direction corresponding to each pixel in the rendered image. S802, based on the effective opacity of each Gaussian element at the corresponding pixel and the cumulative transmittance corresponding to each Gaussian element, determine the mixing weight of each Gaussian element for the corresponding pixel. S803, the semantic label of the object carried by each Gaussian pixel is weighted according to the mixed weight to obtain the semantic probability of the corresponding pixel; S804, construct a semantic consistency loss based on the difference between the semantic probability of each pixel and the corresponding object label in the object mask, optimize the primitive attributes of each Gaussian primitive based on the semantic consistency loss, and constrain the semantics of the rendered object to be consistent with the corresponding object label in the object mask.

[0093] Specifically, this embodiment refines the specific construction process of semantic consistency constraints. The semantic probability of each pixel is obtained through rendering and compared with the object label in the object mask to construct the loss, thereby enabling the Gaussian meta-elements of different objects to maintain semantic separability in the rendering space during the optimization process.

[0094] To establish the correspondence between Gaussian primitives and image pixels for semantic supervision, each Gaussian primitive needs to be rendered based on camera parameters to obtain a rendered image. The Gaussian primitives participating in the rendering along the viewing direction corresponding to each pixel in the rendered image are then determined. Here, the viewing direction refers to the direction of the ray pointing from the camera center to the corresponding pixel in the rendered image, which is the direction of the line connecting the camera and the corresponding pixel according to the camera parameters. The rendered image refers to the image generated by projecting three-dimensional Gaussian primitives onto a two-dimensional image plane.

[0095] In some possible implementations, Gaussian primitives can be projected onto a 2D imaging plane based on camera parameters to generate a rendered image. For each pixel in the rendered image, a ray is emitted from the camera corresponding to the camera parameters and passes through the pixel. The Gaussian primitives traversed by the ray are identified as those participating in rendering along the viewing direction corresponding to the pixel. In other possible implementations, rasterization rendering can be performed on each Gaussian primitive based on camera parameters to obtain a rendered image. For each pixel in the rendered image, the Gaussian primitives covering the pixel are queried, and the Gaussian primitives covering the pixel are identified as those participating in rendering along the viewing direction corresponding to the pixel.

[0096] Furthermore, based on the effective opacity of each Gaussian primitive at the corresponding pixel and the cumulative transmittance of each Gaussian primitive, the blending weight of each Gaussian primitive to the corresponding pixel is determined. The cumulative transmittance is determined based on the opacity of other Gaussian primitives located along the viewing direction of the corresponding pixel and between the Gaussian primitive and the current camera. Effective opacity refers to the actual occlusion capability of the Gaussian primitive at the corresponding pixel; cumulative transmittance refers to the proportion of light remaining after passing through other Gaussian primitives before reaching the corresponding Gaussian primitive from the current camera along the viewing direction; and blending weight is a value used to measure the contribution of the corresponding Gaussian primitive to the final rendering result of the pixel.

[0097] In some possible implementations, for each pixel in the rendered image, the effective opacity of each Gaussian element at the corresponding pixel can be obtained, and the opacity of other Gaussian elements can be multiplied along the viewing direction from the current camera to the Gaussian element to obtain the cumulative transmittance. The effective opacity is then multiplied by the cumulative transmittance to obtain the mixing weight of the Gaussian element for the corresponding pixel.

[0098] For example, pixels in the rendered image The set of Gaussian elements participating in the rendering along the corresponding view direction is denoted as ,gather The Middle Gao Siyuan For pixels The mixed weights are:

[0099] in, For Gorsky Yuan In pixels Effective opacity at the location, For Gorsky Yuan The corresponding cumulative transmittance, the cumulative transmittance is based on the pixel. The corresponding line of sight, and located in the Gaussian unit The opacity of other Gaussian elements between the current camera and the camera is determined by cumulative multiplication.

[0100] Furthermore, the semantic labels carried by each Gaussian pixel are weighted according to the hybrid weights to obtain the semantic probability of the corresponding pixel. Here, semantic probability refers to the probability distribution of a pixel belonging to each object category. In some possible implementations, the semantic labels carried by each Gaussian pixel can be converted into one-hot encoded vectors. The one-hot encoded vectors are then multiplied by the corresponding hybrid weights and accumulated, with the accumulated result determining the semantic probability of the corresponding pixel.

[0101] For example, let's say the Gaussian element. The object semantic tags carried are Its corresponding one-hot encoding vector is Then the pixel The semantic probability vector is:

[0102] Correspondingly, candidate semantic categories In pixels The semantic probability at the location is:

[0103] in, For indicator functions, when Gaussian elements Carrying object semantic tags Equal to candidate semantic category The time value is Otherwise, the value is .

[0104] Furthermore, a semantic consistency loss is constructed based on the degree of inconsistency between the semantic probability of each pixel and the corresponding object label in the object mask in terms of category attribution. The semantic consistency loss is used as an optimization objective function to reduce the difference between semantic probability and object label. Based on the semantic consistency loss, the primitive attributes of each Gaussian unit are optimized to ensure that the semantics of the rendered object are consistent with the corresponding object label in the object mask.

[0105] For example, the semantic consistency loss is:

[0106] in, To effectively supervise the pixel set, To effectively monitor the number of pixels in a pixel set, pixels in the object mask The corresponding object tag, Candidate semantic categories In pixels Semantic probability at that location The total number of object categories, It is a logarithmic function. The loss function is used as an indicator function. This loss ensures that the Gaussian meta-levels corresponding to each object maintain semantic separability in the rendering space, thereby reducing semantic confusion between the target plant and the background, soil, and flowerpot.

[0107] In some possible implementations, the cross-entropy between the semantic probability of each pixel and the corresponding object label in the object mask can be calculated. The cross-entropy is used as the difference, and a semantic consistency loss is constructed based on the difference. The gradient descent method is used to optimize the primitive attributes of each Gaussian primitive based on the semantic consistency loss, thereby constraining the semantics of the rendered object to remain consistent with the corresponding object label in the object mask.

[0108] In this embodiment, semantic probabilities are obtained by weighting the semantic labels of objects using hybrid weights during the rendering process, and semantic consistency loss is constructed using the object labels in the object mask as supervision. This enables Gaussian elements to maintain the semantic separability of each object in the rendering space during optimization, reducing semantic confusion between plants and the background.

[0109] In some embodiments, the step of "constraining the normals rendered by each Gaussian primitive to be consistent with the depth-induced normals determined by the rendered depth map according to the rendering depth" can be further refined and may include the following steps: S901, Render each of the Gaussian elements based on the camera parameters, and obtain a pixel-level normal map according to the local plane orientation of each of the Gaussian elements; S902, weighted fusion is performed based on the intersection depth, effective opacity and cumulative transmittance of each Gaussian unit participating in rendering along the viewing direction corresponding to each pixel in the rendered image to obtain the rendering depth corresponding to each pixel. A depth map is formed by the rendering depth corresponding to each pixel, and each pixel and the corresponding rendering depth are back-projected to three-dimensional space according to the camera parameters to obtain a three-dimensional point map corresponding to the depth map pixel by pixel. S903, calculate the tangent vector based on the 3D points corresponding to adjacent pixels in the 3D point map, perform cross product and normalization on the tangent vector to obtain the depth-induced normal, and weight the depth-induced normal based on the cumulative opacity of the rendering. S904, construct a geometric consistency loss based on the consistency between the pixel-level normal map and the depth-induced normal, optimize the primitive attributes of each Gaussian primitive based on the geometric consistency loss, and constrain the normals rendered by each Gaussian primitive to be consistent with the normals determined according to the rendering depth.

[0110] Specifically, this embodiment refines the construction process of geometric consistency constraints. It infers depth-induced normals from the rendering depth and constrains them to be consistent with the normals rendered by the Gaussian meta-element itself, thereby achieving self-supervised geometric regularization.

[0111] In step S901 of some embodiments, each Gaussian primitive is rendered based on camera parameters, and a pixel-level normal map is obtained according to the local plane orientation of each Gaussian primitive. Here, the Gaussian primitive is a two-dimensional oriented planar Gaussian primitive. Specifically, each anchor point generates k primitives in its surrounding three-dimensional local neighborhood. Each primitive is a flat Gaussian disk: it has a three-dimensional position (located near the anchor point in three-dimensional space), but its Gaussian distribution unfolds only in a plane and has no thickness direction. The local plane orientation refers to the spatial normal direction of the plane containing the two-dimensional oriented planar Gaussian primitive, and the local plane orientation is determined according to the (rotated) quaternion of the Gaussian primitive. The pixel-level normal map refers to a two-dimensional image that records the surface normal direction at each pixel in the rendered image.

[0112] In some possible implementations, the quaternions of each Gaussian element can be normalized and converted into rotation matrices. Based on the rotation matrices, two tangential directions and one normal direction of the plane containing the two-dimensional oriented Gaussian element can be determined, and the normal direction can be determined as the local plane orientation of the Gaussian element. Then, when rendering each Gaussian element based on camera parameters, for each pixel in the rendered image, the Gaussian elements participating in the rendering are obtained along the viewing direction corresponding to the pixel. Based on the effective opacity and cumulative transmittance of each Gaussian element participating in the rendering, the local plane orientation of each Gaussian element participating in the rendering is weighted and mixed to obtain the surface normal direction at each pixel. The surface normal directions at each pixel constitute a pixel-level normal map.

[0113] For example, pixels in a pixel-level normal map The direction of the surface normal at that location is denoted as , From along pixel The local plane orientation of each Gaussian pixel involved in the rendering, according to the view direction, is determined by the relationship between each Gaussian pixel and the pixel. Mixed weights The Gaussian elements are obtained by weighted mixing; where the Gaussian elements are two-dimensional oriented plane Gaussian elements. The quaternions of each Gaussian element are normalized and converted into rotation matrices. The rotation matrices determine the two tangential directions and one normal direction of the plane in which the two-dimensional oriented plane Gaussian element is located. The normal direction is the local plane orientation of the Gaussian element.

[0114] In step S902 of some embodiments, the rendering depth corresponding to each pixel is obtained by weighted fusion based on the intersection depth, effective opacity, and cumulative transmittance of each Gaussian primitive involved in rendering along the viewing direction corresponding to each pixel in the rendered image. Here, the intersection depth refers to the depth at the intersection point between the viewing direction corresponding to the pixel and the Gaussian primitive involved in rendering, i.e., the distance from the intersection point to the camera; the rendering depth refers to the depth corresponding to the pixel obtained by weighted fusion of the intersection depths of the Gaussian primitives involved in rendering; and the depth map refers to a two-dimensional image recording the rendering depth corresponding to each pixel in the rendered image. Specifically, for any pixel in the rendered image, each Gaussian primitive involved in rendering along the viewing direction corresponding to that pixel can be determined, the depth at the intersection point of each Gaussian primitive and the viewing direction is determined as the intersection depth, and the intersection depths are weighted and fused according to the effective opacity and cumulative transmittance of each Gaussian primitive involved in rendering to obtain the rendering depth corresponding to that pixel; after forming a depth map from the rendering depths corresponding to each pixel, each pixel and its corresponding rendering depth are back-projected into three-dimensional space according to camera parameters to obtain a three-dimensional point map corresponding to each pixel of the depth map. Back projection refers to the process of converting the position of a pixel in an image and its corresponding rendering depth into a 3D point in 3D space based on camera parameters; a 3D point map refers to the set of 3D points corresponding to each pixel in the depth map.

[0115] For example, pixels The corresponding rendering depth is:

[0116] in, For Gorsky Yuan With pixels The depth of the intersection point at the intersection of the corresponding line-of-sight directions. For Gorsky Yuan For pixels The blending weights, i.e., the rendering depth, are obtained by weighting and fusing the intersection depths of all Gaussian pixels along the viewing direction corresponding to the same pixel according to their effective opacity and cumulative transmittance. Furthermore, the pixel is then weighted according to the camera intrinsic parameters in the camera parameters. and its rendering depth The back-projected points are transferred to the camera coordinate system, and combined with the camera extrinsic parameters in the camera parameters, the 3D points obtained by back-projection are transformed to the world coordinate system, thereby obtaining a 3D point map corresponding to the depth map pixel by pixel; this process is obtained entirely by the rendering results of each Gaussian primitive itself, without relying on external depth or normal ground truth values.

[0117] In step S903 of some embodiments, tangent vectors are calculated based on the 3D points corresponding to adjacent pixels in the 3D point map. These tangent vectors are then subjected to cross product and normalization to obtain the depth-induced normal. Here, the tangent vector refers to the vector determined by the positional difference between the 3D points corresponding to adjacent pixels, and may include horizontal and vertical tangent vectors. Normalization refers to adjusting the length of the vector to a unit length. The depth-induced normal refers to the surface normal direction at each pixel derived from the geometric relationships implicit in the 3D point map. Specifically, for any pixel in the rendered image, the 3D points corresponding to that pixel and its adjacent pixels in the 3D point map can be obtained. The horizontal and vertical tangent vectors are calculated based on the positional difference between the 3D points corresponding to adjacent pixels. The horizontal and vertical tangent vectors are then cross-producted, and the resulting vector is normalized to obtain the depth-induced normal at that pixel. Finally, the depth-induced normal at each pixel is weighted by visibility based on the cumulative rendering opacity. Among them, the cumulative rendering opacity refers to the opacity accumulated during the rendering process along the viewing direction corresponding to the pixel, which is used to characterize the visibility of the surface at the pixel; visibility weighting refers to the process of assigning corresponding weights to the depth-induced normals at each pixel according to the cumulative rendering opacity. The lower the cumulative rendering opacity of a pixel, the lower the weight of its depth-induced normal, thereby avoiding the interference of the depth-induced normals of transparent areas on the subsequent geometric consistency loss.

[0118] For example, let's denote the pixels calculated from the 3D point map. The depth-induced normal at that location is , pixels The cumulative opacity of the rendered area is The depth-induced normal after visibility weighting is:

[0119] in, This indicates that gradient operations are stopped, meaning that during backpropagation based on geometric consistency loss, the cumulative opacity in the rendering is not increased. Calculate the gradient. Pixels with lower cumulative opacity have smaller magnitudes of their depth-induced normals after visibility weighting, thus avoiding unstable constraints caused by transparent areas.

[0120] In step S904 of some embodiments, a geometric consistency loss is constructed based on the consistency between the pixel-level normal map and the depth-induced normal. The primitive properties of each Gaussian primitive are optimized based on this geometric consistency loss, constraining the normals rendered by each Gaussian primitive to maintain consistency with the normals determined based on the rendering depth. Here, consistency refers to the degree of similarity between the direction of the surface normal at each pixel in the pixel-level normal map and the direction of the depth-induced normal at the corresponding pixel; geometric consistency loss refers to the loss used to characterize the consistency between the pixel-level normal map and the depth-induced normal. Higher consistency results in a smaller geometric consistency loss.

[0121] Specifically, for each pixel in the rendered image, the directional difference between the surface normal direction and the depth-induced normal at that pixel in the pixel-level normal map can be determined. A geometric consistency loss is constructed based on the directional differences corresponding to each pixel. Furthermore, the primitive properties of each Gaussian primitive are optimized with the goal of reducing the geometric consistency loss, ensuring that the normals rendered by each Gaussian primitive are consistent with the normals determined based on the rendering depth. It is understood that if the local plane orientation of each Gaussian primitive is consistent with the local surface implied by its rendering depth, then the pixel-level normal map and the depth-induced normal should be similar in direction. The aforementioned geometric consistency loss is constructed from the rendering results obtained by rendering each Gaussian primitive, without relying on external normal ground truth values; therefore, it is a self-supervised geometric constraint. Optimizing the primitive properties of each Gaussian primitive through this constraint can reduce Gaussian primitives floating outside the object surface, as well as problems such as fragmented rendering depth and unstable local surface orientations, making the local geometry of the generated 3D model more accurate.

[0122] For example, the geometric consistency loss is:

[0123] in, An effective area mask used to indicate pixels. Whether it belongs to the valid region participating in geometric constraints; Represents the dot product of vectors; To effectively supervise the pixel set, To effectively monitor the number of pixels in a pixel set, when pixels in the pixel-level normal map... Surface normal direction With visibility-weighted depth-induced normal The closer the directions are, the larger the vector dot product and the smaller the loss of geometric consistency.

[0124] In this embodiment, a three-dimensional point map is obtained by rendering depth back projection and depth-induced normals are calculated. These normals are then constrained to be consistent with the pixel-level normal map obtained by Gaussian primitive rendering. This achieves self-supervised geometric regularization that does not depend on external truth values, effectively reducing floating Gaussians and depth fragmentation, and enhancing the geometric continuity of local surfaces.

[0125] In some embodiments, the step of "optimizing the primitive attributes of each Gaussian unit based on the object semantic tags, and generating a 3D model of the target plant scene from the optimized Gaussian units" can be further refined and may include the following steps: S1001, construct a pixel-level loss based on the pixel difference between the rendered image and the real image, and construct a structural similarity loss based on the structural similarity between the rendered image and the real image; the real image is an image in the multi-view image sequence that corresponds to the viewpoint of the rendered image; S1002, a volume regularization term is constructed based on the scale of each Gaussian element, the volume regularization term being used to limit the scale of the Gaussian element and reduce the overlap between adjacent Gaussian elements; S1003, construct a joint loss based on the pixel-level loss, the structural similarity loss, the volume regularization term, the semantic consistency loss, and the geometric consistency loss; S1004, the primitive attributes of each Gaussian element are optimized according to the joint loss, and the optimized Gaussian elements are used to generate a three-dimensional model of the target plant scene.

[0126] This embodiment further refines the optimization process of Gaussian elements by introducing pixel-level loss, structural similarity loss, volume regularization term, semantic consistency loss, and geometric consistency loss to construct a joint loss, thereby simultaneously improving the visual fidelity, object semantic separability, and local geometric self-consistency of Gaussian elements during the unified optimization process.

[0127] In step S1001 of some embodiments, a pixel-level loss is constructed based on the pixel difference between the rendered image and the real image, and a structural similarity loss is constructed based on the structural similarity between the rendered image and the real image. Specifically, the rendered image and the real image are compared pixel by pixel, the mean squared error between them is calculated as the pixel difference, and a pixel-level loss is constructed based on the pixel difference. At the same time, the structural similarity index between the rendered image and the real image is calculated, and the complement of the structural similarity index is used as the structural similarity loss. Here, the real image refers to the actual acquired image from the viewpoint corresponding to the rendered image in the multi-view image sequence.

[0128] In step S1002 of some embodiments, a volume regularization term is constructed based on the scale of each Gaussian cell. The volume regularization term is used to limit the scale of the Gaussian cells and reduce the overlap between adjacent Gaussian cells. Here, the volume regularization term refers to a penalty term used to constrain the volume size of the Gaussian cells.

[0129] In some possible implementations, the squares of the RGB color differences between the rendered image and the real image can be calculated pixel-by-pixel and averaged. This average value is used as the pixel difference, and a pixel-level loss is constructed based on the pixel difference. Simultaneously, a sliding window is used to calculate the local structure and brightness similarity on the rendered and real images, and the similarity results are converted into structural similarity loss. Furthermore, the volume approximation value of each Gaussian unit (GSU) is calculated based on its scale, and the sum of these approximations is used as a volume regularization term. This volume regularization term is used to limit the scale of the GSUs and reduce the overlap between adjacent GSUs. In other possible cases, the rendered image and the real image can be input into a pre-trained feature extraction network to extract deep features and calculate feature differences. These feature differences are used as pixel differences to construct a pixel-level loss. Simultaneously, edge structure information of the rendered and real images is extracted based on gradient operators, and the differences in edge structure information are compared to construct a structural similarity loss. A volume regularization term is constructed based on the difference between the scale of each GSU and a preset volume threshold. This volume regularization term is used to limit the scale of the GSUs and reduce the overlap between adjacent GSUs.

[0130] In step S1003 of some embodiments, a joint loss is constructed based on pixel-level loss, structural similarity loss, volume regularization term, semantic consistency loss, and geometric consistency loss. The joint loss refers to the total loss function used to comprehensively measure the optimization objective of Gaussian elements across multiple dimensions.

[0131] In some possible implementations, preset weight coefficients can be assigned to pixel-level loss, structural similarity loss, volume regularization term, semantic consistency loss and geometric consistency loss respectively, and the weighted sum of each loss is determined as the joint loss.

[0132] For example, the joint loss is:

[0133] in, For pixel-level loss, The two are structural similarity loss, which are used to constrain the pixel-level differences and structural similarities between the rendered image and the real image, respectively. This is a volume regularization term used to limit the scale of Gaussian elements and reduce overlap between adjacent Gaussian elements; This is a semantic consistency loss used to improve the semantic separability of objects; This is a geometric consistency loss used to enhance the geometric consistency of local surfaces; , , , These are the weight coefficients corresponding to structural similarity loss, volume regularization term, semantic consistency loss, and geometric consistency loss, respectively.

[0134] In step S1004 of some embodiments, the primitive properties of each Gaussian primitive are optimized according to the joint loss, and a 3D model of the target plant scene is generated from the optimized Gaussian primitives. For example, the gradient of the joint loss with respect to the primitive properties of each Gaussian primitive can be calculated, and the primitive properties of each Gaussian primitive can be updated along the reverse direction of the gradient using a gradient descent algorithm until the joint loss converges, thereby generating a 3D model of the target plant scene from the optimized Gaussian primitives.

[0135] In this embodiment, by introducing a multi-dimensional loss function to construct a joint loss, Gaussian elements are constrained in terms of visual appearance, semantic boundaries, and geometric structure, effectively improving the rendering fidelity and structural rationality of the 3D model.

[0136] In some embodiments, after the above step of "optimizing the primitive attributes of each Gaussian unit based on the object semantic tags, and generating a 3D model of the target plant scene from the optimized Gaussian units", the following steps may also be included: S1101, Based on the object semantic labels carried by each Gaussian unit, extract the Gaussian units with the object semantic labels of plant category from the three-dimensional model to obtain the Gaussian unit subset corresponding to the plant object, and perform mesh reconstruction based on the Gaussian unit subset corresponding to the plant object to obtain the plant mesh model. S1102, perform coordinate correction and physical scale restoration on the plant mesh model, and determine the phenotypic parameters of the plant object based on the restored plant mesh model.

[0137] Specifically, considering that the three-dimensional model based on Gaussian elements is usually in a relative scale space and cannot be directly used for real length measurement, this embodiment proposes an object mesh extraction and metric recovery pipeline. The mesh is reconstructed by extracting the Gaussian element subset corresponding to the plant object, and the reconstructed mesh model is subjected to coordinate correction and physical scale recovery to achieve accurate plant trait estimation.

[0138] Mesh reconstruction refers to the process of converting discrete Gaussian elements into a continuous mesh surface. In some possible implementations, this involves traversing each Gaussian element constituting the 3D model, comparing the object semantic labels carried by each Gaussian element with the plant category. If they match, the corresponding Gaussian elements are filtered into a subset of Gaussian elements corresponding to the plant object. The resulting mesh model is then reconstructed from this subset of Gaussian elements corresponding to the plant object. Examples of methods include the moving cube algorithm and Poisson surface reconstruction.

[0139] Furthermore, coordinate correction and physical scale restoration are performed on the plant mesh model, and phenotypic parameters of the plant objects are determined based on the restored plant mesh model. Here, phenotypic parameters refer to quantifiable indicators used to describe the external morphology and growth status of plants; coordinate correction refers to the process of aligning the model's coordinate system to the real-world coordinate system; and physical scale restoration refers to the process of converting the model in relative scale space into a true physical scale. After coordinate correction and physical scale restoration, a plant mesh model with true dimensions is obtained.

[0140] In some possible implementations, a pre-defined calibration object can be used to align the coordinates of the plant mesh model, transforming the coordinate system of the plant mesh model to the world coordinate system of the calibration object, thus achieving coordinate correction. The ratio of the virtual size of the calibration object in the plant mesh model to its actual physical size can then be calculated. Based on this ratio, the plant mesh model can be scaled to restore its physical scale. Data such as plant height and crown width can then be measured on the restored plant mesh model, and the measurement results can be used as phenotypic parameters of the plant object. In other possible scenarios, the plant mesh model can be imported into 3D modeling software, and coordinate correction can be achieved by manually selecting feature points and performing coordinate transformations. Measured scale data can then be imported to restore the physical scale, and feature dimensions can be extracted from the restored plant mesh model as phenotypic parameters of the plant object.

[0141] In this embodiment, the mesh model is reconstructed by extracting the Gaussian subset corresponding to the plant object, and coordinate correction and physical scale restoration are performed so that the model has a real physical scale and can be directly used to quantitatively calculate plant phenotypic parameters, realizing a complete link from three-dimensional reconstruction to phenotypic analysis.

[0142] In some embodiments, the above step of "performing coordinate correction and physical scale restoration on the plant mesh model, and determining the phenotypic parameters of the plant object based on the restored plant mesh model" can be further refined and may include the following steps: S1201, Based on the object semantic labels carried by each Gaussian element, extract the Gaussian elements with object semantic labels as the object category from the three-dimensional model to obtain the Gaussian element subset corresponding to the object, and perform mesh reconstruction based on the Gaussian element subset corresponding to the object to obtain the mesh model of the object. S1202, Determine the scaling factor based on the size of the calibration object mesh model and the actual measured size of the calibration object; S1203, perform coordinate correction and physical scale restoration on the plant mesh model according to the scaling factor to obtain the restored plant mesh model; S1204, determine the phenotypic parameters of the plant object based on the restored plant mesh model.

[0143] Specifically, this embodiment refines the process of coordinate correction and physical scale restoration. By introducing a calibration object for comparison and calculating the scaling factor, the true physical scale of the plant mesh model is accurately restored.

[0144] In step S1201 of some embodiments, each Gaussian primitive constituting the 3D model can be traversed, and the object semantic label carried by each Gaussian primitive can be compared with the labeled object category. Gaussian primitives carrying object semantic labels matching the labeled object category are extracted to form a subset of Gaussian primitives corresponding to the labeled object. Mesh reconstruction is then performed based on this subset to obtain the labeled object mesh model. For example, the subset of Gaussian primitives corresponding to the labeled object is processed into point clouds, and a surface reconstruction algorithm is used to generate the labeled object mesh model.

[0145] Among them, the calibrated object category refers to the category of the object used to provide a reference for the real physical scale; the Gaussian subset corresponding to the calibrated object refers to the set of Gaussian elements extracted from the 3D model whose semantic labels are the calibrated object categories; and the calibrated object mesh model refers to the mesh model reconstructed from the Gaussian subset corresponding to the calibrated object.

[0146] In step S1202 of some embodiments, two feature points can be selected in the calibration object mesh model, the Euclidean distance between the two feature points can be calculated as the size, the real distance between the corresponding feature points on the calibration object measured in advance can be obtained as the actual measured size, the ratio of the actual measured size to the size can be calculated, and the ratio can be determined as the scaling factor.

[0147] Furthermore, coordinate correction and physical scale restoration are performed on the plant mesh model based on the scaling factor to obtain the restored plant mesh model. In some possible implementations, the center of the calibrated object can be used as the origin, and the coordinates of each vertex in the plant mesh model can be scaled proportionally according to the scaling factor. The scaled coordinate system is then aligned with the real-world coordinate system, achieving coordinate correction and physical scale restoration. This processed model serves as the restored plant mesh model. In other possible cases, an affine transformation matrix can be constructed using the scaling factor. Applying this matrix to the plant mesh model and performing a global scaling and translation transformation yields the restored plant mesh model.

[0148] Furthermore, the phenotypic parameters of the plant objects are determined based on the restored plant mesh model. Regarding this step, in some possible implementations, the phenotypic parameters of the plant objects can be calculated by extracting the extreme differences of vertex coordinates on the restored plant mesh model. In other possible cases, an interactive segmentation tool can be used to select target regions on the restored plant mesh model, and the feature dimensions of the target regions can be used as the phenotypic parameters of the plant objects.

[0149] In this embodiment, by using a calibrated object to provide a real size reference, the scaling factor is accurately calculated by comparing the model with the actual size, and the model is restored as a whole accordingly, so that the plant grid model has real physical measurability and the accuracy of phenotypic parameter measurement is improved.

[0150] In some embodiments, the above step "determining the phenotypic parameters of the plant object based on the restored plant mesh model" can be further refined and may include the following steps: S1301, the maximum coordinate difference in the vertical direction of the restored plant mesh model is determined as the plant height in the phenotypic parameters of the plant object; S1302, Obtain the projection point set of the restored plant mesh model on the horizontal plane, and determine the smallest convex polygon containing all points in the projection point set as the convex hull of the projection point set; S1303, the distance between the two farthest vertices of the convex hull is determined as the maximum point-to-point distance; S1304, the maximum point-to-point distance is determined as the crown width in the phenotypic parameters of the plant object; the shortest path distance between the leaf base point and the leaf tip point on the leaf in the restored plant mesh model is determined as the leaf length in the phenotypic parameters of the plant object; S1305, the maximum lateral extension distance in the direction perpendicular to the leaf main axis in the restored plant mesh model is determined as the leaf width in the phenotypic parameters of the plant object.

[0151] Specifically, this embodiment refines the specific methods for determining phenotypic parameters, using different geometric calculation methods to determine plant height, crown width, leaf length, and leaf width, in order to achieve comprehensive phenotypic trait estimation.

[0152] In one embodiment, the maximum coordinate difference in the vertical direction of the restored plant mesh model is determined as the plant height in the phenotypic parameters of the plant object. Here, the vertical direction refers to the coordinate axis direction parallel to the direction of gravity. In some possible implementations, the vertical coordinates of all vertices in the restored plant mesh model can be extracted, the maximum and minimum values ​​of the vertical coordinates can be calculated, the difference between the maximum and minimum values ​​can be taken as the maximum coordinate difference, and this maximum coordinate difference can be determined as the plant height in the phenotypic parameters of the plant object.

[0153] Furthermore, after projecting the restored plant mesh model onto a horizontal plane to form a projection point set, the smallest convex polygon containing all points in the horizontal projection point set is determined as the convex hull of the horizontal projection point set. The distance between the two farthest vertices of the convex hull is determined as the maximum point-to-point distance, and the maximum point-to-point distance is determined as the crown width in the phenotypic parameters of the plant object. Here, the smallest convex polygon refers to the convex polygon with the smallest area containing all points in the projection point set; the convex hull refers to the region formed by the boundary of the smallest convex polygon; and the vertex refers to the corner point that constitutes the boundary of the convex hull.

[0154] Furthermore, leaves can be located in the restored plant mesh model, and the leaf base and leaf tip points on the leaves can be labeled. A shortest path algorithm is then used to search for the shortest path from the leaf base to the leaf tip on the leaf mesh surface. The length of this shortest path is taken as the shortest path distance, which is then used as the leaf length in the phenotypic parameters of the plant object. Here, the leaf base refers to the starting point where the leaf connects to the branch; the leaf tip refers to the end point of the leaf furthest from the branch; and the leaf length refers to the length of the leaf extending from the leaf base to the leaf tip.

[0155] Furthermore, the maximum lateral extension distance in the restored plant mesh model, perpendicular to the leaf principal axis, is determined as the leaf width in the phenotypic parameters of the plant object. Here, the leaf principal axis refers to the direction vector from the leaf base to the leaf tip; the maximum lateral extension distance refers to the maximum distance between corresponding points on both sides of the leaf edge, perpendicular to the leaf principal axis.

[0156] In some possible implementations, the leaf's principal axis direction can be determined, multiple transverse lines can be generated perpendicular to this direction, the distance between the two intersection points of each transverse line and the leaf edge can be calculated, and the maximum value among all the distances corresponding to the transverse lines can be taken as the maximum lateral expansion distance. This maximum lateral expansion distance is then used as the leaf width in the phenotypic parameters of the plant object. In other possible cases, the leaf's circumscribed rectangle can be constructed with the principal axis direction as its major axis, the length of the short side of the circumscribed rectangle perpendicular to the principal axis direction can be calculated, and this short side length can be used as the maximum lateral expansion distance. This maximum lateral expansion distance is then used as the leaf width in the phenotypic parameters of the plant object.

[0157] In this embodiment of the application, by using different geometric analysis methods to extract key parameters such as plant height, crown width, leaf length and leaf width from the restored plant grid model, a comprehensive and quantitatively measurable plant phenotypic analysis is achieved, providing reliable data for plant growth and breeding research.

[0158] In some embodiments, the above step of "acquiring a multi-view image sequence of the target plant scene and text prompts for indicating the object categories in the target plant scene, performing object semantic segmentation based on the multi-view image sequence and the text prompts, and obtaining object masks corresponding to each viewpoint" can be further refined and may include the following steps: S1401, acquire a multi-view image sequence of the target plant scene and a text prompt indicating the object category in the target plant scene; S1402, the multi-view image sequence and the text prompt are input into the visual base model, the image encoder based on the visual base model extracts the visual features of each view image in the multi-view image sequence, and the text encoder based on the visual base model maps the text prompt to the semantic embedding space to obtain semantic embedding features. S1403, Based on the visual features and the semantic embedding features, detect objects that match the object category in the text prompt in each viewpoint image, generate candidate regions for each object and assign the object label; S1404, propagate the candidate regions and object labels of each object in the multi-view image sequence, and obtain the object mask corresponding to each view based on the propagated candidate regions and object labels.

[0159] Specifically, this embodiment refines the implementation process of object semantic segmentation. Text prompts indicate the object categories within the target plant scene, enabling object masks corresponding to each viewpoint to distinguish between different object categories, including the target plant, thus providing a two-dimensional object basis for the separation of the target plant. Next, a visual base model is used to jointly process the multi-view image sequences and text prompts, and a detection and tracking mechanism is employed to propagate object information across multiple viewpoints to obtain a cross-viewpoint stable object mask.

[0160] In one embodiment, a multi-view image sequence of a target plant scene and text prompts indicating the object categories within the target plant scene are acquired. The multi-view image sequence and text prompts are input into a visual foundation model. An image encoder based on the visual foundation model extracts visual features from each viewpoint in the multi-view image sequence. A text encoder based on the visual foundation model maps the text prompts to a semantic embedding space, obtaining semantic embedding features. Here, the visual foundation model refers to a pre-trained neural network model capable of handling various visual tasks; the image encoder refers to a network module used to extract visual representations of images; visual features refer to the feature vectors representing the visual content in the extracted images; the text encoder refers to a network module used to map text information into feature vectors; and semantic embedding features refer to the vector representation of the text prompts in the semantic embedding space.

[0161] Furthermore, based on visual and semantic embedding features, objects matching the object categories in the text prompts are detected in images from various viewpoints. Candidate regions are generated for each object, and object labels are assigned. That is, only objects corresponding to the object categories in the text prompts are searched in the image. For example, if the object categories are soil, plants, and flower pots, then only candidate regions for these objects are searched.

[0162] In some cases, visual features and semantic embedding features can be concatenated and input into the detection head network. The detection head network outputs the bounding boxes of objects in each viewpoint image that match the object category in the text prompt as candidate regions, and assigns object labels to each object based on the predicted category of the bounding box.

[0163] Furthermore, candidate regions and object labels for each object are propagated in the multi-view image sequence. Based on the propagated candidate regions and object labels, object masks corresponding to each viewpoint are obtained. In some possible implementations, the candidate regions and object labels for each object in the first frame of the multi-view image sequence can be used as a reference. Correlation filtering or Siamese networks are used to track each object in subsequent viewpoint images. The tracked object positions are used as propagated candidate regions, and the reference object labels are used as propagated object labels. Masks are generated based on the propagated candidate regions and object labels to obtain object masks corresponding to each viewpoint.

[0164] For example, a multi-view image sequence is denoted as an image set. ,in The number of viewpoints in a multi-view image sequence. For the first Images from each viewpoint; the object mask corresponding to each viewpoint is denoted as . ,in For the first The object mask corresponding to each viewpoint Indicates the first Pixels in an object mask from a single perspective The corresponding object tag, The total number of object categories; uncategorized or invalid pixels are uniformly labeled as the background category. The object label for the plant category to which the target plant belongs is set to .

[0165] In this embodiment, visual features and semantic embedding features are extracted and detected by a visual base model, and candidate regions and object labels are propagated in multi-view image sequences, so that the object masks of each view can maintain cross-view consistency, thereby improving the stability and accuracy of the segmentation results.

[0166] In one embodiment, to facilitate understanding of the overall implementation process of the plant 3D modeling method of this application, this embodiment provides... Figures 3a to 7 The diagram shown is shown in the image.

[0167] Please see Figure 3a , Figure 3a This diagram illustrates object semantic segmentation and weighting based on geometric projection and semantic boundary confidence, as provided in the embodiments of this application.

[0168] Specifically, Figure 3a Part (a) illustrates the preprocessing of multi-view object masks based on a visual base model: a multi-view image sequence of the target plant scene is input into the visual base model, which can be SAM3 (Segment Anything Model); optionally, text prompts can also be input into the visual base model, which are used to indicate the object categories in the target plant scene, such as "plant", "flower pot", "cup", "soil", and "pavement"; the visual base model performs object semantic segmentation on the images of each view in the multi-view image sequence according to the text prompts, and obtains the object mask corresponding to each view (i.e., the corresponding multi-view object mask). Figure 3aPart (b) illustrates the multi-view voting process that takes into account geometric projection and semantic boundary confidence: For a 3D point in a 3D point cloud, the 3D point is projected onto an object mask of multiple views to obtain the 2D projection coordinates of the 3D point in each view (shown in the figure as multi-view 2D projection, for example, the 2D projection coordinates of the (i-1)th view and the ith view). (and the two-dimensional projection coordinates of the (i+1)th viewpoint); then, by combining the multi-view two-dimensional projection with the semantic boundary confidence, the semantic observation labels of the three-dimensional points under each effective observation viewpoint are obtained. and corresponding voting weights The figure shows the semantic observation labels corresponding to the first to the p-th perspectives in tabular form. to With voting weight to , where p is the number of effective observation viewpoints; then, according to the calculation method of cumulative weighted score shown in the figure, the voting weights corresponding to the semantic observation labels of the same candidate semantic category are accumulated to obtain the cumulative weighted score of each candidate semantic category (the cumulative weighted scores of the 1st to Kth candidate semantic categories are shown in the figure as bars), and the object semantic label of the 3D point is determined according to the cumulative weighted score, so as to obtain the 3D point cloud with each 3D point carrying the object semantic label (that is, the semantic point cloud shown in the figure).

[0169] Please see Figure 3b , Figure 3b This is a schematic diagram illustrating the generation of Gaussian elements and the determination of phenotypic parameters as provided in an embodiment of this application.

[0170] Specifically, Figure 3b Part (c) illustrates the hierarchical optimization process for Gaussian meta-generation: Anchors carry position, scale, attribute, local contextual features, object ID, and encoding; the Gaussian meta-generation around the anchors is a two-dimensional oriented planar Gaussian meta-generation (2D GS, i.e., two-dimensional Gaussian splash); for any anchor, based on the relative distance between the anchor and the camera... relative direction and the local context features of the anchor point The attribute prediction network predicts the anchor point corresponding to... The primitive attributes of Gaussian units are used to predict attributes. An attribute prediction network can be constructed using a multilayer perceptron (MLP). The attribute prediction network includes: subnetworks. Used to predict the opacity of each Gaussian element. (Transparency is indicated in the diagram); Subnetwork Used to predict the color of each Gaussian element. Subnetwork Used to predict the scale of each Gaussian element. Subnetwork Used to predict the quaternions of each Gaussian element. (Quaternions are used to represent the rotation of Gaussian elements, which are labeled as rotation in the figure); Object-level rendering can be achieved based on each Gaussian element, that is, different objects in the target plant scene are rendered separately according to the object semantic tags carried by the Gaussian elements. Figure 3b Part (d) illustrates the plant phenotypic analysis process of coordinate correction and physical scale restoration: coordinate correction and physical scale restoration are performed on the plant mesh model (i.e., the plant texture mesh model), and the phenotypic parameters of the plant model are calculated based on the restored plant mesh model. The phenotypic parameters include plant height, crown width, leaf length and leaf width; among them, the leaf length is determined based on the leaf base point and leaf tip point, and the leaf width is determined based on the corresponding points on both sides of the leaf edge (shown as leaf edge point 1 and leaf edge point 2 in the figure).

[0171] Please see Figure 4 , Figure 4 This is a schematic diagram illustrating the process of obtaining object masks for each viewpoint based on a visual fundamental model, as provided in this application embodiment. Specifically, it involves images from each viewpoint in a multi-view image sequence (the first viewpoint image is shown in the figure as a multi-view photograph). The second perspective image Image up to the nth perspective The input is a visual base model. An image encoder based on the visual base model extracts visual features from images at each viewpoint. Simultaneously, a text encoder based on the visual base model maps text cues to a semantic embedding space, obtaining semantic embedding features. Text cues can include terms like "tree," "soil," "flower pot," "cup," and "pavement," used to indicate object categories. Then, based on the visual and semantic embedding features, a detector from the visual base model detects objects matching the categories indicated by the text cues in images at each viewpoint, generating candidate regions and assigning object labels to each object. A tracker from the visual base model then propagates the candidate regions and object labels of each object across the multi-view image sequence (the feedback arrow from the tracker to the detector in the figure illustrates the propagation of object information between viewpoints). Based on the propagated candidate regions and object labels, object masks corresponding to each viewpoint are obtained (the object mask for the first viewpoint is shown in the figure). The object mask corresponding to the second viewpoint The object mask corresponding to the nth viewpoint ).

[0172] Please see Figure 5 , Figure 5 This is a schematic diagram illustrating the data flow for determining the semantic labels of 3D points in an embodiment of this application. Specifically, Figure 5 The data flow shown includes three parts: input, processing, and output. The input is a multi-view image sequence. ,in The number of viewpoints; perform 3D reconstruction (which can be sparse reconstruction) on the multi-view image sequence to obtain a 3D point cloud. And camera parameters from various perspectives, including This represents the number of 3D points in a 3D point cloud. For the first A 3D point, camera parameters include camera extrinsic and camera intrinsic parameters, camera extrinsic parameters include rotation matrix. Translation vector Camera intrinsics include focal length , and main point , The processing part involves multi-view voting that considers geometric projection and semantic boundary confidence, that is, the 3D points in the 3D point cloud... Projecting the 3D point onto the object mask at each viewpoint yields the 2D projected coordinates of the 3D point at each viewpoint (in the figure, multi-view coordinates are used). Figure 2 2D projection shows, for example, the two-dimensional projected coordinates of the (i-1)th viewpoint and the ith viewpoint. and the two-dimensional projection coordinates of the (i+1)th view), and multi-view Figure 2 By combining 3D projection with semantic boundary confidence, the semantic observation labels of 3D points are determined from each effective observation viewpoint. , to and the corresponding voting weights , to (The table in the figure shows the views from the 1st to the pth viewpoints.) The voting weights of each candidate semantic category are accumulated and weighted to obtain the accumulated weighted scores of each of the 1st to Kth candidate semantic categories (shown as bars in the figure). Based on this, the object semantic labels of the 3D points are determined. The output is a 3D point cloud with object semantic labels for each 3D point (shown as a semantic 3D point cloud in the figure). The object categories indicated by the object semantic labels include, for example, "tree" (plant, object label 1), "soil" (soil, object label 2), "flower pot" (flower pot, object label 3), "cup" (cup, object label 4), and "pavement" (pavement, object label 5), where the object label for the plant category is 1.

[0173] Please see Figure 6 , Figure 6 This is a schematic diagram of the framework for generating Gaussian elements provided in an embodiment of this application.

[0174] Specifically, the object-aware Gaussian representation is initialized using a 3D point cloud (shown as a semantic point cloud in the figure) where each 3D point carries an object semantic label. This yields an object-aware Gaussian representation: each anchor point carries position, scale, attribute, feature (corresponding to the anchor point's local contextual features), object ID (corresponding to the object semantic label), and encoding. The Gaussian representation is a 2D oriented plane Gaussian representation (labeled as 2D GS in the figure). For each anchor point... Generate the corresponding anchor point k Gaussian neurons (numbered 0, 1, 2 to k in the figure to represent the k Gaussian neurons generated around the anchor point; the Gaussian neurons are Gaussian neurons generated from the anchor point); the attribute prediction network composed of a multilayer perceptron (MLP) predicts the attribute based on the local contextual features of the anchor point. Relative distance between anchor point and camera and relative direction Predict the anchor point corresponding to The primitive properties of each Gaussian unit include transparency. ,color ,scale and quaternions During the optimization of the primitive attributes of each Gaussian primitive, constraints on geometric and semantic consistency are imposed. The figure illustrates these constraints in three aspects: depth, normals, and semantics. Depth corresponds to the rendered depth map, normals correspond to the consistency between the pixel-level normal map and the depth-induced normals, and semantics correspond to the consistency between the rendered object semantics and the corresponding object labels in the object mask. The optimized Gaussian primitives support object-level rendering, that is, rendering different objects in the target plant scene according to the object semantic labels. Furthermore, they support object-level mesh model reconstruction, that is, extracting a subset of Gaussian primitives corresponding to the object based on the object semantic labels carried by the Gaussian primitives to reconstruct the mesh and obtain the mesh model of the corresponding object. Figure 6 The text shows two forms: mesh and textured mesh, such as a mesh model of a plant and a mesh model of a cup, where the cup is used as a calibration object.

[0175] Please see Figure 7 , Figure 7 This is a schematic diagram illustrating the determination of phenotypic parameters provided in an embodiment of this application.

[0176] Specifically, Figure 7Part (a) illustrates the process of coordinate correction and scale correction: the original mesh model obtained from mesh reconstruction is first corrected by aligning the coordinate system of the original mesh model to the real-world coordinate system (a coordinate system consisting of the x-axis and z-axis), and then scale correction is performed according to the scaling factor to restore the physical scale and obtain the corrected mesh model; wherein, the scaling factor is determined according to the size of the mesh model of the calibrated object and the actual measured size of the calibrated object. Figure 7 Part (b) shows the process of determining plant height and crown width: based on the restored plant mesh model (i.e., the textured mesh model shown in the figure), the maximum coordinate difference of the plant mesh model in the vertical direction is determined as the plant height (i.e., tree height), and the maximum point-to-point distance of the convex hull of the projection point set of the plant mesh model on the horizontal plane is determined as the crown width. Figure 7 Part (c) shows the process of determining the blade length and blade width: the shortest path distance between the leaf base point and the leaf tip point on the blade is determined as the blade length; the maximum lateral extension distance in the direction perpendicular to the main axis of the blade is determined as the blade width, which can be determined by the distance between corresponding points on both sides of the blade edge (shown as leaf edge point 1 and leaf edge point 2 in the figure).

[0177] In this embodiment, through Figures 3a to 7 This paper fully illustrates the complete implementation process, from acquiring multi-view image sequences and text prompts, obtaining object masks corresponding to each viewpoint based on a visual base model, to obtaining object semantic labels for each 3D point through weighted averaging based on geometric projection and semantic boundary confidence, to generating Gaussian primitives based on anchor points and optimizing primitive attributes, to performing object-level rendering and mesh model reconstruction using the optimized Gaussian primitives, and finally determining phenotypic parameters through coordinate correction and physical scale recovery. It should be noted that the specific types of visual base models, the specific content of text prompts, the specific types and quantities of object categories, and the number of viewpoints shown in the figure are all illustrative and do not constitute a limitation on the scope of protection of this application.

[0178] To verify the effectiveness of the proposed 3D plant modeling method, a systematic evaluation was conducted on multi-category plant datasets, including both real-world plant scenes and synthetic plant scenes. Qualitative and quantitative comparisons were also performed with current leading object-level Gaussian modeling methods such as Object GS (Zhu et al., 2025) and Gaussian Grouping (Ye et al., 2024). The evaluation was conducted using real plant data (DataSet1). Figure 8 ) and Synthetic Plant DataSet2 ( Figure 9 The qualitative results show that the method of this application can achieve more stable object perception reconstruction under different plant categories. Figure 8 and Figure 9 This is a schematic diagram comparing the object-level rendering effects of the method provided in this embodiment and a comparative method. Figure 8 and Figure 9 In this document, the "Image" column represents the real image from a specific viewpoint in a multi-view image sequence; the "Mask" column represents the object mask corresponding to that viewpoint; the "Object GS" column represents the object-level rendering result of the comparison method ObjectGS (an object-aware Gaussian representation method); the "Gaussian Grouping" column represents the object-level rendering result of the comparison method Gaussian Grouping; and the "This Solution" column represents the object-level rendering result of the method provided in the embodiments of this application.

[0179] The real-world plant samples included unidentified species of the genus *Anthurium*, *Ficus elastica* 'Burgundy', *Ficus elastica* 'Tineke', unidentified species of the genus *Aglaonema*, unidentified species of the genus *Alocasia*, and *Ficus benghalensis* 'Audrey'. The synthetic plant samples included potted *Monstera*, *Epipremnum aureum*, *Musa acuminata*, *Phalaenopsis aphrodite*, and unidentified species of the family *Cactaceae*.

[0180] Depend on Figure 8 and Figure 9 As can be seen, the object-level rendering results of the comparison method have problems such as background residue and floating noise (as shown in the boxed area in the figure). However, the method provided in this application embodiment extracts the subset of Gaussian elements corresponding to plant objects based on the object semantic tags carried by Gaussian elements for object-level rendering. The rendered plant structure is more complete, the object boundaries are clearer, and the background noise is less. Moreover, it shows strong generalization ability in scenes with different plant categories.

[0181] Specifically, while Gaussian Grouping can separate plant objects from the background to some extent, it often introduces scattered Gaussian noise in the background region. This is mainly because its semantic optimization process during grouping still relies primarily on alpha mixing rendering of learnable Gaussian features, a strategy prone to introducing ambiguity when handling discrete object semantics. In contrast, ObjectGS enhances the representation of 3D objects through object-aware anchors and semantically independent encoding, effectively reducing erroneous semantic Gaussian assignments in large background regions. However, boundary adhesion and semantic confusion can still be observed near blurred transition regions, especially at vegetation-soil and vegetation-pot boundaries. In comparison, the method in this application achieves more complete plant structures, clearer object boundaries, and less background noise, demonstrating stronger generalization ability across different plant categories.

[0182] Furthermore, this application conducted a quantitative evaluation. First, it used Peak Signal-to-Noise Ratio (PSNR), Structural Similarity Index (SSIM), and Learned Perceptual Image Patch Similarity (LPIPS) as rendering evaluation metrics. The methods were compared across different datasets, specifically comparing the proposed method with state-of-the-art object-aware Gaussian representation (ObjectGS) and Gaussian Grouping. As shown in Table 1, experimental results demonstrate that the proposed method achieves higher rendering fidelity and perceptual consistency than current state-of-the-art methods in various plant scenes. Specifically, the average PSNR, SSIM, and LPIPS of our method are 27.51 dB, 0.8672, and 0.2031, respectively, showing advantages over ObjectGS (26.77 dB, 0.8446, 0.2190) and Gaussian Grouping (25.46 dB, 0.7985, 0.2356). Compared to ObjectGS, our method improves PSNR by 0.74 dB and SSIM by 0.0226, while reducing LPIPS by 0.0159; compared to Gaussian Grouping, PSNR and SSIM improve by 2.05 dB and 0.0687, respectively, while reducing LPIPS by 0.0325. Furthermore, in terms of computational efficiency, our method has an average execution time of 74.52 min, compared to 88.66 min for ObjectGS and 103.35 min for Gaussian Grouping.

[0183] Table 1 shows a quantitative comparison of the rendering quality of the proposed method and the comparative methods on real datasets and synthetic data.

[0184]

[0185] Please see Figure 10 and Figure 11 , Figure 10 and Figure 11 This is a schematic diagram illustrating the processing results of a multi-view image sequence from different perspectives provided in the embodiments of this application. Figure 10 The lines from (a1) to (a3), (b1) to (b3), and... Figure 11 Rows (c1) to (c3) and (d1) to (d3) correspond to four different target plant scenes. In each scene, the first row ((a1), (b1), (c1), and (d1) represents the real images from different perspectives in the multi-view image sequence. The figure shows six perspectives arranged in the acquisition order in the multi-view image sequence, with frames 0, 10, 20, 30, 40, and 50. The second row ((a2), (b2), (c2), and (d2) represents the object mask corresponding to each perspective. The third row ((a3), (b3), (c3), and (d3)) represents the rendered image obtained by extracting a subset of Gaussian elements with the semantic label of "plant" and then performing object-level rendering at each perspective. In addition to the target plant, the scenes also include objects such as cups and Rubik's Cubes, where the cups and Rubik's Cubes can be labeled objects. Figure 10 and Figure 11 As can be seen, the object masks of each view remain consistent across different viewpoints when the viewpoint changes continuously. Only the target plant is retained in the object-level rendering result. Soil, flower pots, cups, Rubik's Cubes and ground paving objects are all accurately separated, and the rendering results are stable under different viewpoints.

[0186] Please see Figure 12 , Figure 12 This is a schematic diagram of plant grid models of different plants provided in the embodiments of this application. Figure 12 Parts (a) to (f) show the mesh reconstruction results for six different plants, each including a textured plant mesh model, a non-textured plant mesh model, and a magnified view of a local leaf area (the magnified position is shown by the dotted line in the figure). Figure 12 As can be seen, the plant mesh model reconstructed by the method provided in this application has a complete structure. In the textured plant mesh model, the leaf veins, textures and edge details are clear, and in the untextured plant mesh model, the geometric structure of the leaves and branches is also intact. This shows that the method of this application achieves high-fidelity object-level mesh reconstruction in terms of both appearance texture and geometric structure.

[0187] Please see Figure 13 , Figure 13 This is a schematic diagram comparing the calculated and measured values ​​of the phenotypic parameters provided in the embodiments of this application. Figure 13 Parts (a) to (d) show the comparative results of four phenotypic parameters: plant height, crown width, leaf length, and leaf width. In each part, the horizontal axis represents manually measured values ​​(in centimeters), and the vertical axis represents calculated values ​​(in centimeters) based on the restored plant mesh model. Each data point in the figure corresponds to a plant sample (labeled "Dataset1" in the figure), and the straight line is the fitted line obtained by linearly fitting each data point. Figure 13 In part (a), the fitted result for plant height is y = 0.95x + 0.32, with a coefficient of determination R² = 0.91, root mean square error RMSE = 0.64 cm, and relative standard deviation RSD = 0.41 cm; in part (b), the fitted result for crown width is y = 1.05x 0.62, coefficient of determination R² = 0.95, root mean square error RMSE = 1.11 cm, relative standard deviation RSD = 1.05 cm; (c) the fitting result for leaf length is y = 0.90x + 1.18, coefficient of determination R² = 0.96, root mean square error RMSE = 0.54 cm, relative standard deviation RSD = 0.51 cm; (d) the fitting result for leaf width is y = 0.99x + 0.31, coefficient of determination R² = 0.94, root mean square error RMSE = 0.40 cm, relative standard deviation RSD = 0.33 cm. Figure 13 As can be seen, the coefficients of determination between the calculated and measured values ​​of the four phenotypic parameters are all no less than 0.91, which means that there is a strong correlation between the calculated and measured values. This indicates that the phenotypic parameters extracted from the restored plant grid model have a strong consistency with the real values ​​measured manually. The method provided in this application embodiment can support the estimation of measurable plant phenotypic traits.

[0188] Please see Figure 14 , Figure 14 This is a comparative schematic diagram of the semantic labels of objects in 3D point clouds under different voting methods provided in the embodiments of this application. Figure 14The comparison results are shown in the two sets of scenarios above. In each set: the "Reference" column contains reference information for the target plant scene, including the collected real images and the 3D point cloud obtained through sparse reconstruction; the "Our Voting" column contains the object semantic labels of the 3D point cloud obtained by weighting the semantic observation labels of each viewpoint based on semantic boundary confidence, as provided in the embodiments of this application; the "Corr-based Voting" and "Prob-based Voting" columns contain the object semantic labels of the 3D point cloud obtained by the two comparative voting methods; the details of the object semantic labels of local areas such as leaf edges and flower pots are shown in the figure with boxes and enlarged areas. Figure 14 It is evident that the two comparative voting methods produce a significant number of mislabeled 3D points in the resulting 3D point clouds, such as scattered 3D points in the magnified area that are mislabeled as other object categories. In contrast, the method provided in this application assigns voting weights to the semantic observation labels of each viewpoint based on semantic boundary confidence, and combines this with the weighted support ratio constraint of the plant category. This effectively suppresses mislabeling caused by unstable observations near the semantic boundary and isolated floating points, resulting in more accurate and pure object semantic labels for the obtained 3D point clouds.

[0189] In this embodiment, qualitative and quantitative analysis shows that the method provided in this application can obtain more complete plant structures, clearer object boundaries, and less background noise. It exhibits strong generalization ability in different plant categories, and the extracted phenotypic parameters have a strong consistency with the real values ​​measured manually.

[0190] The following will combine Figure 15 The plant 3D modeling device 1500 provided in this application embodiment will be described in detail. The plant 3D modeling device 1500 can be referred to in correspondence with the near-field localization method described above. Specifically, the plant 3D modeling device 1500 may include an image and text acquisition unit 1510, a projection unit 1520, a semantic tag determination unit 1530, a Gaussian meta-generator unit 1540, and a 3D model generation unit 1550, as detailed below: The image text acquisition unit 1510 is used to acquire a multi-view image sequence of the target plant scene, perform object semantic segmentation on the multi-view image sequence, and obtain the object mask corresponding to each view. The projection unit 1520 is used to obtain the three-dimensional point cloud corresponding to the multi-view image sequence according to the camera parameters of each viewpoint, and to obtain the two-dimensional projection coordinates of each three-dimensional point in the three-dimensional point cloud on the object mask. The two-dimensional projection coordinates include the corresponding semantic boundary confidence and object label. The semantic boundary confidence is used to characterize the distance between the pixel in the object mask and the semantic boundary. The semantic label determination unit 1530 is used to obtain an object semantic label for each of the three-dimensional points by weighting the semantic boundary confidence and the object label under each of the viewpoints. The Gaussian meta-generator unit 1540 is used to determine multiple anchor points in the set of three-dimensional points, generate Gaussian meta-generators corresponding to each anchor point based on the object semantic tags of the anchor points, and predict the primitive attributes of each Gaussian meta-generator. The 3D model generation unit 1550 is used to optimize the primitive attributes of each Gaussian unit based on the semantic tags of the object, and generate a 3D model of the target plant scene from the optimized Gaussian units.

[0191] Optionally, in some embodiments, the semantic tag determination unit 1530 may be used to: For each three-dimensional point in the three-dimensional point cloud, in each viewpoint, the viewpoint whose two-dimensional projection coordinates are within the image range of the corresponding viewpoint is determined as the effective observation viewpoint of the three-dimensional point; Based on the object labels of each effective observation perspective, determine the semantic observation labels of the three-dimensional points under each effective observation perspective, and determine the voting weights corresponding to each semantic observation label based on the semantic boundary confidence of each effective observation perspective. The cumulative weighted score of each candidate semantic category is obtained by weighting each semantic observation label and its corresponding voting weight, and the candidate semantic category with the highest cumulative weighted score is determined as the object semantic label of the three-dimensional point.

[0192] Optionally, in some embodiments, the semantic tag determination unit 1530 can also be used for: The cumulative weighted score of each candidate semantic category is obtained by weighting each semantic observation label and its corresponding voting weight, and the weighted support ratio of the plant category is determined according to the voting weight corresponding to the semantic observation label of the plant category. When the candidate semantic category with the highest cumulative weighted score is the plant category, and the weighted support ratio is not less than a preset support ratio threshold, the object semantic label of the three-dimensional point is determined to be the plant category; When the weighted support ratio is less than a preset support ratio threshold, the semantic label of the object of the three-dimensional point is determined to be a non-plant category.

[0193] Optionally, in some embodiments, the semantic tag determination unit 1530 can also be used for: For the object mask corresponding to the three-dimensional point in any effective viewing angle, the semantic boundary is extracted based on the difference between the object labels of adjacent pixels, and the distance from each pixel in the object mask to the nearest semantic boundary is calculated. The confidence level of the semantic boundary corresponding to each pixel is determined based on the distance of each pixel to the nearest semantic boundary. The object label corresponding to the two-dimensional projection coordinates is determined as the semantic observation label of the three-dimensional point under each effective observation view, and the voting weight corresponding to each semantic observation label is determined according to the semantic boundary confidence corresponding to the two-dimensional projection coordinates.

[0194] Optionally, in some embodiments, the Gaussian metagenerator 1540 can be used for: In the set of three-dimensional points, anchor points carrying the object semantic tags are determined based on the positions of the three-dimensional points and the object semantic tags, and each anchor point is associated with the corresponding object semantic tags and local context features. For any of the anchor points, the relative distance and relative direction between the anchor point and the camera are determined. Based on the relative distance, the relative direction, and the local context features of the anchor point, multiple Gaussian primitives corresponding to the anchor point are generated, and the primitive attributes of each Gaussian primitive are predicted. The position of each Gaussian primitive is constrained within the local range of the anchor point.

[0195] Optionally, in some embodiments, the Gaussian metagenerator 1540 can also be used for: The three-dimensional space containing the set of three-dimensional points is voxelized to obtain multiple voxel units; An anchor point is set in a voxel unit containing the three-dimensional points in the set. The anchor point is located at the center of the voxel unit or at the centroid of the three-dimensional point within the voxel unit. The object semantic label carried by the anchor point is determined based on the object semantic label of the three-dimensional point in the voxel unit, and the corresponding object semantic label and the local context feature are associated for each anchor point; the local context feature is used to encode the local appearance information and geometric information of the anchor point neighborhood.

[0196] Optionally, in some embodiments, the 3D model generation unit 1550 can be used for: During the optimization of the primitive attributes of each Gaussian primitive, the object semantics rendered according to the object semantic tags carried by each Gaussian primitive are constrained to be consistent with the corresponding object tags in the object mask, and the normals rendered by each Gaussian primitive are constrained to be consistent with the depth-induced normals determined by the rendered depth map according to the normals determined by the rendering depth. Based on the optimized Gaussian elements, a 3D model of the target plant scene is generated.

[0197] Optionally, in some embodiments, the 3D model generation unit 1550 can also be used for: Based on the camera parameters, each Gaussian pixel is rendered to obtain a rendered image, and the Gaussian pixels in the rendered image corresponding to each pixel in the viewing direction that participate in the rendering are determined; wherein, the viewing direction is the direction of the line connecting the camera and the corresponding pixel corresponding to the camera parameters; The mixing weight of each Gaussian element to the corresponding pixel is determined based on the effective opacity of each Gaussian element at the corresponding pixel and the cumulative transmittance corresponding to each Gaussian element; wherein the cumulative transmittance is determined based on the opacity of other Gaussian elements located along the viewing direction of the corresponding pixel and between the Gaussian element and the current camera. The semantic labels of the objects carried by each Gaussian unit are weighted according to the hybrid weight to obtain the semantic probability of the corresponding pixel; A semantic consistency loss is constructed based on the difference between the semantic probability of each pixel and the corresponding object label in the object mask. The primitive attributes of each Gaussian primitive are optimized based on the semantic consistency loss to ensure that the semantics of the rendered object are consistent with the corresponding object label in the object mask.

[0198] Optionally, in some embodiments, the 3D model generation unit 1550 can also be used for: The Gaussian primitives are rendered based on the camera parameters, and pixel-level normal maps are obtained according to the local plane orientation of each Gaussian primitive; wherein, the Gaussian primitive is a two-dimensional directional plane Gaussian primitive, and the local plane orientation is determined according to the quaternion of the Gaussian primitive; The rendering depth of each pixel is obtained by weighted fusion of the intersection depth, effective opacity and cumulative transmittance of each Gaussian unit involved in rendering along the viewing direction corresponding to each pixel in the rendered image. A depth map is formed by the rendering depth of each pixel. Each pixel and its corresponding rendering depth are back-projected into three-dimensional space according to the camera parameters to obtain a three-dimensional point map corresponding to each pixel of the depth map. The tangent vector is calculated based on the 3D points corresponding to adjacent pixels in the 3D point map. The tangent vector is then subjected to cross product and normalization to obtain the depth-induced normal. The depth-induced normal is then weighted by visibility based on the cumulative opacity of the rendering. A geometric consistency loss is constructed based on the consistency between the pixel-level normal map and the depth-induced normal. The primitive properties of each Gaussian primitive are optimized based on the geometric consistency loss, and the normals rendered by each Gaussian primitive are constrained to be consistent with the normals determined according to the rendering depth.

[0199] Optionally, in some embodiments, the 3D model generation unit 1550 can also be used for: A pixel-level loss is constructed based on the pixel difference between the rendered image and the real image, and a structural similarity loss is constructed based on the structural similarity between the rendered image and the real image; the real image is the image in the multi-view image sequence that corresponds to the viewpoint of the rendered image; a volume regularization term is constructed based on the scale of each Gaussian unit, and the volume regularization term is used to limit the scale of the Gaussian unit and reduce the overlap between adjacent Gaussian units; A joint loss is constructed based on the pixel-level loss, the structural similarity loss, the volume regularization term, the semantic consistency loss, and the geometric consistency loss; The primitive properties of each Gaussian element are optimized based on the joint loss, and a three-dimensional model of the target plant scene is generated from the optimized Gaussian elements.

[0200] Optionally, in some embodiments, the 3D model generation unit 1550 can also be used for: Based on the object semantic labels carried by each Gaussian element, Gaussian elements with the object semantic labels of plant category are extracted from the 3D model to obtain a subset of Gaussian elements corresponding to the plant object. Mesh reconstruction is performed based on the subset of Gaussian elements corresponding to the plant object to obtain the plant mesh model. The plant mesh model is subjected to coordinate correction and physical scale restoration, and the phenotypic parameters of the plant object are determined based on the restored plant mesh model.

[0201] Optionally, in some embodiments, the 3D model generation unit 1550 can also be used for: Based on the object semantic labels carried by each Gaussian element, Gaussian elements with object semantic labels as the object category are extracted from the 3D model to obtain a subset of Gaussian elements corresponding to the object. Mesh reconstruction is performed based on the subset of Gaussian elements corresponding to the object to obtain the mesh model of the object. The scaling factor is determined based on the dimensions of the calibration object mesh model and the actual measured dimensions of the calibration object; The plant mesh model is subjected to coordinate correction and physical scale restoration based on the scaling factor to obtain the restored plant mesh model; The phenotypic parameters of the plant object are determined based on the restored plant mesh model.

[0202] Optionally, in some embodiments, the 3D model generation unit 1550 can also be used for: The maximum coordinate difference in the vertical direction of the restored plant mesh model is determined as the plant height in the phenotypic parameters of the plant object. Obtain the projection point set of the restored plant mesh model on the horizontal plane, and determine the smallest convex polygon containing all points in the projection point set as the convex hull of the projection point set; The distance between the two farthest vertices in the convex hull is determined as the maximum point-to-point distance; The maximum point-to-point distance is determined as the crown width in the phenotypic parameters of the plant object; The shortest path distance between the leaf base and leaf tip in the restored plant mesh model is determined as the leaf length in the phenotypic parameters of the plant object. The maximum lateral extension distance perpendicular to the leaf axis in the restored plant mesh model is determined as the leaf width in the phenotypic parameters of the plant object.

[0203] Optionally, in some embodiments, the image text acquisition unit 1510 can be used for: A multi-view image sequence of the target plant scene is acquired, and object semantic segmentation is performed on the multi-view image sequence to obtain the object mask corresponding to each view. The multi-view image sequence and the text prompt are input into the visual base model. The image encoder based on the visual base model extracts the visual features of each view image in the multi-view image sequence. The text encoder based on the visual base model maps the text prompt to the semantic embedding space to obtain semantic embedding features. Based on the visual features and the semantic embedding features, objects that match the object category in the text prompt are detected in each of the viewpoint images, and candidate regions are generated for each object and the object label is assigned. The candidate regions and object labels of each object are propagated in the multi-view image sequence, and the object masks corresponding to each view are obtained based on the propagated candidate regions and object labels.

[0204] Please see Figure 16 The diagram below illustrates the structure of a computer device according to an embodiment of this application. Figure 16A partial structural block diagram of a computer device 1600 is shown. The computer device 1600 can vary significantly due to different configurations or performance characteristics, and may include one or more Central Processing Units (CPUs) 1610 (e.g., one or more processors) and memory 1620, and one or more storage media 1630 (e.g., one or more mass storage devices) storing application programs 1631 or data 1632. The memory 1620 and storage media 1630 may be temporary or persistent storage. The program stored in the storage media 1630 may include one or more modules (not shown in the diagram), each module including a series of instruction operations on the computer device 1600. Furthermore, the CPU 1610 may be configured to communicate with the storage media 1630 and execute the series of instruction operations in the storage media 1630 on the computer device 1600.

[0205] The computer device 1600 may also include one or more power supplies 1640, one or more wired or wireless network interfaces 1650, one or more input / output interfaces 1660, and / or one or more operating systems 1633, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc. The central processing unit 1610 in the computer device 1600 can be used to execute the plant three-dimensional modeling method of the embodiments of this disclosure.

[0206] This disclosure also provides a computer-readable storage medium for storing program code for performing the methods of the foregoing embodiments.

[0207] This disclosure also provides a computer program product comprising a computer program. A processor of a computer device reads and executes the computer program, causing the computer device to perform the methods of the foregoing embodiments.

[0208] Furthermore, the terms “comprising” and “including”, and any variations thereof, are intended to cover non-exclusive inclusion, such that a process, method, system, product, or apparatus that includes a series of steps or units is not necessarily limited to those steps or units that are explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to such process, method, product, or apparatus.

[0209] It should be understood that in this disclosure, "at least one (item)" refers to one or more, and "more than" refers to two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple. It should be understood that in the description of the embodiments of this disclosure, "more than" means two or more, "greater than", "less than", "exceeding", etc., are understood to exclude the number itself, while "above", "below", "within", etc., are understood to include the number itself.

[0210] In the several embodiments provided in this disclosure, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection between apparatuses or units, and may be electrical, mechanical, or other forms.

[0211] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0212] Furthermore, the functional units in the various embodiments of this disclosure can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in the various embodiments of this disclosure. The aforementioned storage medium includes: USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, optical disks, and other media capable of storing program code.

[0213] It should also be understood that the various implementation methods provided in this disclosure can be combined arbitrarily to achieve different technical effects.

[0214] In the embodiments of this application, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.

[0215] The above is a detailed description of the embodiments of this disclosure. However, this disclosure is not limited to the above embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of this disclosure. All such equivalent modifications or substitutions are included within the scope defined by the claims of this disclosure.

Claims

1. A method for three-dimensional modeling of plants, characterized in that, include: A multi-view image sequence of the target plant scene is acquired, and object semantic segmentation is performed on the multi-view image sequence to obtain the object mask corresponding to each view. The three-dimensional point cloud corresponding to the multi-view image sequence is obtained based on the camera parameters of each viewpoint, and the two-dimensional projection coordinates of each three-dimensional point in the three-dimensional point cloud on the object mask are obtained. The two-dimensional projection coordinates include the corresponding semantic boundary confidence and object label. The semantic boundary confidence is used to characterize the distance between the two-dimensional projection coordinates in the object mask and the semantic boundary. For each of the three-dimensional points, the semantic boundary confidence and the object label are weighted according to each of the three viewpoints to obtain the object semantic label; Multiple anchor points are determined in the set of three-dimensional points. Based on the object semantic tags of the anchor points, Gaussian elements corresponding to each anchor point are generated, and the primitive attributes of each Gaussian element are predicted. Based on the object semantic tags, the primitive attributes of each Gaussian unit are optimized, and the optimized Gaussian units are used to generate a 3D model of the target plant scene.

2. The method according to claim 1, characterized in that, For each of the three-dimensional points, the semantic boundary confidence and the object label are weighted according to each of the viewpoints to obtain the object semantic label, including: For each three-dimensional point in the three-dimensional point cloud, in each viewpoint, the viewpoint whose two-dimensional projection coordinates are within the image range of the corresponding viewpoint is determined as the effective observation viewpoint of the three-dimensional point; Based on the object labels of each effective observation perspective, determine the semantic observation labels of the three-dimensional points under each effective observation perspective, and determine the voting weights corresponding to each semantic observation label based on the semantic boundary confidence of each effective observation perspective. The cumulative weighted score of each candidate semantic category is obtained by weighting each semantic observation label and its corresponding voting weight, and the candidate semantic category with the highest cumulative weighted score is determined as the object semantic label of the three-dimensional point.

3. The method according to claim 2, characterized in that, The step of weighting each candidate semantic category based on its semantic observation label and corresponding voting weight to obtain a cumulative weighted score, and determining the candidate semantic category with the highest cumulative weighted score as the object semantic label of the 3D point, includes: The cumulative weighted score of each candidate semantic category is obtained by weighting each semantic observation label and its corresponding voting weight, and the weighted support ratio of the plant category is determined according to the voting weight corresponding to the semantic observation label of the plant category. When the candidate semantic category with the highest cumulative weighted score is the plant category, and the weighted support ratio is not less than a preset support ratio threshold, the object semantic label of the three-dimensional point is determined to be the plant category; When the weighted support ratio is less than a preset support ratio threshold, the semantic label of the object of the three-dimensional point is determined to be a non-plant category.

4. The method according to claim 2, characterized in that, The process of determining the semantic observation label of the 3D point under each effective observation viewpoint based on the object label of each effective observation viewpoint, and determining the voting weight corresponding to each semantic observation label based on the semantic boundary confidence of each effective observation viewpoint, includes: For the object mask corresponding to the three-dimensional point in any effective viewing angle, the semantic boundary is extracted based on the difference between the object labels of adjacent pixels, and the distance from each pixel in the object mask to the nearest semantic boundary is calculated. The confidence level of the semantic boundary corresponding to each pixel is determined based on the distance of each pixel to the nearest semantic boundary. The object label corresponding to the two-dimensional projection coordinates is determined as the semantic observation label of the three-dimensional point under each effective observation view, and the voting weight corresponding to each semantic observation label is determined according to the semantic boundary confidence corresponding to the two-dimensional projection coordinates.

5. The method according to claim 1, characterized in that, The process of determining multiple anchor points in the set of three-dimensional points, generating Gaussian elements corresponding to each anchor point based on the object semantic tags of the anchor points, and predicting the primitive attributes of each Gaussian element includes: In the set of three-dimensional points, anchor points carrying the object semantic tags are determined based on the positions of the three-dimensional points and the object semantic tags, and each anchor point is associated with the corresponding object semantic tags and local context features. For any of the anchor points, the relative distance and relative direction between the anchor point and the camera are determined. Based on the relative distance, the relative direction, and the local context features of the anchor point, multiple Gaussian primitives corresponding to the anchor point are generated, and the primitive attributes of each Gaussian primitive are predicted. The position of each Gaussian primitive is constrained within the local range of the anchor point.

6. The method according to claim 5, characterized in that, In the set of three-dimensional points, anchor points carrying the object semantic tags are determined based on the positions of the three-dimensional points and the object semantic tags, and each anchor point is associated with a corresponding object semantic tag and local context features, including: The three-dimensional space containing the set of three-dimensional points is voxelized to obtain multiple voxel units; An anchor point is set in a voxel unit containing the three-dimensional points in the set. The anchor point is located at the center of the voxel unit or at the centroid of the three-dimensional point within the voxel unit. The object semantic label carried by the anchor point is determined based on the object semantic label of the three-dimensional point in the voxel unit, and the corresponding object semantic label and the local context feature are associated for each anchor point; the local context feature is used to encode the local appearance information and geometric information of the anchor point neighborhood.

7. The method according to claim 1, characterized in that, The step of optimizing the primitive attributes of each Gaussian unit based on the object semantic tags, and generating a 3D model of the target plant scene from the optimized Gaussian units, includes: During the optimization of the primitive attributes of each Gaussian primitive, the object semantics rendered according to the object semantic tags carried by each Gaussian primitive are constrained to be consistent with the corresponding object tags in the object mask, and the normals rendered by each Gaussian primitive are constrained to be consistent with the depth-induced normals determined by the rendered depth map according to the normals determined by the rendering depth. Based on the optimized Gaussian elements, a 3D model of the target plant scene is generated.

8. The method according to claim 7, characterized in that, The constraint, based on the object semantics rendered according to the object semantic tags carried by each Gaussian unit, ensures that the object semantics are consistent with the corresponding object tags in the object mask, including: Based on the camera parameters, each Gaussian pixel is rendered to obtain a rendered image, and the Gaussian pixels in the rendered image corresponding to each pixel in the viewing direction that participate in the rendering are determined; wherein, the viewing direction is the direction of the line connecting the camera and the corresponding pixel corresponding to the camera parameters; The mixing weight of each Gaussian element to the corresponding pixel is determined based on the effective opacity of each Gaussian element at the corresponding pixel and the cumulative transmittance corresponding to each Gaussian element; wherein the cumulative transmittance is determined based on the opacity of other Gaussian elements located along the viewing direction of the corresponding pixel and between the Gaussian element and the current camera. The semantic labels of the objects carried by each Gaussian unit are weighted according to the hybrid weight to obtain the semantic probability of the corresponding pixel; A semantic consistency loss is constructed based on the difference between the semantic probability of each pixel and the corresponding object label in the object mask. The primitive attributes of each Gaussian primitive are optimized based on the semantic consistency loss to ensure that the semantics of the rendered object are consistent with the corresponding object label in the object mask.

9. The method according to claim 8, characterized in that, The constraint that the normals rendered by each Gaussian primitive are consistent with the normals determined according to the rendering depth includes: The Gaussian primitives are rendered based on the camera parameters, and pixel-level normal maps are obtained according to the local plane orientation of each Gaussian primitive; wherein, the Gaussian primitive is a two-dimensional directional plane Gaussian primitive, and the local plane orientation is determined according to the quaternion of the Gaussian primitive; The rendering depth of each pixel is obtained by weighted fusion of the intersection depth, effective opacity and cumulative transmittance of each Gaussian unit involved in rendering along the viewing direction corresponding to each pixel in the rendered image. The rendering depth of each pixel is formed by the rendering depth of each pixel. The rendering depth of each pixel is then back-projected to the three-dimensional space according to the camera parameters to obtain a three-dimensional point map corresponding to the depth map pixel by pixel. The tangent vector is calculated based on the 3D points corresponding to adjacent pixels in the 3D point map. The tangent vector is then subjected to cross product and normalization to obtain the depth-induced normal. The depth-induced normal is then weighted by visibility based on the cumulative opacity of the rendering. A geometric consistency loss is constructed based on the consistency between the pixel-level normal map and the depth-induced normal. The primitive properties of each Gaussian primitive are optimized based on the geometric consistency loss, and the normals rendered by each Gaussian primitive are constrained to be consistent with the normals determined according to the rendering depth.

10. The method according to claim 9, characterized in that, The step of optimizing the primitive attributes of each Gaussian unit based on the object semantic tags, and generating a 3D model of the target plant scene from the optimized Gaussian units, includes: A pixel-level loss is constructed based on the pixel difference between the rendered image and the real image, and a structural similarity loss is constructed based on the structural similarity between the rendered image and the real image; the real image is the image in the multi-view image sequence that corresponds to the viewpoint of the rendered image; a volume regularization term is constructed based on the scale of each Gaussian unit, and the volume regularization term is used to limit the scale of the Gaussian unit and reduce the overlap between adjacent Gaussian units; A joint loss is constructed based on the pixel-level loss, the structural similarity loss, the volume regularization term, the semantic consistency loss, and the geometric consistency loss; The primitive properties of each Gaussian element are optimized based on the joint loss, and a three-dimensional model of the target plant scene is generated from the optimized Gaussian elements.

11. The method according to claim 1, characterized in that, After optimizing the primitive attributes of each Gaussian unit based on the object semantic tags, and generating a 3D model of the target plant scene from the optimized Gaussian units, the method further includes: Based on the object semantic labels carried by each Gaussian element, Gaussian elements with the object semantic labels of plant category are extracted from the 3D model to obtain a subset of Gaussian elements corresponding to the plant object. Mesh reconstruction is performed based on the subset of Gaussian elements corresponding to the plant object to obtain the plant mesh model. The plant mesh model is subjected to coordinate correction and physical scale restoration, and the phenotypic parameters of the plant object are determined based on the restored plant mesh model.

12. The method according to claim 11, characterized in that, The process of performing coordinate correction and physical scale restoration on the plant mesh model, and determining the phenotypic parameters of the plant object based on the restored plant mesh model, includes: Based on the object semantic labels carried by each Gaussian element, Gaussian elements with object semantic labels as the object category are extracted from the 3D model to obtain a subset of Gaussian elements corresponding to the object. Mesh reconstruction is performed based on the subset of Gaussian elements corresponding to the object to obtain the mesh model of the object. The scaling factor is determined based on the dimensions of the calibration object mesh model and the actual measured dimensions of the calibration object; The plant mesh model is subjected to coordinate correction and physical scale restoration based on the scaling factor to obtain the restored plant mesh model; The phenotypic parameters of the plant object are determined based on the restored plant mesh model.

13. The method according to claim 11 or 12, characterized in that, The determination of the phenotypic parameters of the plant object based on the restored plant mesh model includes: The maximum coordinate difference in the vertical direction of the restored plant mesh model is determined as the plant height in the phenotypic parameters of the plant object. Obtain the projection point set of the restored plant mesh model on the horizontal plane, determine the smallest convex polygon containing all points in the projection point set, and use it as the convex hull of the projection point set; determine the distance between the two farthest vertices in the convex hull as the maximum point-to-point distance; determine the maximum point-to-point distance as the crown width in the phenotypic parameters of the plant object; The shortest path distance between the leaf base and leaf tip in the restored plant mesh model is determined as the leaf length in the phenotypic parameters of the plant object. The maximum lateral extension distance perpendicular to the leaf axis in the restored plant mesh model is determined as the leaf width in the phenotypic parameters of the plant object.

14. The method according to claim 1, characterized in that, The process of acquiring a multi-view image sequence of the target plant scene, performing object semantic segmentation on the multi-view image sequence to obtain object masks corresponding to each viewpoint, includes: Acquire a multi-view image sequence of the target plant scene and text prompts to indicate the object categories in the target plant scene; The multi-view image sequence and the text prompt are input into the visual base model. The image encoder based on the visual base model extracts the visual features of each view image in the multi-view image sequence. The text encoder based on the visual base model maps the text prompt to the semantic embedding space to obtain semantic embedding features. Based on the visual features and the semantic embedding features, objects that match the object category in the text prompt are detected in each of the viewpoint images, and candidate regions are generated for each object and the object label is assigned. The candidate regions and object labels of each object are propagated in the multi-view image sequence, and the object masks corresponding to each view are obtained based on the propagated candidate regions and object labels.

15. A plant three-dimensional modeling device, characterized in that, include: The image text acquisition module is used to acquire a multi-view image sequence of the target plant scene, perform object semantic segmentation on the multi-view image sequence, and obtain the object mask corresponding to each view. The projection module is used to obtain the three-dimensional point cloud corresponding to the multi-view image sequence according to the camera parameters of each viewpoint, and to obtain the two-dimensional projection coordinates of each three-dimensional point in the three-dimensional point cloud on the object mask. The two-dimensional projection coordinates include the corresponding semantic boundary confidence and object label. The semantic boundary confidence is used to characterize the distance between the pixel in the object mask and the semantic boundary. The semantic label determination module is used to obtain an object semantic label for each of the three-dimensional points by weighting the semantic boundary confidence and the object label under each of the viewpoints. A Gaussian meta-generation module is used to determine multiple anchor points in the set of three-dimensional points, generate Gaussian meta-elements corresponding to each anchor point based on the object semantic tags of the anchor points, and predict the primitive attributes of each Gaussian meta-element. The 3D model generation module is used to optimize the primitive attributes of each Gaussian unit based on the semantic tags of the object, and generate a 3D model of the target plant scene from the optimized Gaussian units.

16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a plurality of instructions adapted for loading by a processor to perform the method of any one of claims 1 to 14.

17. A computer 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, it implements the method according to any one of claims 1 to 14.