Fresh plum picking and grading robot and picking method
By designing a new plum picking and grading robot, using the three-level screening system of the end-effector's envelope shearing picking and grading screening mechanism, the problems of low picking efficiency and easy fruit damage in the existing technology have been solved, and an efficient, automatic New plum picking and sorting have improved fruit quality and picking efficiency.
Patent Information
- Application Number
- CN202411028235.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-30
AI Technical Summary
Existing new plum picking robots have problems such as complex structure, high cost, and easy damage to fruits during the picking process. They are also unable to complete picking and sorting at the same time, resulting in low picking efficiency and damage to fruit quality.
A new plum picking and grading robot is designed, including a base support mechanism, a collection box, a grading and screening mechanism, a picking mechanical arm, an end effector and a visual recognition system. Through the envelope shearing mode and grading screening mechanism of the end effector The three-level screening system realizes automatic picking and sorting, avoids manual screening, improves picking efficiency and protects the fruits.
It improves the efficiency of picking new plums and the quality of the fruits, avoids damage to the fruits during the picking process and quality effects in the subsequent screening process, and significantly improves the automation level of fruit identification and detection.
Smart Images

Figure CN118786831A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of fruit picking, and in particular to a new plum picking and grading robot and a picking method. Background Art
[0002] New plum is a fruit with rich nutrition and unique taste. It is known as the third generation functional fruit. It is rich in vitamin A, vitamin B, vitamin C, etc. which are essential for the body's immune system and metabolism, as well as calcium, iron, zinc, potassium and other minerals that help bone health, blood circulation, and cell function.
[0003] At present, Kashgar, Xinjiang is one of the main distribution and production areas of new plum planting resources and fruits in my country; due to the large difference in the maturity period of new plum fruits and the strict requirements on the quality of fruits during the harvesting process, the new plum harvesting process still mainly relies on manual selective picking. This picking method has high labor intensity, low picking efficiency and high picking cost. Secondly, it requires high professional experience of the pickers, which can easily cause the new plum to miss the best harvesting period and seriously affect the yield and quality of the new plum harvest. With the popularization of mechanized and automated agriculture, some areas are gradually using robots for new plum picking, which can effectively reduce labor costs and labor intensity and improve picking effects; however, due to the particularity of new plum fruits (i.e., the large difference in fruit maturity period) and tenderness, most of the existing new plum picking robots have complex structures, high picking costs, easy damage to fruits during picking, inability to complete picking and screening separation at the same time, and still need manual separation. The efficiency of new plum picking cannot be maximized, and it is also easy to increase the fruit defect rate during the picking process. Summary of the invention
[0004] In view of the problems existing in the above-mentioned prior art, the purpose of the present invention is to provide a new plum picking and grading robot, which can realize automatic picking and sorting during the new plum picking process, thereby effectively improving the picking efficiency and avoiding the unnecessary steps of screening before and after picking; at the same time, the robot can effectively protect the new plum fruits during the picking process, avoid damage to the new plum fruits caused by picking, and ensure the quality of the fruit while improving the picking efficiency.
[0005] Another object of the present invention is to provide a picking method for the above-mentioned new plum picking and grading robot.
[0006] A new plum picking and grading robot comprises a base support mechanism, a collecting box, a grading and screening mechanism, a picking mechanical arm, an end effector, a storage mechanism and a visual recognition system; the collecting box is arranged at the front end of the base support mechanism, and comprises a good fruit collection slot and a bad fruit collection slot; the grading and screening mechanism and the picking mechanical arm are respectively arranged on the end surface of the base support mechanism, and the end effector is arranged at the end of the picking mechanical arm away from the base support mechanism, the storage mechanism is arranged on the end surface of the base support mechanism and the storage mechanism is respectively connected with the end effector and the grading and screening mechanism; the visual recognition system comprises a positioning binocular camera and two identification binocular cameras, the positioning binocular camera is arranged on the end effector, and the identification binocular camera corresponding to the grading and screening mechanism is arranged on the end surface of the base support mechanism.
[0007] Based on further optimization of the above scheme, the base support mechanism includes a chassis, support studs, connecting plates, track wheels and tracks. A plurality of evenly distributed vertical support studs are arranged on the end face of the chassis and the end of the support studs away from the chassis is connected to the same connecting plate. Two track wheels are arranged on the side surfaces of the chassis respectively and the two track wheels on the same side are connected by tracks. A bad fruit collection groove is arranged between the chassis and the connecting plate, and a good fruit collection groove is arranged at the front end of the chassis and the good fruit collection groove is fixedly connected to the bad fruit collection groove.
[0008] Based on the further optimization of the above scheme, the grading and screening mechanism includes a screening disc, a first baffle, a first slide, a second baffle, a bad fruit slide, a good fruit slide and a second slide. The screening disc is fixedly arranged on the end face of the connecting plate and is a conical structure with a large diameter at the upper part and a small diameter at the lower part. A coaxial rotating shaft is arranged in the middle of the screening disc and a first baffle is arranged on the outer wall of the rotating shaft, and the rotation of the first baffle in the screening disc is realized by the rotating shaft. A discharge port is provided on the side of the screening disc close to the good fruit collecting trough and the discharge port is provided. A first slide is arranged at the opening, and the first slide is an inclined track structure inclined from the screening disc to the good fruit collecting trough; the end of the first slide away from the screening disc is connected with the good fruit slide, and a bad fruit slide is arranged on the side of the first slide away from the end of the screening disc, and a second baffle is rotatably arranged at the connection between the good fruit slide and the bad fruit sliding block, and a discharge hole is provided at the connecting plate at the end of the bad fruit slide away from the first slide, and the discharge hole corresponds to the bad fruit collecting trough; the end of the good fruit slide away from the first slide is connected with the second slide arranged in the good fruit collecting trough.
[0009] Based on the further optimization of the above scheme, the end actuator includes a fixed box, a driving motor, a first gear, a second gear, a first rack, a first protective ring, a second rack, an extrusion plate and a second protective ring. The fixed box is arranged at the end of the picking robot arm away from the base support mechanism and the driving motor is arranged at the bottom of the inner cavity of the fixed box. The gear shaft is coaxially arranged on the output shaft of the driving motor, and the end of the gear shaft away from the driving motor is rotatably connected to the top surface of the inner cavity of the fixed box; the outer wall of the gear shaft is sequentially sleeved with the first gear and the second gear from bottom to top, the inner wall of one side of the fixed box is slidably arranged with the first rack corresponding to the first gear, and the end of the first rack away from the picking robot arm is arranged with the first gear through a sliding support. A protective ring, an end of the first protective ring away from the first rack penetrates the corresponding side wall of the fixed box and is slidably connected, a separation block is set on the top surface of one end of the first protective ring away from the fixed box, and a separation groove with a built-in separation blade is opened on the side surface of the separation block close to the fixed box; a second rack is slidably set on the inner wall of the other side of the fixed box (that is, the inner wall on the side opposite to the first rack) and corresponding to the second gear, an end of the second rack close to the first protective ring penetrates the corresponding side wall of the fixed box and is provided with an extrusion plate, and a top block is set on the side surface of the extrusion plate close to the separation block corresponding to the separation groove; a second protective ring is fixedly set on the outer wall of the fixed box and located at the lower side of the first protective ring, and the second protective ring is set parallel to the first protective plate.
[0010] In order to ensure smooth cutting of the end actuator, based on further optimization of the above scheme, a limit rod is set on the side of the extrusion plate away from the top block and on one side of the first rack, the limit rod passes through the corresponding side wall of the fixed box and a limit block is set on the side of the limit rod away from the extrusion plate.
[0011] Based on further optimization of the above solution, the first protective ring and the second protective ring both include an inner ring and an outer ring, the inner ring is made of plastic, and the outer ring is made of biopolymer material.
[0012] Based on further optimization of the above scheme, the storage mechanism includes a connecting hose, a buffer mechanism, a transition collection box and a guide chute. The transition collection box is fixedly arranged on the end face of the base support mechanism and is located on one side of the screening disc. The distance between the bottom surface of the transition collection box and the end face of the base support mechanism is greater than the distance between the top surface of the screening disc and the end face of the base support mechanism (that is, the height of the transition collection box is greater than the height of the screening disc). One end of the connecting hose is arranged on the bottom surface of the second protective ring and is connected to the inner circle of the second protective ring, and the other end is connected to the side surface of one side of the transition collection box. A buffer mechanism is arranged at the connection between the connecting hose and the transition collection box (for example: buffering is performed by evenly distributed rubber bosses); a guide chute is arranged on the side surface of the transition collection box close to the screening disc, and the guide chute is an inclined chute inclined from the transition collection box to the screening disc.
[0013] Based on further optimization of the above scheme, the bottom surface of the inner cavity of the transition collecting box is set as an inclined structure inclined from the transition collecting box to the screening disc (the inclination degree of the inclined structure is consistent with the inclination degree of the guide chute) and the inner cavity wall of the transition collecting box is evenly paved with a sponge buffer layer.
[0014] A picking method using the new plum picking and grading robot comprises: Step S1, identification and positioning: by positioning the binocular camera at a distant point from the new plum fruit and scanning in a horizontal posture, a distant new plum fruit image is obtained, and the image is segmented and the target is identified; Step S2, new plum fruit cluster selection: using a target tracking algorithm to track the target new plum fruit and identify the number of mature new plum fruits; when the number of mature new plum fruits in the same cluster exceeds 60% of the total number of fruits in the cluster, the cluster is marked as the target new plum fruit cluster; Step S3, picking point positioning: select the lowest point of the target new plum fruit cluster as the picking point reference position, and move down 3 to 5 cm in the longitudinal direction of the fruit along the lowest end of the picking point reference position to obtain the picking point; Step S4, fruit picking: the picking robot arm is gradually moved according to the picking point, and the new plum fruit is further identified and positioned in the near field; when the end actuator reaches the picking point, the relative distance between the picking point and the upper edge of the new plum fruit (i.e., the top of the new plum fruit) is obtained, and 3 to 5 cm is added in the longitudinal direction as a basis to obtain the end point of the end actuator; the end actuator moves from bottom to top according to the picking point and the end point, realizes the enveloping and shearing separation of the new plum fruit, and completes the picking; Step S5, screening and collection of fruits: the picked fruits fall into the grading and screening mechanism through the storage mechanism, and after screening by the grading and screening mechanism, good fruits and bad fruits are separated and collected in the good fruit collection slot and the bad fruit collection slot respectively.
[0015] Based on the further optimization of the above solution, the step S1 is specifically as follows: Step S11, first, calculate the histogram of the input image to obtain the frequency distribution of each pixel value in the image; and sample the target image, divide its histogram interval into M sub-intervals, and set the width of each sub-interval to U; then, map the image grayscale value to each sub-interval, and calculate the pixel frequency in each sub-interval; Step S12: First, calculate the grayscale distribution of all pixel values in each subinterval, obtain the grayscale mean in each subinterval, and calculate the intra-class variance of each subinterval to indicate the degree of dispersion of pixel values in the interval; then, traverse all possible thresholds, calculate the intra-class variance corresponding to each threshold, and select the threshold that maximizes the intra-class variance as the optimal threshold; Step S13, dividing the image into two regions, foreground and background, according to the optimal threshold: the region greater than the optimal threshold is the foreground, and the region less than the optimal threshold is the background, thereby separating the target image from the background; Step S14: Use grayscale morphology to optimize the segmented image, achieve image segmentation and recognition, and divide and locate the segmented image sub-intervals.
[0016] Based on the further optimization of the above scheme, the target tracking algorithm is used in step S2 to track the target new plum fruits and identify the number of mature new plum fruits as follows: Step S21: First, target detection is applied to detect candidate targets from the video frame, and a bounding box and a confidence score of each selected target are obtained; then the detected candidate targets are grouped according to their temporal and spatial correlations, and the degree of overlap between two candidate targets is measured; Step S22, matching the detection result of the current frame with the trajectory of the previous frame, and using the Hungarian algorithm to obtain the matching method with the minimum cost, the cost includes calculations based on factors such as distance, speed, and confidence, to complete the initial matching; for candidate targets that do not exist in the previous trajectory matching, perform a secondary match with the nearest trajectory; Step S23: Generate a new trajectory based on the matching result, each generated trajectory includes a series of bounding boxes and corresponding confidence scores; then, use the Kalman filter to predict the trajectory position of the next frame, and modify the predicted trajectory based on the new detection result; Step S24, pre-set the confidence score threshold interval, compare the confidence score in the trajectory with the confidence score threshold interval, the lower limit close to the confidence score threshold interval is high maturity, and the upper limit close to the confidence score threshold interval is low maturity, so as to distinguish the maturity of the fruit; then, filter the trajectory according to the trajectory length and confidence score, remove unstable and unreasonable trajectories, and obtain the number of fruits.
[0017] Based on further optimization of the above solution, the confidence score threshold interval is [0, 1].
[0018] Based on further optimization of the above scheme, the method for obtaining the lowest point of the new plum fruit position in step S3 is: First, through multi-view image acquisition, images of different viewpoints are obtained respectively; then, feature points are extracted from two or more images to find the feature point pairs corresponding to the same target point (i.e., the lowest point of the new plum fruit); then, for each matching feature point pair, the three-dimensional point cloud is calculated by triangulation to obtain the spatial coordinates of the target point, where the triangulation depth d for:
[0019] Where: f represents the focal length of the camera, b Represents the distance between images from different perspectives, Represents the angle between images from different viewpoints.
[0020] Based on the further optimization of the above scheme, the further identification and positioning of the new plum fruit in the near field in step S4 is specifically as follows: First, the SVM algorithm is used to obtain an optimal classification hyperplane, a model is established, and a hyperplane linear equation is defined to divide the sample data into two categories.
[0021] Where: w represents the weight vector; X Represents a hyperplane, and its direction is perpendicular to the hyperplane X is the sample data point; b represents the bias term, which determines the distance between the hyperplane and the origin; Then, the Lagrange multiplier method is used to solve the hyperplane linear equation to obtain the weight vector w With the bias term b ; After that, any two variables are selected for optimization in an iterative manner to achieve model optimization; Finally, the weight vector and bias term are used to classify the data, the distance from the data point to the hyperplane is calculated, and the category is determined based on the positive and negative. The classification linear equation is:
[0022] Where: sign() The function range predicts the class of the label as -1 or 1; The decision function is used to determine the category of pixels in the image to complete image segmentation and target recognition and positioning.
[0023] Based on further optimization of the above scheme, the method for obtaining the upper edge of the new plum fruit (i.e., the top of the new plum fruit) in step S4 is: First, obtain the two-dimensional coordinates of the corresponding feature points in the image ( u,v ) and the depth information D of the two-dimensional coordinates; then, the three-dimensional coordinates of the feature point are calculated:
[0024] Where: fx , fy represents the focal length of the camera, xx , cy Represents the coordinates of the camera's principal point.
[0025] Based on the further optimization of the above scheme, the discrimination method for screening new plum fruits by the grading and screening mechanism in step S5 is: Step S51, data collection: collecting a data set containing various new plum fruit images and their corresponding labels; wherein the data set covers different task labels, including fruit size, presence or absence of cracks, presence or absence of damage, presence or absence of fruit stalks, etc.; Step S52, setting the fruit size as a regression problem, and labeling it as the size of the new plum fruit: by calculating the minimum circumscribed rectangle of the fruit image, obtaining the maximum longitudinal and transverse diameters of the fruit, and comparing the average data (the average data is obtained through a large amount of experimental data), determine whether the fruit size meets the standard; setting the presence or absence of cracks as a binary classification problem, labeling it as 1 for cracks and 0 for no cracks, setting the presence or absence of damage as a binary classification problem, labeling it as 1 for damage and 0 for no damage, and setting the presence or absence of fruit stalks as a binary classification problem, labeling it as 1 for fruit stalks and 0 for no fruit stalks.
[0026] Step S53, model design: adopt the ResNet neural network model as the screening model, select the first four ResNet Blocks of the ResNet neural network model as the shared convolution layer, and use them to extract the features of the input image; after the shared convolution layer, set a plurality of task-specific branches, each branch processes a specific task, and each task-specific branch is composed of a plurality of convolution layers and fully connected layers, and is optimized for different tasks respectively; Step S54: Use the data set containing multi-task labels to perform screening model training, and provide corresponding labels for each task during the training process.
[0027] Step S55: After the training is completed, the performance of the screening model is evaluated using the validation set to complete the training.
[0028] The following are the technical effects of the solution of the present invention: The present application adopts an end actuator composed of a fixed box, a driving motor, a first gear, a second gear, a first rack, a first protective ring, a second rack, an extrusion plate and a second protective ring to realize a picking mode that envelops the fruit from bottom to top and completes the cutting. First, it can realize the separation of target fruits and non-target fruits, so as to accurately grasp a single target fruit and improve the picking efficiency; second, it avoids the damage of non-target fruits caused by the end actuator during the picking process, so that the non-target fruits are located outside the picking area, thereby ensuring the overall quality of fruits in the same cluster; third, it avoids the influence of the surrounding environment on the target fruits during the picking process, thereby realizing stable and damage-free fruit picking, avoiding deviations in the picking process and causing damage to the fruit, and ensuring the integrity and quality of the fruit; fourth, it ensures the overall flexibility of the end actuator to avoid affecting the fruit cluster during its movement, thereby affecting the positioning and accuracy of the picking process, and causing problems such as missed picking and wrong picking. Through the grading and screening mechanism composed of a screening disc, a first baffle, a first slide, a second baffle, a bad fruit slide, a good fruit slide and a second slide, in cooperation with the terminal actuator, the purpose of picking and screening the fruits can be achieved, avoiding the need for additional manual screening after picking, and improving efficiency while also avoiding damage to the fruits caused by subsequent screening processes. At the same time, the grading and screening mechanism adopts a three-level screening system to realize the identification and screening of qualified fruits and unqualified fruits, which can effectively avoid the problem of good fruits being mixed with bad fruits and affecting the overall quality.
[0029] In addition, according to the growth characteristics of new plum fruits, this application adopts the method of long-range recognition and positioning and target tracking in combination with close-range recognition and positioning to complete the setting of the optimal working path. The entire method has good accuracy and high stability, can effectively save working time, and improve the work efficiency of picking. Combined with the structural design of the terminal actuator, it can efficiently pick new plum fruits while avoiding damage to the new plum fruits and surrounding fruits, and avoid problems such as wrong picking and missed picking, thereby significantly improving the automation level of fruit recognition and detection; and through comprehensive coverage of data, precise labeling, optimization of model structure, synchronous training and performance verification for fruit screening, it can accurately and efficiently screen bad fruits from good fruits to ensure the quality of the picked fruits. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 Schematic diagram of the overall structure of the picking and grading robot in an embodiment of the present invention.
[0031] Figure 2 It is a structural schematic diagram of the base support mechanism of the picking and grading robot in an embodiment of the present invention.
[0032] Figure 3 The figure is a top view of the picking and grading robot in an embodiment of the present invention.
[0033] Figure 4It is a structural schematic diagram of the end effector mechanism of the picking and grading robot in an embodiment of the present invention.
[0034] Figure 5 for Figure 4 AA section view.
[0035] Figure 6 The figure is a workflow diagram of the picking and grading robot in an embodiment of the present invention.
[0036] Among them, 10, base support mechanism; 11, chassis; 12, support studs; 13, connecting plate; 130, feeding hole; 14, track wheel; 15, track; 21, good fruit collection trough; 22, bad fruit collection trough; 31, screening disc; 32, first baffle; 33, first slide; 34, second baffle; 35, bad fruit slide; 36, good fruit slide; 37, second slide; 40, picking mechanical arm; 50, end actuator; 51, fixed Box body; 52, driving motor; 520, gear shaft; 53, first gear; 54, second gear; 55, first rack; 56, first protective ring; 561, separation block; 562, sliding support; 57, second rack; 58, extrusion plate; 581, top block; 582, limit rod; 59, second protective ring; 61, connecting hose; 62, transition collection box; 63, guide slide; 71, positioning binocular camera; 72, identifying binocular camera. DETAILED DESCRIPTION
[0037] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.
[0038] Embodiment 1: A new plum picking and grading robot, such as Figure 1 As shown: it includes a base support mechanism 10, a collection box, a grading and screening mechanism, a picking robot arm 40, an end actuator 50, a storage mechanism and a visual recognition system; Figure 2 As shown: the base support mechanism 10 includes a chassis 11, support studs 12, a connecting plate 13, a track wheel 14 and a track 15. The end surface of the chassis 11 is provided with a plurality of evenly distributed vertical support studs 12 (combined with Figure 1 and Figure 2 As shown, the number of the support studs 12 is set according to the actual situation. In this embodiment, eight support studs 12 are used, and the end of the support studs 12 away from the chassis 11 is connected to the same connecting plate 13 (see Figure 2 As shown, the connecting plate 13 is arranged parallel to the chassis 11), and the two sides of the chassis 11 (i.e. Figure 2Two track wheels 14 are respectively arranged on the front and rear sides (shown in the figure), and the two track wheels 14 on the same side are connected by a track 15. The collection box is arranged at the front end (i.e. Figure 1 The lower right side shown) and it is located between the chassis 11 and the connecting plate 13 (combined Figure 1 and Figure 2 As shown), it includes a good fruit collecting groove 21 and a bad fruit collecting groove 22, wherein the bad fruit collecting groove 22 is arranged between the chassis 11 and the connecting plate 13, the good fruit collecting groove 21 is arranged at the front end of the chassis 11, and the good fruit collecting groove 21 and the bad fruit collecting groove 22 are fixedly connected.
[0039] The grading and screening mechanism and the picking mechanical arm 40 are respectively arranged on the end surface of the base support mechanism (specifically the connecting plate 13), and combined with Figure 1 and Figure 3 As shown, the grading and screening mechanism includes a screening disc 31, a first baffle 32, a first slide 33, a second baffle 34, a bad fruit slide 35, a good fruit slide 36 and a second slide 37. The screening disc 31 is fixedly arranged on the end surface of the connecting plate 13 by a bracket and is a conical structure with a large diameter at the upper part and a small diameter at the lower part (that is, the longitudinal section of the screening disc is an inverted isosceles trapezoidal structure); a coaxial rotating shaft is arranged in the middle of the screening disc 31 and a first baffle 32 is arranged on the outer wall of the rotating shaft, and the first baffle 32 is rotated in the screening disc 31 by the rotating shaft (the rotating shaft can be driven to rotate by a motor arranged at the bottom of the screening disc 31, thereby driving the first baffle 32 to rotate around the central axis of the rotating shaft); the side of the screening disc 31 close to the good fruit collecting tank 21 (that is Figure 3 The right side of the figure shows a discharge port and a first slide 33 is arranged at the discharge port. The first slide 33 is a path from the screening disc 31 to the good fruit collecting tank 21 (i.e., from the screening disc 31 to the good fruit collecting tank 21). Figure 3 The first slide 33 is connected to the good fruit slide 36 at one end away from the screening disc 31 and the side of the first slide 33 away from the screening disc 31 is provided with a bad fruit slide 35 (reference Figure 1 , Figure 3 As shown in the figure, a second baffle 34 is rotatably arranged at the connection point (inner wall of the corner) between the good fruit slide 36 and the bad fruit slider 35 (the second baffle 34 can be driven to rotate by a motor arranged on the outer wall of the slide), and a discharge hole 130 is provided at one end of the bad fruit slide 35 away from the first slide 33, and the discharge hole 130 corresponds to the bad fruit collection tank 22; the end of the good fruit slide 36 away from the first slide 33 is connected to the second slide 37 arranged in the good fruit collection tank 21 (combined with Figure 1 and Figure 3 as shown).
[0040] The picking robot arm 40 adopts a multi-axis robot arm commonly used in the art, generally with 3 to 6 axes, see Figure 1As shown, a six-axis robotic arm is used in this embodiment.
[0041] The end actuator 50 is arranged at one end of the picking robot arm 40 away from the base support mechanism 10, and the end actuator includes a fixed box 51, a drive motor 52, a first gear 53, a second gear 54, a first rack 55, a first protective ring 56, a second rack 57, an extrusion plate 58 and a second protective ring 59. The fixed box 51 is arranged at one end of the picking robot arm 40 away from the base support mechanism 10 and the drive motor 52 is arranged at the bottom of the inner cavity of the fixed box 51 (see Figure 4 As shown, the output shaft of the driving motor 52 is coaxially provided with a gear shaft 520, and the end of the gear shaft 520 away from the driving motor 52 is rotatably connected to the top surface of the inner cavity of the fixed box 51; the outer wall of the gear shaft 520 is sequentially (fixedly) sleeved with the first gear 53 and the second gear 54 from bottom to top, and the inner wall of one side of the fixed box 51 is slidably provided with a first rack 55 corresponding to the first gear 53 (see Figure 5 As shown, in this embodiment, a first rack 55 is arranged on the upper side of the fixed box body 51, and a first protective ring 56 is arranged on the end of the first rack 55 away from the picking robot arm 40 through a sliding support 562 (the end of the sliding support 562 away from the first rack 55, i.e. Figure 4 The lower end shown is slidably connected to the corresponding inner wall of the fixed box body 51, so as to realize the stable sliding of the first protective ring 56), the end of the first protective ring 56 away from the first rack 55 passes through the corresponding side wall of the fixed box body 51 and is slidably connected, and a separation block 561 is provided on the top surface of the end of the first protective ring 56 away from the fixed box body 51 (that is, the end located outside the fixed box body 51), and a separation groove with a built-in separation blade is provided on the side surface of the separation block 561 close to the fixed box body 51 (such as Figure 4 The inner wall of the other side of the fixed box 51 (ie, the inner wall opposite to the first rack 55, as shown); Figure 5 The lower side wall of the fixed box body 51 is shown) and a second rack 57 is slidably arranged corresponding to the second gear 54 (see Figure 5 As shown, the length of the second rack 57 is greater than that of the first rack 55), one end of the second rack 57 close to the first protective ring 56 penetrates the corresponding side wall of the fixed box 51 and is provided with an extrusion plate 58, and a top block 581 is provided on the side surface of the extrusion plate 58 close to the separation block 561 and corresponds to the separation groove. In order to ensure smooth cutting of the end actuator 50, a limit rod 582 is provided on the side surface of the extrusion plate 58 away from the top block 581 and located on one side of the first rack 55 (as shown in FIG. Figure 5As shown in the figure, the limiting rod 582 penetrates the corresponding side wall of the fixed box 51 and a limiting block is set on the side of the limiting rod 582 away from the extrusion plate 58; the second protective ring 59 is fixedly set on the outer wall of the fixed box 51 and located below the first protective ring 56, and the second protective ring 59 is set parallel to the first protective plate 56. The first protective ring 56 and the second protective ring 59 both include an inner ring and an outer ring, the inner ring is made of plastic, and the outer ring is made of biopolymer material (plastic and biopolymer materials can be common materials in the field).
[0042] The storage mechanism is arranged on the end surface of the base support mechanism 10 (specifically the connecting plate 13) and the storage mechanism is connected to the end actuator 50 and the grading and screening mechanism respectively; Figure 1 As shown, the storage mechanism includes a connecting hose 61, a buffer mechanism, a transition collection box 62 and a guide chute 63. The transition collection box 62 is fixedly arranged on the end surface of the base support mechanism 10 (i.e., the connecting plate 13) through a bracket and is located on one side of the screening disc 31. The distance between the bottom surface of the transition collection box 62 and the end surface of the base support mechanism 10 is greater than the distance between the top surface of the screening disc 31 and the end surface of the base support mechanism 10 (i.e., the height of the transition collection box 62 is greater than the height of the screening disc 31 ... Figure 1 As shown in the figure, one end of the connecting hose 61 is arranged on the bottom surface of the second protective ring 59 and is connected to the inner circle of the second protective ring 59, and the other end is connected to the side of one side of the transition collection box 62, and a buffer mechanism is arranged at the connection between the connecting hose 61 and the transition collection box 62 (for example: buffering by evenly distributed rubber bosses or other similar methods, which are not specifically limited in this application and can be set by technicians in this field according to actual conditions); a guide chute 63 is arranged on the side of the transition collection box 62 close to the screening disc 31, and the guide chute 63 is an inclined chute inclined from the transition collection box 62 to the screening disc 31. The bottom surface of the inner cavity of the transition collection box 62 is arranged as an inclined surface structure inclined from the transition collection box 62 to the screening disc 31 (the inclination degree of the inclined surface structure is consistent with the inclination degree of the guide chute 63), and the inner cavity wall of the transition collection box 62 is evenly paved with a sponge buffer layer (to avoid damage to the skin of the falling fruit).
[0043] The visual recognition system includes a positioning binocular camera 71 and two identification binocular cameras 72. The positioning binocular camera 71 is set on the end actuator 50 (specifically, the top surface of the fixed box 51), and the identification binocular camera 72 is set on the end surface of the base support mechanism 10 corresponding to the grading screening mechanism (specifically: the identification binocular camera 72 is set on the upper and lower sides of the screening disc 31, and the screening disc 31 is made of transparent material, such as Figure 1 as shown).
[0044] Embodiment 2: As a preferred embodiment of the present invention, a picking method using the new plum picking and grading robot as described in Example 1 comprises: Step S1, identification and positioning: by positioning the binocular camera 71 at a distant point from the new plum fruit and scanning in a horizontal posture, a distant new plum fruit image is obtained, and the image is segmented and the target is identified, specifically: Step S11, first, calculate the histogram of the input image to obtain the frequency distribution of each pixel value in the image; and sample the target image, divide its histogram interval into M sub-intervals, and set the width of each sub-interval to U; then, map the image grayscale value to each sub-interval, and calculate the pixel frequency in each sub-interval; Step S12: First, calculate the grayscale distribution of all pixel values in each subinterval, obtain the grayscale mean in each subinterval, and calculate the intra-class variance of each subinterval to indicate the degree of dispersion of pixel values in the interval; then, traverse all possible thresholds, calculate the intra-class variance corresponding to each threshold, and select the threshold that maximizes the intra-class variance as the optimal threshold; Step S13, dividing the image into two regions, foreground and background, according to the optimal threshold: the region greater than the optimal threshold is the foreground, and the region less than the optimal threshold is the background, thereby separating the target image from the background; Step S14, optimizing the segmented image using grayscale morphology (grayscale morphology may be conventional technology in the art and is not specifically limited in this embodiment), achieving image segmentation and recognition, and dividing and locating the segmented image sub-intervals.
[0045] Step S2, new plum fruit cluster selection: Use a target tracking algorithm to track the target new plum fruit and identify the number of mature new plum fruits, specifically: Step S21: First, target detection is applied to detect candidate targets from the video frame, and a bounding box and a confidence score of each selected target are obtained; then the detected candidate targets are grouped according to their temporal and spatial correlations, and the degree of overlap between two candidate targets is measured; Step S22, matching the detection result of the current frame with the trajectory of the previous frame, and using the Hungarian algorithm to obtain the matching method with the minimum cost (the conventional Hungarian algorithm in the art can be used), the cost includes calculations based on factors such as distance, speed, and confidence, and completes the initial matching; for candidate targets that do not exist in the previous trajectory matching, perform a secondary match with the nearest trajectory; Step S23: Generate a new trajectory based on the matching result, each generated trajectory includes a series of bounding boxes and corresponding confidence scores; then, use the Kalman filter to predict the trajectory position of the next frame, and modify the predicted trajectory based on the new detection result; Step S24, pre-set the confidence score threshold interval, compare the confidence score in the trajectory with the confidence score threshold interval, in this embodiment, the confidence score threshold interval is [0,1], close to the lower limit of the confidence score threshold interval is high maturity, close to the upper limit of the confidence score threshold interval is low maturity (that is, the closer to 0, the higher the maturity, the closer to 1, the lower the maturity), to achieve the distinction of fruit maturity; then, according to the trajectory length and confidence score, the trajectory is screened, and unstable and unreasonable trajectories are removed to obtain the number of fruits.
[0046] When the number of mature new plum fruits in the same cluster exceeds 60% of the total number of fruits in the cluster, the cluster is marked as the target new plum fruit cluster.
[0047] Step S3, picking point positioning: select the lowest point of the target new plum fruit cluster as the picking point reference position, and move down 3 to 5 cm in the longitudinal direction of the fruit along the lowest end of the picking point reference position to obtain the picking point; The method for obtaining the position of the lowest point of the new plum fruit is as follows: first, through multi-view image acquisition, images of different viewpoints are obtained respectively; then, feature points are extracted from two or more images to find feature point pairs corresponding to the same target point (i.e., the lowest point of the new plum fruit); then, for each matching feature point pair, the three-dimensional point cloud is calculated by triangulation to obtain the spatial coordinates of the target point, wherein the triangulation depth d for:
[0048] Where: f represents the focal length of the camera, b Represents the distance between images from different perspectives, Represents the angle between images from different viewpoints.
[0049] Step S4, fruit picking: according to the picking point (i.e., the sub-area corresponding to the picking point), the picking robot arm 40 is gradually moved to further identify and locate the new plum fruit in the near field (by positioning the binocular camera 71), specifically: First, the SVM algorithm is used to obtain an optimal classification hyperplane, a model is established, and a hyperplane linear equation is defined to divide the sample data into two categories.
[0050] Where: w represents the weight vector; X Represents a hyperplane, and its direction is perpendicular to the hyperplane X is the sample data point; b represents the bias term, which determines the distance between the hyperplane and the origin; Then, the Lagrange multiplier method is used to solve the hyperplane linear equation to obtain the weight vector w With the bias term b ; After that, any two variables are selected for optimization in an iterative manner to achieve model optimization; Finally, the weight vector and bias term are used to classify the data, the distance from the data point to the hyperplane is calculated, and the category is determined based on the positive and negative. The classification linear equation is:
[0051] Where: sign() The function range predicts the class of the label as -1 or 1; The decision function is used to determine the category of pixels in the image to complete image segmentation and target recognition and positioning.
[0052] When the end effector 50 reaches the picking point, the relative distance between the picking point and the upper edge of the new plum fruit (i.e., the apex of the new plum fruit) is obtained, and 3 to 5 cm is added to the longitudinal direction as a basis to obtain the end point of the end effector 50; wherein, the method for obtaining the upper edge of the new plum fruit (i.e., the apex of the new plum fruit) is as follows: First, obtain the two-dimensional coordinates of the corresponding feature points in the image ( u,v ) and the depth information D of the two-dimensional coordinates; then, the three-dimensional coordinates of the feature point are calculated:
[0053] Where: fx , fy represents the focal length of the camera, xx , cy Represents the coordinates of the camera's principal point.
[0054] The end actuator 50 moves from bottom to top according to the picking point and the end point, so as to achieve the enveloping and shearing separation of the new plum fruit and complete the picking. Specifically, the picking robot arm 40 controls the end actuator 50 to move from bottom to top, so that the target fruit to be picked passes through the first protection ring 56 and the second protection ring 59 from top to bottom in sequence until the end actuator 50 reaches the end point; then, the drive motor 52 rotates, and the gear shaft 520 drives the first gear 53 and the second gear 54 to rotate at the same time, and the first rack 55 drives the first protection ring 56 to move to the end point. Figure 5 The second rack 56 drives the extrusion plate 58 to slide to the left in the direction shown. Figure 5 The separating blade 581 slides to the right in the direction shown, thereby holding the fruit stalk and cutting off the fruit stalk through the cross-extrusion action of the separation blade and the top block 581. The cut fruit falls into the screening disc 31 through the connecting hose 61, the transition collection box 62, and the guide chute 63.
[0055] Step S5, screening and collection of fruits: the picked fruits fall into the grading and screening mechanism through the storage mechanism, and after screening by the grading and screening mechanism, good fruits and bad fruits are separated and collected in the good fruit collection slot 21 and the bad fruit collection slot 22 respectively.
[0056] The classification and screening agency uses the following method to screen new plum fruits: Step S51, data collection: collecting a data set containing various new plum fruit images and their corresponding labels; wherein the data set covers different task labels, including fruit size, presence or absence of cracks, presence or absence of damage, presence or absence of fruit stalks, etc.; Step S52, setting the fruit size as a regression problem, and labeling it as the size of the new plum fruit: by calculating the minimum circumscribed rectangle of the fruit image, obtaining the maximum longitudinal and transverse diameters of the fruit, and comparing the average data (the average data is obtained through a large amount of experimental data), determine whether the fruit size meets the standard; setting the presence or absence of cracks as a binary classification problem, labeling it as 1 for cracks and 0 for no cracks, setting the presence or absence of damage as a binary classification problem, labeling it as 1 for damage and 0 for no damage, and setting the presence or absence of fruit stalks as a binary classification problem, labeling it as 1 for fruit stalks and 0 for no fruit stalks.
[0057] Step S53, model design: adopt the ResNet neural network model as the screening model, select the first four ResNet Blocks of the ResNet neural network model as the shared convolution layer, and use them to extract the features of the input image; after the shared convolution layer, set a plurality of task-specific branches, each branch processes a specific task, and each task-specific branch is composed of a plurality of convolution layers and fully connected layers, and is optimized for different tasks respectively; Step S54: Use the data set containing multi-task labels to perform screening model training, and provide corresponding labels for each task during the training process.
[0058] Step S55: After the training is completed, the performance of the screening model is evaluated using the validation set to complete the training.
[0059] The new plum fruit is identified in the screening disc 31 by the binocular camera 72 to determine its fruit size, whether it has cracks, whether it has damage, whether it has fruit stems, etc. (in this process, the first baffle 32 rotates continuously, one is to turn the new plum fruit to avoid the detection of four corners, and the other is to move the new plum fruit to the discharge port. The first baffle 32 is made of transparent material); if it is a qualified fruit, the second baffle 34 rotates and closes the interface between the bad fruit chute 35 and the first chute 33, and the fruit passes through the first chute 33-good fruit chute 36-second chute 37 to enter the good fruit collection tank 21; if it is an unqualified fruit, the second baffle 34 rotates and closes the interface between the good fruit chute 36 and the first chute 33, and the fruit passes through the first chute 33-bad fruit chute 36-discharge hole 130 to enter the bad fruit collection tank 22, thereby realizing the graded screening of the new plum fruit.
Claims
1. A new plum picking and grading robot, characterized by: It includes a base support mechanism, a collection box, a grading and screening mechanism, a picking robot arm, an end-effector, a storage mechanism and a visual recognition system; A collecting box is arranged at the front end of the base supporting mechanism, including a good fruit collecting slot and a bad fruit collecting slot; the grading and screening mechanism and the picking robot arm are respectively arranged on the end faces of the base supporting mechanism, and an end effector is arranged at the end of the picking robot arm away from the base supporting mechanism, and a storage mechanism is arranged on the end face of the base supporting mechanism and the storage mechanism is respectively connected to the end effector and the grading and screening mechanism; the visual recognition system includes a positioning binocular camera and two identification binocular cameras, the positioning binocular camera is arranged on the end effector, and the identification binocular camera corresponding to the grading and screening mechanism is arranged on the end face of the base supporting mechanism.
2. A new plum picking and grading robot according to claim 1, characterized in that: The base supporting mechanism includes a chassis, supporting studs, connecting plates, track wheels and tracks. A plurality of evenly distributed vertical supporting studs are arranged on the end face of the chassis and the ends of the supporting studs away from the chassis are connected to the same connecting plate. Two track wheels are arranged on the side faces of both sides of the chassis and the two track wheels on the same side are connected by tracks. A bad fruit collecting groove is arranged between the chassis and the connecting plate, and a good fruit collecting groove is arranged at the front end of the chassis and the good fruit collecting groove is fixedly connected to the bad fruit collecting groove.
3. A new plum picking and grading robot according to claim 1 or 2, characterized in that: The grading and screening mechanism comprises a screening disc, a first baffle, a first slide, a second baffle, a bad fruit slide, a good fruit slide and a second slide; the screening disc is fixedly arranged on the end surface of the connecting plate and is a conical structure with a large diameter at the upper part and a small diameter at the lower part; a coaxial rotating shaft is arranged in the middle of the screening disc and a first baffle is arranged on the outer wall of the rotating shaft, and the first baffle is rotated in the screening disc through the rotating shaft; a discharge port is arranged on the side of the screening disc close to the good fruit collecting tank and a first The slide, the first slide is an inclined track structure inclined from the screening disc to the good fruit collecting trough; the end of the first slide away from the screening disc is connected to the good fruit slide, and a bad fruit slide is arranged on the side of the first slide away from the screening disc, a second baffle is rotatably arranged at the connection between the good fruit slide and the bad fruit slider, the connecting plate is located at the end of the bad fruit slide away from the first slide to form a discharge hole, and the discharge hole corresponds to the bad fruit collecting trough; the end of the good fruit slide away from the first slide is connected to the second slide arranged in the good fruit collecting trough.
4. A new plum picking and grading robot according to any one of claims 1 to 3, characterized in that: The end actuator includes a fixed box, a driving motor, a first gear, a second gear, a first rack, a first protective ring, a second rack, an extrusion plate and a second protective ring. The fixed box is arranged at the end of the picking robot arm away from the base support mechanism, and the driving motor is arranged at the bottom of the inner cavity of the fixed box. The gear shaft is coaxially arranged on the output shaft of the driving motor, and the end of the gear shaft away from the driving motor is rotatably connected to the top surface of the inner cavity of the fixed box; the outer wall of the gear shaft is sequentially sleeved with the first gear and the second gear from bottom to top, and the first rack is slidably arranged on the inner wall of one side of the fixed box corresponding to the first gear, and the end of the first rack away from the picking robot arm is provided with a second gear through a sliding support. A protective ring, an end of the first protective ring away from the first rack penetrates the corresponding side wall of the fixed box and is slidably connected, a separation block is set on the top surface of the end of the first protective ring away from the fixed box, and a separation groove with a built-in separation blade is opened on the side surface of the separation block close to the fixed box; a second rack is slidably set on the inner wall of the other side of the fixed box and corresponds to the second gear, an end of the second rack close to the first protective ring penetrates the corresponding side wall of the fixed box and is provided with an extrusion plate, and a top block is set on the side surface of the extrusion plate close to the separation block corresponding to the separation groove; a second protective ring is fixedly set on the outer wall of the fixed box and located at the lower side of the first protective ring, and the second protective ring is set parallel to the first protective plate.
5. The new plum picking and grading robot according to claim 4, characterized in that: The storage mechanism includes a connecting hose, a buffer mechanism, a transition collection box and a guide chute. The transition collection box is fixedly arranged on the end face of the base support mechanism and is located on one side of the screening disc. The distance between the bottom surface of the transition collection box and the end face of the base support mechanism is greater than the distance between the top surface of the screening disc and the end face of the base support mechanism. One end of the connecting hose is arranged on the bottom surface of the second protective ring and is connected to the inner circle of the second protective ring, and the other end is connected to the side surface of one side of the transition collection box. A buffer mechanism is arranged at the connection between the connecting hose and the transition collection box; a guide chute is arranged on the side surface of the transition collection box close to the screening disc, and the guide chute is an inclined chute inclined from the transition collection box to the screening disc.
6. A picking method for a new plum picking and grading robot according to any one of claims 1 to 5, characterized in that: include: Step S1, identification and positioning: by positioning the binocular camera at a distant point from the new plum fruit and scanning in a horizontal posture, a distant new plum fruit image is obtained, and the image is segmented and the target is identified; Step S2, new plum fruit cluster selection: using a target tracking algorithm to track the target new plum fruit and identify the number of mature new plum fruits; when the number of mature new plum fruits in the same cluster exceeds 60% of the total number of fruits in the cluster, the cluster is marked as the target new plum fruit cluster; Step S3, picking point positioning: select the lowest point of the target new plum fruit cluster as the picking point reference position, and move down 3 to 5 cm in the longitudinal direction of the fruit along the lowest end of the picking point reference position to obtain the picking point; Step S4, fruit picking: the picking robot arm is gradually moved according to the picking point, and the new plum fruit is further identified and positioned in the near field; when the end actuator reaches the picking point, the relative distance between the picking point and the upper edge of the new plum fruit is obtained, and 3 to 5 cm is added in the longitudinal direction as a basis to obtain the end point of the end actuator; the end actuator moves from bottom to top according to the picking point and the end point, so as to achieve the enveloping and shearing separation of the new plum fruit and complete the picking; Step S5, screening and collection of fruits: the picked fruits fall into the grading and screening mechanism through the storage mechanism, and after screening by the grading and screening mechanism, good fruits and bad fruits are separated and collected in the good fruit collection slot and the bad fruit collection slot respectively.
7. The picking method of a new plum picking and grading robot according to claim 6, characterized in that: The step S1 is specifically as follows: Step S11, first, calculate the histogram of the input image to obtain the frequency distribution of each pixel value in the image; and sample the target image, divide its histogram interval into M sub-intervals, and set the width of each sub-interval to U; then, map the image grayscale value to each sub-interval, and calculate the pixel frequency in each sub-interval; Step S12: First, calculate the grayscale distribution of all pixel values in each subinterval, obtain the grayscale mean in each subinterval, and calculate the intra-class variance of each subinterval to indicate the degree of dispersion of pixel values in the interval; Then, traverse all possible thresholds, calculate the intra-class variance corresponding to each threshold, and select the threshold that maximizes the intra-class variance as the optimal threshold; Step S13, dividing the image into two regions, foreground and background, according to the optimal threshold: the region greater than the optimal threshold is the foreground, and the region less than the optimal threshold is the background, thereby separating the target image from the background; Step S14: Use grayscale morphology to optimize the segmented image, achieve image segmentation and recognition, and divide and locate the segmented image sub-intervals.
8. The picking method of a new plum picking and grading robot according to claim 7, characterized in that: In step S2, the target tracking algorithm is used to track the target new plum fruits and identify the number of mature new plum fruits: Step S21: First, target detection is applied to detect candidate targets from the video frame, and a bounding box and a confidence score of each selected target are obtained; then the detected candidate targets are grouped according to their temporal and spatial correlations, and the degree of overlap between two candidate targets is measured; Step S22, matching the detection result of the current frame with the trajectory of the previous frame, and using the Hungarian algorithm to obtain the matching method with the minimum cost, the cost includes calculations based on factors such as distance, speed, and confidence, to complete the initial matching; for candidate targets that do not exist in the previous trajectory matching, perform a secondary match with the nearest trajectory; Step S23: Generate a new trajectory based on the matching result, each generated trajectory includes a series of bounding boxes and corresponding confidence scores; then, use the Kalman filter to predict the trajectory position of the next frame, and modify the predicted trajectory based on the new detection result; Step S24, pre-set the confidence score threshold interval, compare the confidence score in the trajectory with the confidence score threshold interval, the lower limit close to the confidence score threshold interval is high maturity, and the upper limit close to the confidence score threshold interval is low maturity, so as to distinguish the maturity of the fruit; then, filter the trajectory according to the trajectory length and confidence score, remove unstable and unreasonable trajectories, and obtain the number of fruits.
9. The picking method of a new plum picking and grading robot according to claim 8, characterized in that: The method for obtaining the lowest point of the new plum fruit position in step S3 is: First, through multi-view image acquisition, images of different viewpoints are obtained respectively; then, feature points are extracted from two or more images to find feature point pairs corresponding to the same target point; then, for each matching feature point pair, the three-dimensional point cloud is calculated by triangulation to obtain the spatial coordinates of the target point, where the triangulation depth d for: Where: f represents the focal length of the camera, b Represents the distance between images from different perspectives, Represents the angle between images from different viewpoints.
10. The picking method of a new plum picking and grading robot according to claim 9, characterized in that: The method for obtaining the upper edge of the new plum fruit in step S4 is: First, obtain the two-dimensional coordinates of the corresponding feature points in the image ( u,v ) and depth information D of two-dimensional coordinates; Then, calculate the three-dimensional coordinates of the feature point: Where: fx , fy represents the focal length of the camera, xx , cy Represents the coordinates of the camera's principal point.
Citation Information
Patent Citations
Field picking and grading modular robot for kiwi fruits
CN109952865A
Fruit picking buffering device and fruit picking collecting device
CN110402685A
Visual positioning bionic snake mouth picking mechanism, unmanned aerial vehicle harvesting device and unmanned aerial vehicle harvesting method
CN110754219A
Robot for picking cluster-shaped fruits
CN116267236A
Automatic mountain nut picking device, system and method
CN116439017A
