Target identification and segmentation, precise positioning and sequence planning method for sheltered sphere-like fruits under dense canopies

The depth camera and target instance segmentation model are used to identify and locate spherical fruits under dense canopies. Combined with branch completion and collision coefficient calculation, the problem of precise positioning and collision judgment of fruits under dense canopies is solved, and the problem of collision judgment is achieved. Efficient fruit picking.

CN118700142AActive Publication Date: 2024-09-27JIANGSU UNIV

Patent Information

Application Number
CN202410907521.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-09-27
Estimated Expiration
2044-07-08

AI Technical Summary

Technical Problem

Under a dense canopy, it is difficult to accurately position spherical fruits and determine the collision of multiple fruits and branches with existing technology, resulting in picking failure and low efficiency.

Method used

A depth camera is used to acquire RGB images, and combined with the trained target instance segmentation model, target recognition and instance segmentation of fruits and branches are performed, edge point sets are extracted, two-dimensional plane completion and depth information processing are performed, the picking point is determined, and the branches are Dry completion and collision coefficient calculation optimize picking order.

Benefits of technology

It achieves precise positioning and efficient picking of spherical-shaped fruits that are obscured under dense canopies, avoids misidentification and mispositioning, and improves picking efficiency and fruit integrity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118700142A
    Figure CN118700142A
Patent Text Reader

Abstract

The invention discloses a target identification segmentation, precise positioning and picking sequence planning method for sheltered sphere-like fruits under a dense canopy, and the method comprises the steps: obtaining the two-dimensional features of the sphere and branches of the fruits through fruit-branch segmentation and contour extraction, completing the precise positioning of the sphere-like fruits under the condition of canopy sheltering, and correcting the positioning error of a picking point, thereby achieving the target identification segmentation, precise positioning and picking sequence planning of the sheltered sphere-like fruits under the condition of dense canopy sheltering. The method comprises the following steps: judging a spatial interference relationship between target fruits and branches, removing fruits which cannot be picked due to interference between the branches and the fruits, judging a collision relationship among multiple fruits, calculating a collision coefficient, and guiding a mechanical arm to sequentially complete picking operation according to a sequence of picking independent fruit queues and picking collision fruit queues. The picking failure problem caused by mistaken recognition, mistaken positioning and too large positioning deviation of the fruits can be effectively avoided, the situation that due to the fact that the mechanical arm forcibly picks the fruits which are improper in position and seriously interfered by branches and leaves, the fruits are damaged, and the mechanical arm is damaged is avoided, and efficient harvesting is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of agricultural robots, and in particular to a method for target recognition and segmentation, precise positioning and harvesting sequence planning of spherical fruits obscured under dense canopies. Background Art

[0002] In the context of agricultural labor shortage, robot picking has become a hot topic in current research, replacing traditional manual picking. A large number of picking robots have appeared and been applied on the market, such as apple picking robots, grape picking robots, kiwi picking robots, etc. During the picking operation of intelligent picking robots, the recognition and positioning of target fruits is one of the important issues in the operation process. This is not only related to the picking recognition and positioning accuracy of the picking robot, but also determines the picking efficiency of the fruit picking robot.

[0003] In complex environments such as orchards, such as semi-structured, unstructured, and dense canopy environments, deep learning technology, traditional machine vision technology, and other means are used to identify and locate fruits. Only the position of the fruit is obtained, but the obstacle information around the fruit cannot be obtained simultaneously. For the incomplete fruits caused by occlusion, the correct picking point cannot be given, and the deviation problems caused by occlusion of positioning points and overlapping and collision of fruits in orchard operations cannot be solved, which has become the main cause of picking failure. In addition, due to improper picking positions or forced picking of fruits that are severely blocked by branches, trellises, etc., the fruits may be damaged or even the robotic arm may be damaged. Without effective picking feasibility judgment and picking order planning, it will cause "eyes and hands are busy", which seriously affects the work efficiency. Summary of the invention

[0004] In view of the shortcomings in the prior art, the present invention provides a method for target recognition and segmentation, precise positioning and picking sequence planning of spherical fruits obscured under dense canopies, aiming to solve the problems in the prior art of being difficult to accurately locate spherical fruits under canopy obstruction conditions, and to judge the collision and interference of multiple fruits and branches, so as to realize high-precision and high-efficiency robot spherical fruit picking operations.

[0005] The present invention achieves the above technical objectives through the following technical means.

[0006] A method for target recognition, segmentation, precise positioning and order planning of spherical fruits obscured under dense canopies:

[0007] The depth camera acquires an RGB image containing the target fruit and the branches of the fruit tree canopy, and the RGB image is passed into the trained target instance segmentation model to perform target recognition and instance segmentation on the spherical fruits and branches in the RGB image, and outputs the mask image of each fruit target and the mask image of each branch target in turn, extracts the edge point set of each fruit in the image coordinate system, and sequentially forms the fruit contour point set, and extracts the edge point set of each branch in the image coordinate system, and sequentially forms the branch contour point set;

[0008] The fruit contour point set is used to complete the two-dimensional plane of the fruit that is touched and blocked to obtain the completed two-dimensional plane area, and the credibility of the completed two-dimensional plane area is calculated. According to the set threshold, the fruit target that cannot be correctly restored is eliminated, and then according to the depth information in the completed two-dimensional plane area, the depth point set of the spherical fruit is extracted and corrected, and the picking point is estimated to determine the three-dimensional coordinates of the correct picking point of the spherical fruit;

[0009] Determine the spatial relationship between the fruit to be picked and the branches, use the branch contour point set to complete the two-dimensional branches of the fruit tree canopy, and restore a continuous and complete two-dimensional plane area of ​​the branches. If there is an intersection with the completed two-dimensional plane area, then combine the effective depth value of the branches and the depth value of the three-dimensional spherical center picking point of the fruit to eliminate all target fruits with spatial interference between branches and fruits; next, if it is determined that the completed two-dimensional plane areas of multiple fruits have an intersection, then combine the depth value of the picking point of the fruit to determine whether there is a spatial contact relationship between the fruits. If so, calculate the contact coefficient of the fruit to complete the calculation of the order score of the contact fruit;

[0010] Independent fruit queues are picked first. When the independent fruit queue is finished, the adjacent fruit queues are picked to complete the picking operation in sequence.

[0011] Furthermore, the two-dimensional plane completion of the fruit that is touched and blocked is performed, specifically:

[0012] For each spherical fruit, three convex hulls are randomly selected from the fruit contour point set, and the minimum circumscribed circle of the three convex hulls is determined, and it is checked whether the minimum circumscribed circle contains all the points of the fruit contour point set. If not, the radius of the minimum circumscribed circle is increased, and three convex hulls are continuously extracted, and the recursive process is continued, and it is iterated repeatedly until the minimum circumscribed circle can contain all the points of the fruit contour point set;

[0013] The minimum circumscribed circle radius and center at the end of the iteration are used as the estimated radius and center of the two-dimensional area of ​​the fruit respectively, and the constructed two-dimensional plane area is the completed two-dimensional plane area.

[0014] Furthermore, the credibility of the completed two-dimensional plane region satisfies:

[0015]

[0016] Among them, D i To complete the credibility of the two-dimensional plane area, |E i | represents the pixel area of ​​the surface enclosed by the contour points of this type of spherical fruit, r i Represents the estimated radius of the two-dimensional area of ​​the fruit that is touching and obscured.

[0017] Furthermore, the depth point set extraction and deviation correction of the spherical fruit are specifically as follows:

[0018] Get all the depth points in the two-dimensional plane area. i}, the {D i} is divided into three clusters according to the size of the depth value: foreground obstacles, fruit body and fruit back background. Only the fruit body depth value set {C2} of the blocked fruit is retained, and the effective depth value d of {C2} must satisfy: μ i -2σ i ≤d≤μ i +2σ i , the invalid depth values ​​that do not meet the above conditions are eliminated, and the effective depth point set of the occluded fruit after filtering and correction is {D i '}, where μ i is the mean value of {C2} depth, σ i Indicates the standard deviation of the depth value of the cluster where {C2} is located.

[0019] Furthermore, the picking point of the spherical fruit is estimated to be:

[0020] The effective depth point cloud of the occluded fruit {D i '} The points contained in the sphere are fitted with geometric sphere features and the 3D inference of the sphere center is performed. The coordinates of the sphere center of the spherical fruit are O i (X i ,Y i ,Z i ) minimizes the error function (E i )satisfy: Respectively (X i ,Y i ,Z i ,R i ) calculate the partial derivative, set the partial derivative to zero, and fit the correct three-dimensional spherical center position O of each fruit i (X i ,Y i ,Z i ), i.e., the picking point; where (X, Y, Z) is any point inside or on the boundary of the spherical fruit, R i is the three-dimensional estimated radius of the sphere of this type of spherical fruit.

[0021] Furthermore, the two-dimensional completion of the branches and trunks of the fruit tree canopy is specifically as follows:

[0022] For each discrete branch contour point set {m j}, its center point c j (x j ,y j ) as the feature point of this point set, and search for the surrounding radius of 2d j Is there a discrete point set of other branches within the range of {m k}, if it exists, it is considered that {m j} and {m k} belong to the same branch, calculate {m k The center point c of k (x k ,y k ), where d j is the discrete branch contour point set {m j}'s maximum pixel diameter;

[0023] If the number of feature points is n, all feature points c0, c1, c2…c belonging to the same branch are n The polynomial obtained by high-order polynomial fitting is the two-dimensional completed branch curve of the fruit tree canopy. This curve constitutes a continuous and complete two-dimensional plane area of ​​branches and trunks β = {(u b ,v b )}|b=1,2,...,n, where (u b ,v b ) is an arbitrary point on the branch plane.

[0024] Furthermore, the effective depth value of the branch and the depth value of the three-dimensional spherical center picking point of the fruit are combined to eliminate all target fruits with spatial interference between branches and fruits, specifically:

[0025] If and only if at least one point in the two-dimensional plane area of ​​the branch is located in the two-dimensional plane area of ​​the fruit, the following conditions are met:

[0026] So that (u b -x) 2 +(v b -y) 2 <r i 2

[0027] It is considered that the branches and fruits overlap in the plane; among them, r i The estimated radius of the two-dimensional area of ​​the fruit that is in contact with and blocked by the fruit;

[0028] By comparing the depth value d of the picking point at the three-dimensional spherical center of the fruitf and the effective depth of the branches d b , determine the front-to-back spatial relationship between the fruit to be picked and the branches:

[0029] If d f -d b ≤0, the fruit is considered to be in front of the branch, and the branch has no spatial interference with the fruit;

[0030] If d f -d b >0, the fruit is considered to be behind the branch. If |d f -d b |≤10mm, it is considered that the branches have spatial interference with the fruit, and the fruit cannot be picked and is removed. On the contrary, if |d f -d b |>10mm, even if the fruit is located behind the branch, it is considered that the branch has no spatial interference with the fruit.

[0031] Further, the determining of the contact relationship between multiple fruits is specifically as follows:

[0032] For the complementary two-dimensional plane region A of the fruit that is touching and blocked and the complementary two-dimensional plane region B of the fruit that is touching and blocked, if and only if the intersection of the two regions is not an empty set, then the two fruits are touching each other in the plane region, and the touching relationship of the two fruits in space is further determined. Otherwise, the two fruits are not touching each other in space.

[0033] If the difference in the depth values ​​of the picking points of the two fruits is greater than the sum of the three-dimensional radii of the two fruits, it is considered that the two fruits do not collide in space; conversely, if the difference in the depth values ​​of the picking points of the two fruits is less than the sum of the three-dimensional radii of the two fruits, it is considered that the two fruits do collide in space.

[0034] Furthermore, the fruit contact coefficient is:

[0035]

[0036] Among them, u m is the fruit contact coefficient, S A∩B is the overlapping area of ​​the two-dimensional plane regions of the two fruits, S A∪B It is the sum of the areas of the two fruits' complementary two-dimensional plane regions.

[0037] Further:

[0038] For picking of independent fruit queues, firstly score the picking sequence of each fruit in the independent fruit queue f n :

[0039]

[0040] Where ω1 is the confidence index weight of the fruit in the independent fruit queue, P n is the confidence index of the fruit in the independent fruit queue, is the canopy depth weight of the independent fruit queue, l n is the depth within the canopy at which fruits within individual fruit cohorts are located;

[0041] Then according to the ranking score f n Sort from high to low, and pick all the independent fruit queues in turn;

[0042] For picking the fruit in the fruit queue, firstly score the picking order of each fruit in the fruit queue m :

[0043]

[0044] Where ω2 is the confidence index weight of the fruit in the fruit queue, P m is the confidence index of the fruit in the fruit queue, is the depth weight of the canopy layer where the fruit in the fruit-touching queue is located, l m is the depth of the fruit in the canopy where the fruit in the fruit-bumping queue is located, σ is the weight of the bumping coefficient, μ m is the collision coefficient;

[0045] Then according to the ranking score f m Sort from high to low, and pick all the fruits in the queue one by one.

[0046] The beneficial effects of the present invention are:

[0047] (1) The present invention realizes the recognition, segmentation, precise positioning and order planning of spherical fruit targets obscured under dense canopies through the coordinated cooperation among the fruit-branch target recognition and contour extraction sub-method, the obscured spherical fruit completion and precise positioning sub-method, the multi-fruit-branch collision coefficient and spatial interference judgment and elimination sub-method, and the spherical fruit robot optimal operation sequence planning sub-method under canopy occlusion conditions, thereby effectively avoiding the problems of misidentification, mispositioning and excessive positioning deviation of fruits. The method is simple, reliable and highly practical.

[0048] (2) The present invention provides a method for target recognition, segmentation, precise positioning and picking sequence planning of spherical fruits obscured under dense canopies. Aiming at the complex and dense canopy growth environment of unstructured orchards, the method obtains the two-dimensional features of the fruit sphere and branches through fruit-branch segmentation and contour extraction, and completes the precise positioning of spherical fruits under canopy obstruction conditions and the correction of picking point positioning errors. It also determines the spatial interference relationship between the target fruit and the branches, and removes the fruits that cannot be picked due to interference between the branches and fruits. At the same time, it determines the collision relationship between multiple fruits and calculates the collision coefficient, guiding the robotic arm to plan a reasonable picking sequence and harvest the fruits one by one according to agronomic requirements, so as to avoid the robotic arm forcibly picking the target fruit in an improper position or the fruit with serious interference from branches and leaves, causing fruit damage and robotic arm damage, ensuring efficient harvesting, realizing robot intelligent and mechanized harvesting, improving the economic benefits of fruit farmers, and effectively saving labor costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 It is a schematic diagram of each sub-method of the present invention and corresponding functions;

[0050] Figure 2 It is a specific workflow diagram of the present invention;

[0051] Figure 3 It is a schematic diagram of the fruit-branch target recognition and contour extraction sub-method of the present invention;

[0052] Figure 4 The present invention is a two-dimensional plane completion flow chart for pasting and blocking fruits;

[0053] Figure 5 It is a schematic diagram of two-dimensional plane completion of the fruit being touched and blocked according to the present invention;

[0054] Figure 6 This is a flow chart of the two-dimensional completion method of the canopy branches of a fruit tree according to the present invention;

[0055] Figure 7 This is a schematic diagram of two-dimensional completion of branches and trunks of a fruit tree canopy according to the present invention;

[0056] Figure 8 The present invention is a flow chart for eliminating branch-fruit interference. DETAILED DESCRIPTION

[0057] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments, but the protection scope of the present invention is not limited thereto.

[0058] The present invention discloses a method for target recognition, segmentation, precise positioning and order planning of spherical fruits obscured under dense canopies, comprising a fruit-branch target recognition and contour extraction sub-method, a sub-method for completing and precisely positioning obscured spherical fruits, a sub-method for judging and eliminating multiple fruit-branch collision coefficients and spatial interference, and a sub-method for optimal operation order planning of spherical fruit robots under canopy obstruction conditions.

[0059] like Figure 1 As shown in the figure, the fruit-branch target recognition and contour extraction sub-method can perform target recognition and instance segmentation of spherical fruits and branches in RGB images, forming multi-fruit recognition and segmentation results (contour two-dimensional point set) and multi-branch recognition and segmentation results (contour two-dimensional point set); the occluded spherical fruit completion and precise positioning sub-method can realize the two-dimensional plane completion of the occluded fruit and obtain the three-dimensional sphere center position and radius of the occluded fruit; the multi-fruit-branch collision coefficient and spatial interference judgment and elimination sub-method can complete the fruit-branch spatial interference elimination, fruit-fruit collision judgment and collision coefficient calculation; the sub-method of the optimal operation order of the spherical fruit robot under canopy occlusion conditions can obtain the operation order of fruits without collision and the operation order of fruits with collision.

[0060] like Figure 2 As shown, the specific implementation steps of the present invention are as follows:

[0061] (1) Using the fruit-branch target recognition and contour extraction sub-method, a depth camera is used to obtain an RGB image containing the target fruit and the branches of the fruit tree canopy, and a depth point set aligned with the pixel coordinate system of the RGB image. The RGB image is passed into the fully trained Mask-RCNN-R50-FPN3x target instance segmentation model (stored in the robot's main controller), and the spherical fruits and branches in the RGB image are recognized and segmented. The mask image of each fruit target and the mask image of each branch target are output in turn, and each fruit target is labeled: fruit0, fruit1, ..., fruit i , label each branch target: branch0, branch1, ..., branch j ; For each obtained mask image of the fruit target, the Canny edge detection algorithm is used to extract the edge point set of each fruit in the image coordinate system, and the fruit contour point set is sequentially formed; for each obtained mask image of the branch target, the Canny edge detection algorithm is used to extract the edge point set of each branch in the image coordinate system, and the branch contour point set is sequentially formed;

[0062] (2) Using the sub-method of completing and accurately positioning the occluded spherical fruit, the fruit contour point set described in (1) is completed in the two-dimensional plane of the fruit that is stuck and occluded, and the completed two-dimensional plane area of ​​the fruit that is stuck and occluded is obtained. At the same time, the credibility of the completed two-dimensional plane area of ​​the fruit that is stuck and occluded is calculated. Then, according to the set credibility threshold of the completed two-dimensional plane area of ​​the fruit that is stuck and occluded, the fruit targets that cannot be correctly restored due to serious sticking and occlusion are eliminated. Then, based on the depth information in the completed two-dimensional plane area of ​​the fruit that is stuck and occluded, the depth point set of the spherical fruit is extracted and corrected, and the picking point is estimated, and finally the three-dimensional coordinates of the correct picking point of the spherical fruit are determined;

[0063] (3) The spatial relationship between the fruit to be picked and the branches is determined by using the multi-fruit-branch collision coefficient and the spatial interference judgment and elimination sub-method. The two-dimensional point set of the branch contour is used to complete the two-dimensional branches of the fruit tree canopy, and a continuous and complete two-dimensional plane area of ​​the branches is restored. If there is an intersection with the two-dimensional plane area of ​​the fruit, the effective depth value of the branch and the depth value of the three-dimensional spherical center of the fruit are combined to eliminate all target fruits with spatial interference between branches and fruits; next, the collision relationship between multiple fruits is determined and the collision coefficient is calculated. If there is an intersection between multiple fruits in the two-dimensional plane area, the specific picking point depth values ​​are combined to determine whether there is a collision relationship between the fruits in space. If so, their collision coefficients are calculated to complete the calculation of the collision fruit picking sequence score;

[0064] (4) The optimal operation sequence sub-method of the spherical fruit robot under canopy occlusion conditions is used to give priority to picking independent fruit queues. When the independent fruit queue is completed, the adjacent fruit queue is picked to complete the picking operation in sequence. During the picking operation, the principle of picking from shallow canopy to deep canopy and giving priority to prominent fruits is followed.

[0065] like Figure 3 As shown, the fruit-branch target recognition and contour extraction sub-method is specifically as follows: by pre-collecting spherical fruit and its branch images, the fruit and the branches are respectively labeled to construct a spherical fruit-branch detection image dataset; the labeled image dataset is trained using a preset Mask-RCNN-R50-FPN3x model; and a fully trained Mask-RCNN-R50-FPN3x target instance segmentation model is obtained;

[0066] During the operation, the RGB image containing the target fruit and the branches of the fruit tree canopy is passed into the well-trained Mask-RCNN-R50-FPN3x target instance segmentation model, which outputs the mask image of each fruit target and the mask image of each branch target in turn, and uses the Canny edge detection algorithm to extract the edge point set of each fruit in the image coordinate system, which in turn constitutes the fruit contour point set {k1}{k2}{k3}...{ki}...{k n}; For each branch target mask image obtained, the Canny edge detection algorithm is used to extract the edge point set of each branch in the image coordinate system, and the branch contour point set {m1}{m2}{m3}...{m j}...{m t}.

[0067] like Figure 4 , Figure 5 As shown, the two-dimensional plane completion of the pasted and blocked fruit is specifically as follows: for each spherical fruit, three convex hulls (outer edge points) are randomly selected from the fruit contour point set, and the minimum circumscribed circle of the three convex hulls is determined, and it is checked whether the minimum circumscribed circle contains all the points of the fruit contour point set. If not, the radius of the minimum circumscribed circle is increased, and three convex hulls (outer edge points) are continuously extracted, and the recursive processing is continued, and it is iterated repeatedly until the minimum circumscribed circle can contain all the points of the fruit contour point set;

[0068] The constraints are satisfied:

[0069]

[0070] In the formula, |p i -C i (x,y)| represents point p i To the center C of the smallest circumscribed circle i The Euclidean distance of (x,y), represents the fruit contour point set {k i}, i = all points p contained in (1,2,3...,n) i All satisfy this condition, r i Indicates the minimum circumscribed circle radius at the end of the iteration;

[0071] Here the radius r i 、Center i (x, y) is used as the estimated radius and center of the two-dimensional area of ​​the fruit, and the two-dimensional plane area formed is the completed two-dimensional plane area of ​​the fruit that is touched and blocked.

[0072] In this embodiment, the credibility of the completed two-dimensional plane area of ​​the fruit that is stuck and blocked is calculated, and then the fruit targets that cannot be correctly restored due to severe sticking and blocking are eliminated according to the set credibility threshold of the completed two-dimensional plane area of ​​the fruit that is stuck and blocked. Specifically,

[0073] For i spherical fruits, the credibility D of the completed two-dimensional plane area of ​​their contact and occluded fruits is i for:

[0074]

[0075] Among them, |E i | represents the contour point set of this type of spherical fruit {k i}, i = the pixel area of ​​the curved surface enclosed by (1, 2, 3..., n);

[0076] The larger the difference between the pixel area of ​​the surface enclosed by the fruit contour point set and the area of ​​the completed two-dimensional plane area of ​​the adjacent and occluded fruit, the higher the credibility D of the completed two-dimensional plane area of ​​the adjacent and occluded fruit. i The lower the value;

[0077] When the credibility is lower than the set threshold D i ≤ξ, where ξ=60%, it is considered that the fruit is severely occluded and the credibility of the completed result is insufficient. The fruit targets that cannot be correctly restored due to severe contact and occlusion are eliminated.

[0078] Furthermore, the depth point set extraction and deviation correction of the spherical fruit are specifically as follows:

[0079] By extracting all the depth point sets in the complementary two-dimensional plane area of ​​the adjacent and occluded fruits, the depth point set of the occluded fruits is expressed as:

[0080]

[0081] in, Denotes the depth point set of the occluded fruit {D i} corresponds to the depth value of the position (u1, v1), (x, y) represents the center of the circle C i The horizontal and vertical coordinates of (x,y), r i The estimated radius of the two-dimensional area of ​​the fruit that is in contact with and blocked by the fruit;

[0082] The depth point cloud of the occluded fruit is clustered using a clustering algorithm {D i} are divided into three clusters, which correspond to foreground obstacles, fruit body, and fruit back background from small to large according to the depth value. The depth value sets of each cluster are {C1}, {C2}, and {C3} respectively;

[0083] Only the fruit body depth value set {C2} of the occluded fruit is retained, and individual invalid depth values ​​in the depth point set caused by noise interference during the collection process are eliminated;

[0084] Calculate the mean depth value μ of the fruit body depth value set {C2} of the occluded fruit i :

[0085]

[0086] Calculate the standard deviation of the depth values ​​of the cluster where the fruit body depth value set {C2} of the occluded fruit belongs:

[0087]

[0088] in, represents the depth value of the corresponding position (u2, v2) in the fruit body depth value set {C2} of the occluded fruit, The number of points in the fruit body depth value set {C2} representing the occluded fruit;

[0089] The effective depth value d of the fruit body depth value set {C2} of the occluded fruit must satisfy:

[0090] μ i -2σ i ≤d≤μ i +2σ i

[0091] Eliminating the invalid depth values ​​that do not meet the above conditions, the effective depth point set of the occluded fruit after filtering and correction is {D i '}.

[0092] In this embodiment, the picking point of the spherical fruit is estimated as follows:

[0093] The effective depth point cloud of the occluded fruit {D i The point P contained in '} (X,Y,Z) Perform geometric spherical feature fitting and 3D inference of the sphere center, and the spherical fruit sphere center coordinates O i (X i ,Y i ,Z i ) minimizes the error function (E i )satisfy:

[0094]

[0095] Where (X, Y, Z) is any point inside or on the boundary of the spherical fruit, R i is the three-dimensional inferred radius of the sphere of such spherical fruit;

[0096] Respectively (X i ,Y i ,Z i ,R i ) to find the partial derivative:

[0097]

[0098] And let the partial derivative be zero, then the correct three-dimensional spherical center position O of each fruit can be fitted. i (X i,Y i ,Z i ) as the three-dimensional sphere center, i.e., the picking point.

[0099] like Figure 6 , Figure 7 As shown, in this embodiment, the two-dimensional completion of the branches and trunks of the fruit tree canopy is specifically as follows:

[0100] t discrete branch contour point sets {m1}{m2}{m3}...{m j}...{m t} for splicing and fusion;

[0101] For each discrete branch contour point set {m j}, its center point c j (x j ,y j ) as the feature points of this point set:

[0102]

[0103] Among them, (x i ,y i ) is {m j}, n j is j The number of embedded points in};

[0104] Then calculate the discrete branch contour point set {m j The maximum pixel diameter d j :

[0105]

[0106] Among them, (x p ,y p ) and (x q ,y q ) is {m j Any two points in};

[0107] For each discrete branch contour point set {m j}, search its surrounding radius 2d j Is there a discrete point set of other branches within the range of {m k}, if it exists, it is considered that {m j} and {m k} belong to the same branch, calculate {m k The center point c of k (x k ,y k );

[0108] If the number of feature points is n, all feature points c0, c1, c2…c belonging to the same branch are n Perform high-order polynomial fitting to complete the two-dimensional information of branches and trunks:

[0109]

[0110] This polynomial is the two-dimensional completed branch curve of the fruit tree canopy. This curve constitutes a continuous and complete two-dimensional plane area of ​​branches and trunks β = {(u b ,v b )}|b=1,2,...,n, where (u b ,v b ) is an arbitrary point on the branch plane.

[0111] like Figure 8 As shown, in this embodiment, the depth point set around the overlapping area of ​​the branches and fruits is combined to remove all target fruits with spatial interference between branches and fruits, specifically:

[0112] If and only if at least one point in the two-dimensional plane area of ​​the branch is located in the two-dimensional plane area of ​​the fruit, the following conditions are met:

[0113] So that (u b -x) 2 +(v b -y) 2 <r i 2

[0114] It is considered that the branches and fruits overlap in the plane;

[0115] The two-dimensional curve of the fruit tree trunk β={(u b ,v b )}|b=1,2,...,n, extract the corresponding fruit tree trunk depth point set {D b};

[0116] Among them, (u b ,v b ) is any point on the two-dimensional curve of the fruit tree branch completed in two dimensions. In the corresponding fruit tree branch depth point set {D b}, the depth value of this point is

[0117] The average depth of the fruit tree branches is taken as the effective depth of the branches d b :

[0118]

[0119] Among them, n b To form the depth point set of the fruit tree branches {D b}Number of midpoints;

[0120] The depth value d of the fruit's three-dimensional spherical center picking point is recorded as f , determine the front-to-back spatial relationship between the fruit to be picked and the branches:

[0121] If d f -d b ≤0, the fruit is considered to be in front of the branch, and the branch has no spatial interference with the fruit;

[0122] If d f -d b >0, the fruit is considered to be behind the branch. If |d f -d b |≤10mm, the branches are considered to have spatial interference with the fruit, and the fruit is considered unpickable and removed. On the contrary, if |d f -d b |>10mm, even if the fruit is located behind the branch, it is considered that the branch has no spatial interference with the fruit.

[0123] In this embodiment, the determination of the contact relationship between multiple fruits and the calculation of the contact coefficient are specifically as follows:

[0124] For a complementary two-dimensional plane region A of a fruit that is attached and blocked, and another complementary two-dimensional plane region B of a fruit that is attached and blocked, if and only if the intersection of the two regions is not an empty set, that is:

[0125]

[0126] Then the two fruits are touching each other in the plane area, and we continue to judge the touching relationship between the two fruits in space. Otherwise, the two fruits are not touching each other in space.

[0127] The depth value of the picking point of the two fruits is Z A , Z B The three-dimensional radii of the two fruits are R A , R B ;

[0128] If the difference between the two depth values ​​is greater than the sum of the three-dimensional radii of the two fruits:

[0129] |Z A -Z B |≥R A +R B

[0130] It is believed that the two fruits do not touch each other in space;

[0131] On the contrary, if the difference between the two depth values ​​is less than the sum of the three-dimensional radii of the two fruits:

[0132] |Z A -Z B |<R A +R B

[0133] It is believed that the two fruits are touching each other in space;

[0134] Their collision coefficient is u m :

[0135]

[0136] Among them, S A∩B is the overlapping area of ​​the two-dimensional plane regions of the two fruits, S A∪B It is the sum of the areas of the two fruits' complementary two-dimensional plane regions.

[0137] In this embodiment, the optimal operation sequence sub-method of the spherical fruit robot under the canopy shading condition is specifically as follows:

[0138] For the spherical fruit targets, they are divided into independent fruits and collision fruits according to whether there is collision between the fruits. The queues are F n With F m , prioritize picking independent fruit queue F n When the independent fruit queue is finished, the fruit queue F is picked and touched m ;

[0139] Independent Fruit Queue F n The ranking score of each fruit in n :

[0140]

[0141] Where ω1 is the confidence index weight of the fruit in the independent fruit queue, P n is the confidence index of the fruit, is the canopy depth weight of the independent fruit queue, l n is the depth of the fruit within the canopy;

[0142] According to the ranking score f n Sort from high to low, that is, the next picking target for the current nth fruit is labeled F n+1 =max(f n ), pick all the independent fruit queues in turn;

[0143] Fruit queue F m The ranking score of each fruit in m :

[0144]

[0145] Where ω2 is the confidence index weight of the fruit placed in the fruit queue, P m is the confidence index of the fruit, is the canopy depth weight of the fruit-bearing queue, l m is the depth of the fruit in the canopy, σ is the weight of the collision coefficient, μ m is the collision coefficient;

[0146] According to its ranking score f m Sort from high to low, that is, the next picking target for the current mth fruit is labeled F m+1 =max(f m ) and pick all the fruits in the queue one by one.

[0147] The embodiments are preferred implementations of the present invention, but the present invention is not limited to the above-mentioned implementations. Any obvious improvements, substitutions or modifications that can be made by those skilled in the art without departing from the essential content of the present invention belong to the protection scope of the present invention.

Claims

1. A method for target recognition, segmentation, precise positioning and sequence planning of spherical fruits obscured under dense canopies, characterized in that: The depth camera acquires an RGB image containing the target fruit and the branches of the fruit tree canopy, and the RGB image is passed into the trained target instance segmentation model to perform target recognition and instance segmentation on the spherical fruits and branches in the RGB image, and outputs the mask image of each fruit target and the mask image of each branch target in turn, extracts the edge point set of each fruit in the image coordinate system, and sequentially forms the fruit contour point set, and extracts the edge point set of each branch in the image coordinate system, and sequentially forms the branch contour point set; The fruit contour point set is used to complete the two-dimensional plane of the fruit that is touched and blocked to obtain the completed two-dimensional plane area, and the credibility of the completed two-dimensional plane area is calculated. According to the set threshold, the fruit target that cannot be correctly restored is eliminated, and then according to the depth information in the completed two-dimensional plane area, the depth point set of the spherical fruit is extracted and corrected, and the picking point is estimated to determine the three-dimensional coordinates of the correct picking point of the spherical fruit; Determine the spatial relationship between the fruit to be picked and the branches, use the branch contour point set to complete the two-dimensional branches of the fruit tree canopy, and restore a continuous and complete two-dimensional plane area of ​​the branches. If there is an intersection with the completed two-dimensional plane area, then combine the effective depth value of the branches and the depth value of the three-dimensional spherical center picking point of the fruit to eliminate all target fruits with spatial interference between branches and fruits; next, if it is determined that the completed two-dimensional plane areas of multiple fruits have an intersection, then combine the depth value of the picking point of the fruit to determine whether there is a spatial contact relationship between the fruits. If so, calculate the contact coefficient of the fruit to complete the calculation of the order score of the contact fruit; Independent fruit queues are picked first. When the independent fruit queue is finished, the adjacent fruit queues are picked to complete the picking operation in sequence.

2. The target recognition segmentation, precise positioning and sampling sequence planning method according to claim 1, characterized in that: The two-dimensional plane completion of the fruit that is touched and blocked is performed as follows: For each spherical fruit, three convex hulls are randomly selected from the fruit contour point set, and the minimum circumscribed circle of the three convex hulls is determined, and it is checked whether the minimum circumscribed circle contains all the points of the fruit contour point set. If not, the radius of the minimum circumscribed circle is increased, and three convex hulls are continuously extracted, and the recursive process is continued, and it is iterated repeatedly until the minimum circumscribed circle can contain all the points of the fruit contour point set; The minimum circumscribed circle radius and center at the end of the iteration are used as the estimated radius and center of the two-dimensional area of ​​the fruit respectively, and the constructed two-dimensional plane area is the completed two-dimensional plane area.

3. The target recognition, segmentation, precise positioning and sampling planning method according to claim 2, characterized in that: The credibility of the completed two-dimensional plane region satisfies: Among them, D i To complete the credibility of the two-dimensional plane area, |E i | represents the pixel area of ​​the surface enclosed by the contour points of this type of spherical fruit, r i Represents the estimated radius of the two-dimensional area of ​​the fruit that is touching and obscured.

4. The target recognition segmentation, precise positioning and sampling sequence planning method according to claim 3, characterized in that: The depth point set extraction and deviation correction of the spherical fruit are specifically as follows: Get all the depth points in the two-dimensional plane area. i }, the {D i } is divided into three clusters according to the size of the depth value: foreground obstacles, fruit body and fruit back background. Only the fruit body depth value set {C2} of the blocked fruit is retained, and the effective depth value d of {C2} must satisfy: μ i -2σ i ≤d≤μ i +2σ i , the invalid depth values ​​that do not meet the above conditions are eliminated, and the effective depth point set of the occluded fruit after filtering and correction is {D i '}, where μ i is the mean value of {C2} depth, σ i Indicates the standard deviation of the depth value of the cluster where {C2} is located.

5. The target recognition segmentation, precise positioning and sampling sequence planning method according to claim 4, characterized in that: The picking points of the spherical fruit are speculated to be: The effective depth point cloud of the occluded fruit {D i '} The points contained in the sphere are fitted with geometric sphere features and the 3D inference of the sphere center is performed. The coordinates of the sphere center of the spherical fruit are O i (X i ,Y i ,Z i ) minimizes the error function (E i )satisfy: Respectively (X i ,Y i ,Z i ,R i ) calculate the partial derivative, set the partial derivative to zero, and fit the correct three-dimensional spherical center position O of each fruit i (X i ,Y i ,Z i ), i.e., the picking point; where (X, Y, Z) is any point inside or on the boundary of the spherical fruit, R i is the three-dimensional estimated radius of the sphere of this type of spherical fruit.

6. The target recognition segmentation, precise positioning and sampling sequence planning method according to claim 1, characterized in that: The two-dimensional completion of the branches and trunks of the fruit tree canopy is specifically as follows: For each discrete branch contour point set {m j }, its center point c j (x j ,y j ) as the feature point of this point set, and search for the surrounding radius of 2d j Is there a discrete point set of other branches within the range of {m k }, if it exists, it is considered that {m j } and {m k } belong to the same branch, calculate {m k The center point c of k (x k ,y k ), where d j is the discrete branch contour point set {m j }'s maximum pixel diameter; If the number of feature points is n, all feature points c0, c1, c2…c belonging to the same branch are n The polynomial obtained by high-order polynomial fitting is the two-dimensional completed branch curve of the fruit tree canopy. This curve constitutes a continuous and complete two-dimensional plane area of ​​branches and trunks β = {(u b ,v b )}|b=1,2,...,n, where (u b ,v b ) is an arbitrary point on the branch plane.

7. The target recognition segmentation, precise positioning and sampling sequence planning method according to claim 6, characterized in that: The effective depth value of the branch and the depth value of the three-dimensional spherical center picking point of the fruit are combined to remove all target fruits with spatial interference between branches and fruits, specifically: If and only if at least one point in the two-dimensional plane area of ​​the branch is located in the two-dimensional plane area of ​​the fruit, the following conditions are met: So that (u b -x) 2 +(v b -y) 2 <r i 2 It is considered that the branches and fruits overlap in the plane; among them, r i The estimated radius of the two-dimensional area of ​​the fruit that is in contact with and blocked by the fruit; By comparing the depth value d of the picking point at the three-dimensional spherical center of the fruit f and the effective depth of the branches d b , determine the front-to-back spatial relationship between the fruit to be picked and the branches: If d f -d b ≤0, the fruit is considered to be in front of the branch, and the branch has no spatial interference with the fruit; If d f -d b >0, the fruit is considered to be behind the branch. If |d f -d b |≤10mm, it is considered that the branches have spatial interference with the fruit, and the fruit cannot be picked and is removed. On the contrary, if |d f -d b |>10mm, even if the fruit is located behind the branch, it is considered that the branch has no spatial interference with the fruit.

8. The target recognition segmentation, precise positioning and sampling sequence planning method according to claim 1, characterized in that: Determining the contact relationship between multiple fruits is specifically as follows: For the complementary two-dimensional plane region A of the fruit that is touching and blocked and the complementary two-dimensional plane region B of the fruit that is touching and blocked, if and only if the intersection of the two regions is not an empty set, then the two fruits are touching each other in the plane region, and the touching relationship of the two fruits in space is further determined. Otherwise, the two fruits are not touching each other in space. If the difference in the depth values ​​of the picking points of the two fruits is greater than the sum of the three-dimensional radii of the two fruits, it is considered that the two fruits do not collide in space; conversely, if the difference in the depth values ​​of the picking points of the two fruits is less than the sum of the three-dimensional radii of the two fruits, it is considered that the two fruits do collide in space.

9. The target recognition segmentation, precise positioning and sampling sequence planning method according to claim 8, characterized in that: The sticking coefficient of the fruit is: Among them, u m is the fruit contact coefficient, is the overlapping area of ​​the two fruits’ completed two-dimensional plane regions, It is the sum of the areas of the two fruits' complementary two-dimensional plane regions.

10. The target recognition, segmentation, precise positioning and sampling planning method according to claim 9, characterized in that: For picking of independent fruit queues, firstly score the picking sequence of each fruit in the independent fruit queue f n : Where ω1 is the confidence index weight of the fruit in the independent fruit queue, P n is the confidence index of the fruit in the independent fruit queue, is the canopy depth weight of the independent fruit queue, l n is the depth within the canopy at which fruits within individual fruit cohorts are located; Then according to the ranking score f n Sort from high to low, and pick all the independent fruit queues in turn; For picking the fruit in the fruit queue, firstly score the picking order of each fruit in the fruit queue m : Where ω2 is the confidence index weight of the fruit in the fruit queue, P m is the confidence index of the fruit in the fruit queue, is the depth weight of the canopy layer where the fruit in the fruit-touching queue is located, l m is the depth of the fruit in the canopy where the fruit in the fruit-bumping queue is located, σ is the weight of the bumping coefficient, μ m is the collision coefficient; Then according to the ranking score f m Sort from high to low, and pick all the fruits in the queue one by one.

Citation Information

Patent Citations

  • Method for precisely recognizing fruits covered by branches and leaves

    CN103295018A

  • Precise recognition method of overlapped shielded fruits

    CN103310218A

  • Fruit picking sequence planning method based on visual selection attention mechanism

    CN112136505A

  • Method and system for determining grabbing obstacle avoidance direction of mechanical arm of picking robot

    CN114260895A

  • Robot for picking cluster-shaped fruits

    CN116267236A

Cited By

  • Manipulator motion control method for actively searching shielding target

    CN119501939A

  • Double-arm intelligent collaborative tea picking method and device based on multi-strategy dynamic scheduling

    CN120753093A

  • Picking robot adaptive control method based on depth vision semantic segmentation

    CN122143051A

  • Multi-view target active perception method and system based on multi-modal information fusion

    CN123015599A