Agaricus bisporus grading system based on Delta robot

By using Delta robot and convolutional neural network in the Agaricus bisporus grading system, combining the loading module and conveyor belt, the automated grading of Agaricus bisporus is achieved, solving the problems of low manual grading efficiency and strong subjectivity, and improving the stability of the grading system and efficiency.

CN118950492APending Publication Date: 2024-11-15SHANXI AGRI UNIV
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202411036234.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

In the prior art, Agaricus bisporus grading mainly relies on manual labor, and there are problems of strong subjectivity, low efficiency and high cost. The traditional machine vision sorting algorithm performs poorly in complex scenarios.

Method used

Agaricus bisporus grading system based on Delta robot is adopted, combined with convolutional neural network for image recognition and motion trajectory planning, automatic grading is achieved through Delta robot, low-damage and rapid loading is achieved using loading modules and conveyor belts, and the Agaricus bisporus is obtained through visual recognition units. Position and depth information are generated and captured trajectories are classified.

Benefits of technology

The rapid, accurate and efficient automated grading of Agaricus bisporus has been achieved, which reduces labor costs and improves the stability and efficiency of the grading system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118950492A_ABST
    Figure CN118950492A_ABST
Patent Text Reader

Abstract

The invention discloses an agaricus bisporus grading system based on a Delta robot, which is characterized in that a feeding module conveys agaricus bisporus to a visual detection area of a classification and collection device according to a preset posture through a conveying belt, a visual identification unit identifies an agaricus bisporus image and obtains spatial position and depth information of the agaricus bisporus, and the agaricus bisporus is classified and collected through a classification and collection device. The upper computer converts the spatial position to a tail end central coordinate system where the Delta robot is located, a grabbing track is generated according to the current tail end posture of the Delta robot and the posture of the agaricus bisporus, and the lower computer receives the grabbing track and controls the Delta robot to conduct classified grabbing and placing according to a preset planning track so as to complete classified grabbing of the agaricus bisporus. The agaricus bisporus collecting box receives the agaricus bisporus which is grabbed and sorted in a grading mode, and quality detection and automatic grading of the fresh agaricus bisporus are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of robot intelligent operation, and in particular relates to an Agaricus bisporus grading system based on a Delta robot. Background Art

[0002] Agaricus bisporus has high nutritional value and is one of the edible fungi with the largest cultivation area and the highest yield in my country. In recent years, the scale of Agaricus bisporus production has been expanding, but the research on grading equipment suitable for Agaricus bisporus has developed slowly. At present, Agaricus bisporus grading mainly relies on manual labor, which is highly subjective and prone to misjudgment, and has low work efficiency and high labor costs. Therefore, there is an urgent need for a low-damage, intelligent and efficient grading equipment to quickly and non-destructively grade the quality of Agaricus bisporus.

[0003] At present, traditional machine vision sorting algorithms have been widely used in various industries. Such algorithms mainly use artificially designed feature extraction methods. Due to the unstable performance of feature extractors, they are only suitable for simple scenes and sorting situations with obvious features. Therefore, the present invention uses a convolutional neural network with stronger feature extraction ability as a grading algorithm for Agaricus bisporus, and combines a Delta robot to achieve fast and effective grading of Agaricus bisporus. Summary of the invention

[0004] In view of this, the present invention provides an Agaricus bisporus grading system based on a Delta robot, which is specifically implemented by the following technical solutions.

[0005] The present invention provides an Agaricus bisporus grading system based on a Delta robot, comprising an Agaricus bisporus feeding device and a classification and collection device, wherein the Agaricus bisporus feeding device comprises a feeding module and a conveyor belt, one end of the conveyor belt is connected to the feeding module, and the other end of the conveyor belt is connected to the classification and collection device;

[0006] The classification and collection device includes a robot fixing frame, a visual recognition unit, an upper computer, a Delta robot, a lower computer and an Agaricus bisporus collection box, wherein the lower computer is arranged on the upper end surface of the robot fixing frame, the Delta robot is located on the lower end surface of the robot fixing frame and is connected to the lower computer, the visual recognition unit is arranged on the lower end surface of the robot fixing frame and is connected to the upper computer, the upper computer is arranged on the side of the robot fixing frame, one end of the conveyor belt passes through the robot fixing frame and is located below the Delta robot, and the Agaricus bisporus collection box is arranged on the side of the robot fixing frame and abuts against the conveyor belt;

[0007] The feeding module conveys the Agaricus bisporus to the visual inspection area of ​​the classification and collection device according to a preset posture through the conveyor belt, the visual recognition unit collects and recognizes the Agaricus bisporus image, and obtains the spatial position and depth information of the Agaricus bisporus, the upper computer converts the spatial position to the terminal center coordinate system where the Delta robot is located, and generates a grasping trajectory according to the current posture of the terminal of the Delta robot and the posture of the Agaricus bisporus, the lower computer receives the grasping trajectory and controls the Delta robot to perform classification grasping and placement according to the preset planning trajectory to complete the graded grasping of the Agaricus bisporus;

[0008] The Delta robot obtains the position information and motion data of the Agaricus bisporus through the visual recognition unit, and the host computer controls the Delta robot to reach the grasping position corresponding to the grasping trajectory according to the position information and the motion data to complete the sorting of the Agaricus bisporus, and the Agaricus bisporus collection box is used to receive the Agaricus bisporus that has been graded, grasped and sorted.

[0009] Compared with the prior art, the technical solution of the present invention has the following beneficial effects:

[0010] (1) The feeding module adopts a spiral vibration plate feeding structure. The Agaricus bisporus is placed one by one for feeding and the wrong posture is adjusted. The Agaricus bisporus is moved to the conveying device through linear vibration of the vibrator, and the Agaricus bisporus is transported to the detection area, achieving low-loss and fast feeding, and completing reasonable docking with the rear identification and grasping;

[0011] (2) The visual recognition unit is based on computer vision recognition detection technology. It realizes the classification of the surface quality of Agaricus bisporus through neural network model training, selects the optimal training weight as the final model weight, and deploys it to the host computer. The camera obtains the Agaricus bisporus image and the spatial position information of Agaricus bisporus. After the data is processed by the host computer, the control command is issued and sent to the slave computer to control the Delta robot to complete the classification and grasping according to the planned trajectory. The host computer control software displays the running status of the Delta robot in real time.

[0012] (3) The kinematic analysis and forward and inverse kinematic analysis of the Delta robot were carried out, and the forward and inverse kinematic models were mutually verified to complete the verification of the robot's motion space, proving the rationality of the designed Delta robot structure; the trajectory planning method in the Cartesian workspace was selected, and the door-shaped trajectory was determined to be the grasping trajectory of Agaricus bisporus. Matlab was used to simulate the selected grasping trajectory based on the fifth-order polynomial motion law to verify the feasibility of the trajectory planning;

[0013] (4) The Delta robot is used to detect the quality of fresh Agaricus bisporus and automatically grade it by planning the robot arm's trajectory, spatial positioning, and dynamic real-time grasping. The control environment platform of the Delta robot is built, and the control algorithm and human-computer interaction program are written in Python. The YOLOv5s classification model is used to train the Agaricus bisporus, and the recognition results are aligned with the depth map to obtain the spatial position information of the target Agaricus bisporus. Finally, the automated grading of Agaricus bisporus is achieved through the coordination of various modules. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 It is a structural schematic diagram of the Agaricus bisporus grading system based on the Delta robot of the present invention;

[0015] Figure 2 This is a target detection flow chart of the present invention;

[0016] Figure 3 This is a schematic diagram of the SE module based on MobileNetV3 of the present invention;

[0017] Figure 4 is a structural block diagram of the dynamic header block of the present invention;

[0018] Figure 5 This is a simplified mathematical model diagram of the Delta robot of the present invention;

[0019] Figure 6 A schematic diagram of establishing a coordinate system for a fixed platform of the present invention;

[0020] Figure 7 A schematic diagram of establishing a coordinate system for the moving platform of the present invention;

[0021] Figure 8 It is a curve diagram of the fifth-order polynomial motion law of the present invention;

[0022] Fig. 9 is a conversion relationship diagram of the coordinate system of the present invention;

[0023] Fig.10 It is a schematic diagram of conveyor belt calibration of the present invention;

[0024] Fig.11 It is the PID control process diagram of the present invention;

[0025] Fig.12 This is the control flow chart of the lower computer of the present invention;

[0026] Fig.13 This is a schematic diagram of the structure of the feeding module of the present invention;

[0027] Fig.14 This is a working principle diagram of the vibrator of the present invention;

[0028] Fig.15 This is a schematic diagram of the force analysis principle of Agaricus bisporus of the present invention;

[0029] In the figure: 1-feeding module; 2-conveyor belt; 3-robot fixing frame; 4-visual recognition unit; 5-upper computer, 6-Delta robot; 7-lower computer; 8-Agaricus bisporus collection box; 9-spiral material tray; 10-vibrator; 11-discharging guide rail; 12-blocking rod; 13-slot track; 14-branch track; 15-diverter rod; 16-magnetic tile; 17-electromagnet; 18-electromagnetic coil; 19-armature; 20-main vibration spring. DETAILED DESCRIPTION

[0030] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0031] See also Figure 1 and Figure 2 The present invention provides an Agaricus bisporus grading system based on a Delta robot, comprising an Agaricus bisporus feeding device and a classification and collection device, wherein the Agaricus bisporus feeding device comprises a feeding module 1 and a conveyor belt 2, wherein one end of the conveyor belt 2 is connected to the feeding module 1, and the other end of the conveyor belt 2 is connected to the classification and collection device;

[0032] The classification and collection device includes a robot fixing frame 3, a visual recognition unit 4, an upper computer 5, a Delta robot 6, a lower computer 7 and an Agaricus bisporus collection box 8, wherein the lower computer 7 is arranged on the upper end surface of the robot fixing frame 3, the Delta robot 6 is located on the lower end surface of the robot fixing frame 3 and is connected to the lower computer 7, the visual recognition unit 4 is arranged on the lower end surface of the robot fixing frame 3 and is connected to the upper computer 5, the upper computer 5 is arranged on the side of the robot fixing frame 3, one end of the conveyor belt 2 passes through the robot fixing frame 3 and is located below the Delta robot 6, and the Agaricus bisporus collection box 8 is arranged on the side of the robot fixing frame 3 and abuts against the conveyor belt 2;

[0033] The feeding module 1 conveys the Agaricus bisporus to the visual inspection area of ​​the classification and collection device according to a preset posture through the conveyor belt 2, the visual recognition unit 4 collects and recognizes the Agaricus bisporus image, and obtains the spatial position and depth information of the Agaricus bisporus, the upper computer 5 converts the spatial position to the terminal center coordinate system where the Delta robot 6 is located, and generates a grasping trajectory according to the current posture of the terminal of the Delta robot 6 and the posture of the Agaricus bisporus, the lower computer 7 receives the grasping trajectory and controls the Delta robot 6 to perform classification grasping and placement according to the preset planning trajectory to complete the graded grasping of the Agaricus bisporus;

[0034] The Delta robot 6 obtains the position information and motion data of the Agaricus bisporus through the visual recognition unit 4. The host computer 5 controls the Delta robot 6 to reach the grasping position corresponding to the grasping trajectory according to the position information and the motion data to complete the sorting of the Agaricus bisporus. The Agaricus bisporus collection box 8 is used to receive the Agaricus bisporus that has been graded, grasped and sorted.

[0035] In this embodiment, the conveyor belt is a left and right two-stage type, and the two belts are driven by the same motor, and a 20mm wide gap is formed in the middle to ensure that the Agaricus bisporus sent by the feeding device can continue to maintain the correct posture. The captured Agaricus bisporus is mainly divided into two placement areas, the first placement area corresponds to the U collection box, and the second placement area corresponds to the W collection box. When the Delta robot moves to the target grasping point, the captured Agaricus bisporus is placed in the area corresponding to the grade according to the planned motion trajectory, and then the placed Agaricus bisporus falls into the U and W collection boxes with the movement of the conveyor belt. The Agaricus bisporus belonging to the V collection box category is not grasped and falls directly into the V collection box with the conveyor belt. After power-on, the host computer control software is started. The host computer successfully establishes a connection with the Agaricus bisporus grading robot and sends a reset command. The Delta robot receives the reset command and starts to control the motors of each joint to reach the initial posture. After the Delta robot is reset, it starts to feedback the position data of each joint and displays it to the host computer terminal, and sends a start command, and the grading system starts to start. The process of graded grasping is as follows: first, the feeder and conveyor belt start to start, and the Agaricus bisporus is arranged one by one with the mushroom cap facing up and the mushroom stem facing down and transported to the visual inspection area. The depth camera starts to collect and identify the Agaricus bisporus image, and obtains the spatial position and depth information of the Agaricus bisporus. After the recognition is completed, the upper computer converts the Agaricus bisporus position coordinates to the terminal center coordinate system, generates the grasping trajectory according to the current posture of the robot terminal and the posture of the Agaricus bisporus, and sends it to the motion control module of the lower computer through serial communication. The lower computer controls the Delta robot to grasp and place according to the planned trajectory through parsing instructions. After completing a round of grasping, it returns to the recognized posture and starts the next round of grasping. During the sorting test, the robot obtains the position information and motion data of the Agaricus bisporus through the visual module, and the upper computer transmits the data back. After the upper computer issues the grasping instruction, the motion control module receives and parses the instruction through serial communication, controls the robot end effector to accurately reach the specified grasping position, and completes the sorting action.

[0036] The construction of the Agaricus bisporus dataset is mainly divided into three stages: Agaricus bisporus image collection, image preprocessing, and image annotation. The main task of the image collection stage is to take Agaricus bisporus images in an actual sorting environment to ensure that diverse and representative image samples are obtained; the image preprocessing stage involves screening the collected image data and converting it into a unified format to ensure the quality and consistency of the image data for subsequent annotation work; the image annotation stage is to use annotation tools to add corresponding category labels and related information to each Agaricus bisporus image to provide necessary data support for subsequent model training. The quality grade of Agaricus bisporus is divided according to the grade specifications of fresh white Agaricus bisporus in the agricultural industry standard NY / T1790-2009 of the People's Republic of China. On the premise of meeting the basic requirements, fresh Agaricus bisporus is divided into special grade, first grade and second grade. The specific classification standards are shown in Table 1:

[0037] Table 1 Classification of quality grades of Agaricus bisporus

[0038]

[0039] In summary, we determined that the three indicators of color, shape, and damage were used to classify Agaricus bisporus. The color, shape, and damage of the Agaricus bisporus cap could be detected from the front of the cap. Before actual image acquisition, the fresh Agaricus bisporus purchased from the market was classified according to the classification standards, and marked and recorded.

[0040] Data collection includes randomly selecting 100 fresh and mature Agaricus bisporus with different degrees of damage and color spots, and 30 Agaricus bisporus without damage and color spots. The Agaricus bisporus with damage and color spots is divided into 26 groups in total, and the Agaricus bisporus without damage and color spots is divided into 6 groups in total. In order to fully obtain the characteristics of damage and color spots of Agaricus bisporus, the angle of each damaged Agaricus bisporus is randomly adjusted each time it is photographed, and a total of 335 Agaricus bisporus with damage and color spots of different qualities are obtained. The shooting height is unified to 50cm and ensure that all Agaricus bisporus in the group are captured at the same time in each shooting; a total of 335 jpg format images of Agaricus bisporus in graded environments are taken.

[0041] Among them, the training of convolutional neural networks usually requires a large number of data samples to obtain good performance and generalization ability. After collecting the images of Agaricus bisporus, a total of 335 Agaricus bisporus images were obtained, and this amount of data is not enough to support effective model training. Therefore, a data enhancement method is adopted to generate more data by transforming the existing sample data. The data enhancement method includes geometric transformation (uniformly cutting the image to obtain the original data set, and finally enhancing the data set through random translation, rotation, scaling and other operations), color space transformation, mixed image, adversarial training and enhancement based on generative adversarial network and other technologies. The present invention uses geometric transformation and color space transformation to expand the Agaricus bisporus data set. The color space transformation enhancement method is selected as Solarize-add and Posterize; wherein Solarize-add enhancement may be beneficial to Agaricus bisporus grading, and a special effect is created by reversing the pixel values ​​of the image, so that the feature area in the image becomes brighter, while retaining some features of the original image. Increasing the brightness and contrast of the image helps to highlight defects or other important features. Posterize is used to improve the clarity of the image and enhance edges and details. In the grading of Agaricus bisporus, sharpness enhancement may help to more clearly distinguish the contours and textures between different features on the surface of Agaricus bisporus, increase clarity, and help the model detect the edges and surface details of Agaricus bisporus. After data enhancement, the data contains a total of 1,340 images, all of which are in three-channel RGB mode and 640×640 pixels in size. The data set categories include three levels: special, first, and second. The data set is divided in a ratio of 8:2 during model training, including 938 training images and 402 verification images.

[0042] It should be noted that the graded grasping uses three different speeds to evaluate the grasping accuracy and grading accuracy of the Delta robot during grasping; the speed is set to 1m / min, 3m / min, and 5m / min. Under three different conveying speeds, the Delta robot uses the recognition and positioning of the visual module, and after position prediction and trajectory planning, the grasping accuracy of Agaricus bisporus under different conveying speeds is compared. The results are shown in Table 2:

[0043] Table 2 Classification results

[0044]

[0045] It can be seen from Table 2 that when the transmission speed is 1m·min -1 When the conveying speed is 3m·min, the accuracy of special grade classification is 80%, the accuracy of first grade classification is 86%, and the accuracy of second grade classification is 90%; when the conveying speed is 3m·min -1 When the conveying speed is 5m·min, the accuracy of special grade classification is 75%, the accuracy of first grade classification is 80%, and the accuracy of second grade classification is 86%. -1 When the special grade is classified, the accuracy rate is 65%, the first grade is 76%, and the second grade is 84%. It can be seen that the classification system can basically complete the process from identification and classification to grasping.

[0046] Specifically, the execution process of the host computer includes:

[0047] The object detection model based on YOLOv5 evenly divides the input Agaricus bisporus image into s×s squares. If the center of the Agaricus bisporus is located in a square, the square is determined to be used for predicting the Agaricus bisporus.

[0048] The predicted border of the Agaricus bisporus image and the probability of the image type are obtained by calculation, and after the predicted border is generated, the coordinates of the center point of the border, the width of the border and the confidence level are calculated;

[0049] Combine the calculated border parameters with the image type probability to output the recognition result;

[0050] Among them, multiple squares form a grid unit, each grid unit is used to predict multiple prediction boxes, each prediction box is composed of five prediction parameters (x, y, w, h, c), x, y represent the center relative to the grid unit bounding box, w, h represent the width and height of the prediction box relative to the entire image, c represents the conditional probability of the cell being used to predict each prediction box under the confidence level, and the confidence level represents the credibility of the bounding box predicted by the square containing the Agaricus bisporus, and the corresponding calculation expression is:

[0051]

[0052] Among them, P r (Object) is 1 or 0. If an Object falls into a square, then P r (Object) takes 1, otherwise takes 0; It is the IoU value between the predicted box and the real box. IoU is the intersection over union ratio, which is the ratio of the intersection and union of the predicted bounding box and the actual bounding box.

[0053] After obtaining the confidence score, the IoU threshold is set to filter out boxes with low scores, and the retained boxes are processed by the non-maximum suppression algorithm to obtain the detection results.

[0054] In order to improve the working efficiency and grasping accuracy of the Agaricus bisporus grading robot, namely the Delta robot, and to realize the convenient and rapid deployment of the model to the mobile terminal, the original backbone feature extraction network CSP-Darknet53 was replaced with a lighter MobileNet network to achieve lightweight network model and balance speed and accuracy. MobileNetV3 is mainly divided into three parts: features, avgpool, and classify, which are used for feature extraction, global pooling, and classifier respectively. The purpose of this design is to flexibly use different parts of the MobileNetV3 model. And MobileNetV3 introduces the SE attention mechanism module based on MobileNetV2. Figure 3 As shown in the figure, the number of FC1 nodes is 1 / 4 of the number of Conv1 channels. The 4 channels become 4 numbers through average pooling and become 1 number in FC1, while the number of FC2 nodes is the same as the number of Conv1 channels. The activation function after FC1 is ReLU, and the activation function after FC2 is hardSigmoid. The 4 numbers obtained by FC2 are equivalent to the weight coefficients of each channel of Convl.

[0055] Specifically, the host computer includes a YOLOv5 target detection model and a Dyhead detection head. The original backbone feature extraction network in the YOLOv5 target detection model is set to a MobileNetV3 network. The input feature map is pooled to a size of 1×1×C, and then flattened, fully connected, and Sigmoid processed, and multiplied with the input feature map on the channel to complete feature extraction;

[0056] Among them, the MobileNetV3 network introduces the swish function, and the corresponding expression is:

[0057] swish(x)=x·σ(x) (2)

[0058]

[0059] Among them, x represents the input value of the activation function, σ represents the Sigmoid function, and ReLU6 is used to replace the original Sigmoid function, because the computational cost of the ReLU6 function on mobile devices is much smaller than that of the Sigmoid function; in actual use, the most relevant features can be selected for specific tasks. The first few layers are usually used to extract more general low-level features (such as edges and textures), while the later layers of the model are responsible for extracting higher-level features (such as the specific parts and shapes of objects). You only need to pay attention to the feature extraction part, and focus on the last three downsampling parts. The specific network extraction method is: the reciprocal downsampling in MobileNev3 occurs in the ninth module; therefore, layers 9-11 correspond to the reciprocal downsampling of YOLOv5, layers 4-9 correspond to the reciprocal downsampling of YOLOv5, and layers 0-4 correspond to the reciprocal downsampling of YOLOv5;

[0060] Replace the default box regression loss function CIoU-Loss used in the YOLOv5 target detection model with EIoU-Loss. The corresponding expression is:

[0061]

[0062] Among them, L EIoU Represents the optimization loss function, L IoU represents the loss of the overlapping area of ​​the bounding box, L dis represents the center point loss of the bounding box, L asp represents the edge length loss of the bounding box, b represents the predicted box, and b gt represents the true frame, IoU represents the ratio of the intersection of the Agaricus bisporus defect prediction frame and the defect true frame to their union. The larger the intersection-over-union ratio of the two frames, the more accurate the target positioning;

[0063] It should be noted that the default box regression loss function used in the YOLOv5 target detection model is CIoU (Complete Intersection over Union). Although CIoU-Loss takes into account the overlapping area, center point distance and aspect ratio consistency of bounding box regression, it reflects the difference between the aspect ratios of the two bounding boxes, rather than the difference between the width and height and their true values ​​and their corresponding confidence. Therefore, sometimes it may not be possible to prompt the model to fully distinguish between small changes in different widths and heights, which may make it difficult to distinguish targets with similar features during model training. Therefore, the loss function is optimized and CIoU-Loss is replaced by EIoU-Loss; EIoU-Loss calculates the loss of width and height separately for the bounding box regression problem. This helps to more directly penalize the deviation between the target box and the anchor box in the width and height dimensions. Considering the difference in length and width alone is more direct and effective for improving the bounding box prediction. The Focal-Loss loss function is added to the width and height loss. By reducing the weights of anchor boxes that overlap less with the true bounding box and increasing the weights of anchor boxes that overlap more with the true bounding box, the regression process focuses on high-quality anchor boxes. EIoU-Loss can focus on high-quality anchor boxes, which can reduce the interference of a large number of low-quality anchor boxes in the process of bounding box regression, thereby accelerating convergence and improving the overall performance of the model, making the convergence faster and improving the regression accuracy.

[0064] The Dyhead detection head includes scale-aware attention, spatial-aware attention and task-aware attention. The scale-aware attention is used to scale the feature pyramid to the same scale to form a three-dimensional tensor and use it as the input of the dynamic head; the spatial-aware attention includes multiple dynamic heads of scale-aware, spatial-aware and task-aware attention stacked in sequence, and focusing on the distinctive areas in the image by aggregating the features; the task-aware attention is used for the output of the dynamic head, i.e., the representation of different tasks and target detection. Among them, since Agaricus bisporus is on a running conveyor belt, this requires the detection and classification model to have a certain dynamic detection capability. The Dyhead module integrates the dynamic attention mechanism detection head. The dynamic head method of this module includes three different attention mechanisms, each focusing on different aspects: scale-aware attention, spatial-aware attention and task-aware attention; such as Figure 4 As shown, Figure 4Figure 1 is the framework of the dynamic head method. In the figure, you can see how the feature map is improved after each attention module. Scale-aware attention: This module focuses on the feature level (L) by scaling the feature pyramid to the same scale to form a 3D tensor F∈R L×S×C , which is then used as the input of the dynamic head; spatial awareness attention: multiple dynamic head blocks (DyHeadblocks) containing scale awareness, spatial awareness, and task awareness attention are then stacked up in sequence. This module focuses on spatial location (S) and focuses on distinctive areas in the image by aggregating features; task awareness attention: The output of the final dynamic head can be used for different tasks and representations of target detection, such as classification, center box regression, etc. This module focuses on channels (C), dynamically turning on or off feature channels to support different tasks. In other words, the design of the dynamic head allows it to flexibly adapt to different types of target detectors, whether single-stage or dual-stage, and can improve performance by adding different types of predictions. This design enables the dynamic head to not only improve detection accuracy, but also adapt to different detection tasks, showing a high degree of flexibility and scalability.

[0065] It should be understood that the conversion relationship between various coordinate systems was established by using camera calibration and hand-eye calibration for the grading system, and the dynamic grasping strategy was determined through conveyor belt calibration and encoder data feedback; a Delta grading robot model was established, the selection of the robot's drive motor and end effector was completed, the overall grading grasping module was built, the hardware selection of the visual recognition module and the design of the overall structure as well as the selection of the grasping motion control algorithm were determined, the design of the classification and collection scheme was completed, and finally a graded grasping test of the overall grading system was carried out. The results show that the grading system can basically realize the grading function.

[0066] See also Figure 5 and Fig. 9 Optionally, the host computer further includes a coordinate transformation unit, which is used to realize the conversion among the base coordinate system B of the Delta robot, the coordinate system F of the conveyor belt, the coordinate system C of the visual recognition unit, the coordinate system G of the end effector and the coordinate system Q of the grasping point. The execution process of the coordinate transformation unit includes:

[0067] The classification model algorithm is used to realize the conversion between the pixel coordinate system of the input image and the image coordinate system to obtain the coordinates and size of the center point of the bounding box of the Agaricus bisporus image;

[0068] The camera internal parameters are used to realize the conversion between the image coordinate system and the camera coordinate system. The camera coordinate system is transformed with the base coordinate system through rigid body transformation. The base coordinate system and the end effector coordinate system are transformed through the inverse kinematic solution. The base coordinate system and the conveyor coordinate system are transformed through the transformation matrix. Achieve conversion;

[0069] When the Agaricus bisporus moves to the grabbing point along the conveyor belt, the position coordinates of the Agaricus bisporus coincide with the coordinates of the grabbing point, and the position of the grabbing point in the conveyor belt coordinate system is calculated based on the position information fed back by the encoder of the conveyor belt;

[0070] Determine the transformation matrix between the end effector and the grasping point based on the fixed transformation relationship between the base coordinate system and the end effector coordinate system The instantaneous position of Agaricus bisporus on the conveyor belt is calculated based on the image information collected by the camera and the speed information obtained, and the coordinates corresponding to the instantaneous position are mapped to the end effector coordinate system of the Delta robot to dynamically grasp the real-time coordinates;

[0071] Among them, the camera belongs to the visual recognition unit. The camera calibration includes camera intrinsic calibration and hand-eye calibration. The camera intrinsic calibration uses a black and white chessboard as the calibration board for calibration. According to the hand-eye calibration, the transformation matrix from the point in the camera coordinate system to the base coordinate system is obtained. The coordinate point Q of Agaricus bisporus in the base coordinate system is preset. B (x B ,y B , z B ), control the end effector of the Delta robot to reach coordinate point Q B In order to achieve accurate grasping of Agaricus bisporus, the camera pose estimation based on the PNP algorithm is used for hand-eye calibration. The hand-eye calibration process includes:

[0072] Select seven red markers at different locations and on different surfaces in the workspace of the Delta robot, use a depth camera to capture 1280×720 images, and use an image processing algorithm to detect the pixel coordinate values ​​of the red markers;

[0073] The end of the Delta robot is controlled to touch seven red markers respectively, and the position coordinates of the seven red markers are obtained by using the inverse kinematics algorithm. The position of the fixed plate in the camera coordinate system is calculated based on the intrinsic parameters obtained by camera calibration, the 2D point coordinates detected on the image, the corresponding 3D point coordinates, and the PNP algorithm.

[0074] According to the posture and position information of the end effector and the calculated calibration plate posture in the camera coordinate system, the transformation matrix is ​​solved to express the static relationship expression of the end effector relative to the camera coordinate system:

[0075]

[0076] in, Represents the transformation matrix from camera coordinates to base coordinate system.

[0077] See also Figure 7, according to the kinematics forward solution algorithm of the kinematics analysis module and the angular displacements of the three active arms, the center position coordinates of the end effector are obtained, and the workspace of the Delta robot is solved according to the search algorithm to complete the workspace analysis, including:

[0078] The rotation angle range of the active arm is preset to (-20°, 90°), and the search space and search step length are determined according to the structural parameters of the Delta robot and the kinematics forward solution algorithm, and the search data is generated;

[0079] Discretize the search space, grid the search data using the meshgrid function, and create a canvas of 8×7;

[0080] The center position coordinates of the end effector corresponding to the angular displacement are input within the angle range solved by the kinematic forward solution algorithm to form a position coordinate set, and the envelope surface of the position coordinate set is drawn to obtain the workspace verification result.

[0081] Specifically, the lower computer includes a kinematic analysis module of the Delta robot, and the kinematic analysis module is used to establish the kinematic equations of the Delta robot and analyze the forward kinematics and inverse kinematics of the Delta robot, wherein the forward kinematics is to preset the specific state of each driving joint of the Delta robot and calculate the exact position and posture of the end effector in space; the inverse kinematics is to determine the angles that each driving joint needs to rotate according to the desired position and posture of the end effector, wherein the end effector belongs to the classification and collection device and is connected to the Delta robot, and the Delta robot includes a fixed platform, a moving platform, three active arms and three driven arms, and the three active arms are driven by motors to realize the movement of the end effector to any position in space;

[0082] The execution process of the kinematic analysis module includes:

[0083] Establish a mathematical relationship between the rotation angles of the three control motors of the fixed platform and the coordinates of the center point of the moving platform in the static coordinate system, use the static coordinate system as the absolute coordinate system to find the position vector of the end effector, i.e., the origin of the moving coordinate system, and establish an equation from the origin of the static coordinate system to the end effector to obtain the kinematic equation of the Delta robot, wherein the kinematic equation includes the structural parameters and mathematical model parameters of the Delta robot;

[0084] The center position coordinates of the end effector are given according to the structural parameters of the Delta robot, the angles between each active arm and the fixed platform of the Delta robot under the position coordinates are solved, and the inverse kinematics solution is performed according to the established kinematic equation to complete the position inverse solution of the Delta robot;

[0085] The joint angle rotation angle of the Delta robot is obtained and the spatial position coordinates of the end effector are calculated. According to the angles between each active arm and the fixed platform and the kinematic equation, the forward kinematics solution is performed to calculate the coordinates of the end center position to complete the forward position solution of the Delta robot.

[0086] The actual grasping requirements for Agaricus bisporus grading are obtained to determine the workspace of the Delta robot. The structural parameters and kinematic forward and inverse solution analysis algorithms of the Delta robot are written in Python. The random function random is used to randomly select multiple sets of center position coordinate values ​​within the workspace of the Delta robot. The multiple sets of center position coordinate values ​​are input into the kinematic inverse solution algorithm to obtain the angles between each active arm and the fixed platform corresponding to each set of end position coordinates.

[0087] The position coordinates of the end effector of the corresponding moving platform are obtained by randomly acquiring angle values ​​according to the forward solution, and the three joint angle values ​​are obtained through the position inverse solution analytical algorithm to complete the mutual verification of the forward and inverse solutions of the Delta robot.

[0088] See also Fig.11 In this embodiment, the lower computer also includes a trajectory planning module of the Delta robot, and the trajectory planning module is used to realize the Delta robot's precise grasping of Agaricus bisporus. The execution process of the trajectory planning module includes: obtaining the robot's preset planning trajectory and performing trajectory planning on the end effector to determine the trajectory planning principle of the Delta robot, and determining the trajectory planning gate path of the Delta robot according to the trajectory planning principle and the workspace; using the Cartesian space planning difference algorithm to compare and analyze the trajectory planning gate path to obtain the trajectory planning method corresponding to the trajectory planning gate path, and using a quintic polynomial to determine the motion law of the Delta robot according to the trajectory planning gate path and the trajectory planning method to complete the trajectory planning of the Delta robot. The lower computer also includes a motion control module and a data acquisition module. The motion control module is used to receive control instructions and control the movements of each joint of the Delta robot, and feed back the joint data to the data acquisition module. The data acquisition module is used to feed back the image data and joint data to the upper computer. Among them, the motion control module includes a motion control main program, and the data acquisition module includes an image acquisition program. The motion control main program uses a PID control algorithm to adjust and control the position of the end of the Delta robot in the X and Y directions respectively.

[0089] It should be noted that the kinematic equations of the Delta robot (hereinafter referred to as the robot) are first established, and then the forward kinematics and inverse kinematics of the robot are analyzed. Forward kinematics is to calculate the exact position and posture of the end effector in space based on the specific state of each driving joint of the robot, while inverse kinematics is just the opposite, which is to determine the angles that each driving joint needs to rotate according to the desired end effector position and posture. The Delta robot modeling problem is to establish the rotation angles (θ 1 ,θ 2 ,θ 3 ) and the coordinates of the center point of the moving platform in the static coordinate system [xyz] T The mathematical relationship between them. Using the calculation method of parallel robot kinematics, taking the static coordinate system as the absolute coordinate system, the position vector of the end effector (i.e. the origin of the dynamic coordinate system) is calculated, and the equation is established from the origin of the static coordinate system to the end effector to obtain the simplified mathematical model of the Delta robot as shown in the figure. The position vector in the static coordinate system O-XYZ is formula (6), and the simplified fixed platform coordinate system is shown in 6.

[0090]

[0091] Corresponding to point A i The position vector in the moving coordinate system PX′Y′Z′ is:

[0092]

[0093] According to the geometric relationship, we can get point B i The position vector in the gold coordinate system O-XYZ is:

[0094]

[0095] The OP's vector expression is:

[0096] OP = [xyz] T (9)

[0097] Then point A i The position vector in the longitude coordinate system O-XYZ is:

[0098]

[0099] Corresponding to A i B i The vector expression of is:

[0100]

[0101] According to A i B i =La The kinematic equation of the Delta robot can be established as:

[0102]

[0103] Among them, |OC i |, R represents the radius of the circumscribed circle under the fixed platform, |PA i |, r represents the radius of the circumscribed circle in the moving platform coordinate system, [x, y, z] T represents the position vector of the origin of the moving coordinate system relative to the static coordinate system, |A i B i |、L a represents the length of the follower arm, θ i It indicates the angle between the active arm and the fixed platform. i=1,2,3,|OC i |、|PA i |、 |A i B i | and are the structural parameters of the Delta robot, R, r, [x, y, z] T , L a and θ i are mathematical model parameters.

[0104] The robot position inverse solution is to solve the inverse kinematics solution. The principle is to know the robot structure parameters, give the coordinates (x, y, z) of the position P of the center point of the end effector, and solve the angle (θ 1 ,θ 2 ,θ 3 ), the inverse kinematics of the mechanism is solved by the kinematic equation established above. Given equation (12), Substituting x, y, and z into formula (12) respectively, we get formula (13):

[0105]

[0106] Using the universal formula, but Substituting into the quadratic equation (14) to solve (15) we get:

[0107] X i t 2 +Y i t+Z i =0 (14)

[0108]

[0109] Among them, θ i =2arctan(t i ), there are eight solutions:

[0110]

[0111] Since the Delta robot must avoid singular configurations when working, that is, when θ i >0, t i >0, then equation (15) takes a negative sign, and when Δ≥0, then X i <0; Through the kinematic analysis of the Delta parallel mechanism, θ i The absolute value should be larger because the closer the active arm is to the OP, the greater the possibility of singularity in the mechanism.

[0112] The positive solution of the position is to find the spatial coordinates of the end effector when the rotation angle of the joint angle is known. From the known conditions, we can know the angle (θ 1 ,θ 2 ,θ 3 ), and use the kinematic equations established above to perform forward kinematics solution to obtain the end center position coordinates (x, y, z).

[0113] Known is the angle between each joint and the fixed platform coordinate axis, Substituting (i=1, 2, 3) into formula (12), we get:

[0114]

[0115]

[0116]

[0117] Use equivalent substitution to simplify the above formula, now let:

[0118]

[0119] A 1 , A 2 , A 3 Substituting into (16), (17), and (18), we obtain:

[0120]

[0121]

[0122]

[0123] Combining equations (19) and (20), we get:

[0124]

[0125] Let A 21 =A 2 -A 1 , C 12 =C 1 -C 2 , Substitution

[0126] Get: xA 21 +zC 12 +D 1 +B 2 y=0 (22)

[0127] Similarly, combining equations (19) and (21), we can obtain: xA 31 +zC 13 +D 2 +B 3 y=0 (23)

[0128] Multiply both sides of equation (22) by B 3 , multiply both sides of formula (23) by B 2 And subtracting:

[0129] (A 21 B 3 -A 31 B 2 )x+(C 12 B 3 -C 13 B 2 )z+(D 1 B 3 -D 2 B 2 )=0 (24)

[0130] Simplified formula: x = -E 1 zF 1 (25)

[0131] in,

[0132] Similarly, multiply both sides of equation (22) by A 31 , multiply both sides of formula (23) by A 21 , simplified to:

[0133] y=-E 2 zF 2 (26)

[0134] Substituting equations (25) and (26) into equation (19), we obtain (27):

[0135]

[0136] Simplify to get: az 2 +bz+c=0(28)

[0137] b=2(E 1 F 1 +E 2 F 2 +A 1 E 1 +C 1 ), Depend on Two sets of solutions are obtained. When the z value is negative, it means that the moving platform is below the fixed platform, which is a reasonable situation. When the z value is positive, it means that the moving platform is above the fixed platform, which is unreasonable, so it is discarded.

[0138] Specifically, the above established the forward and inverse solution equations for the Delta robot. However, it is still not possible to directly calculate the position coordinates of the moving platform when the active arm forms an arbitrary angle with the fixed platform and the angle of the active arm when the moving platform is at any position in space. The forward and inverse solutions were further verified through Visual Studio Code. First, the parameter equations were established. According to the actual grasping requirements of Agaricus bisporus grading, the working space of the Delta robot designed in this paper is 250mm×450mm. The structural size parameters of the robot are as follows: the radius of the circumscribed circle of the fixed platform R=65mm, the radius of the circumscribed circle of the moving platform r=35mm, the active arm L=150mm, and the slave arm L a =350mm. Then the basic parameters of the parallel robot and the kinematics forward and inverse solution analysis algorithm are written in Python language. The random function random is used to randomly select 10 groups of (x, y, z) values ​​within the working space limited by the designed Delta robot. The 10 groups of values ​​are input into the kinematics inverse solution algorithm, and the angles (θ between each active arm and the fixed platform corresponding to each group of end position coordinates can be obtained. 1 ,θ 2 ,θ 3 ), as shown in Tables 3 and 4.

[0139] Table 3 Verification based on forward kinematics solution

[0140]

[0141] The angular displacement data corresponding to 10 sets of position coordinates obtained by the inverse solution algorithm are shown in Table 4:

[0142] Table 4 Verification based on inverse kinematics solution

[0143]

[0144]

[0145] After mutual verification of the forward and inverse analytical algorithms of the Delta robot, the corresponding position coordinates of the end effector of the moving platform are obtained by randomly obtaining angle values ​​from the forward solution, and then the three joint angle values ​​are obtained by the position inverse analytical algorithm. It can be seen from Table 4 that the three joint angle values ​​are basically consistent with the joint angle values ​​input by the position forward solution algorithm, so it can be verified that the forward and inverse solutions of the Delta robot of the present invention are correct and the structural parameters are reasonable.

[0146] Specifically, the robot workspace is an important indicator to measure the overall performance and structural rationality of the robot. The space formed by all the points that the end center can reach is the workspace. The workspace verification is usually solved based on the robot kinematic analysis. The kinematic equation (12) is known. Based on the inverse kinematic solution, formula (19), formula (20) and formula (21), the three analytical expressions represent three elliptical equations respectively. The motion workspace can be regarded as composed of three ellipsoidal surfaces, where (A 1 , B 1 , C 1 )、(A 2 ,B 2 , C 2 ) and (A 3 , B 3 , C 3 ) are the center coordinates of the three ellipsoids, L a is the radius of the ellipsoid. Based on the forward kinematics analytical equation, the three active arm angular displacements (θ 1 ,θ 2 ,θ 3 ), we can get the coordinates corresponding to the end center. Through the analysis of the workspace, the workspace of the robot is solved according to the search algorithm. The main process is as follows: (1) Define the rotation angle: It is known that in actual work, the robot takes into account the external structure of the static platform, the extreme position of the end effector, the interference of the ball joint and other issues. In order to prevent the Delta robot from interfering and colliding between the branches and joints during operation, the rotation angle range of the active arm is defined as (-20°, 90°). (2) The search space and search step size are determined by the specific structural parameters of the robot and the kinematic positive solution. The step size is 5.485, and data is generated. (3) The search space is discretized, and the data is gridded using the meshgrid function to create a canvas of 8×7. Within the angle range solved by the positive kinematics algorithm, the angular displacement (θ 1 ,θ 2 ,θ 3), the corresponding end effector center position coordinates constitute a position coordinate set, and the envelope surface of the coordinate set is drawn. The workspace obtained by the movement of the center point of the end effector of the Delta robot is ellipsoidal. The lowest position that the robot end can move is 480mm from the vertical height of the fixed platform. When the distance is 100mm from the lowest position, the radius of the workspace is about 200mm, which is also the actual grasping position of Agaricus bisporus. At this time, the radius of the workspace meets the grasping requirements of Agaricus bisporus.

[0147] The main principle of trajectory planning is to avoid impact or vibration of the robot arm during movement, ensure smooth motion trajectory, and ensure the robot motion state is stable and impact-free. Since the grabbing and putting down of the end effector is a continuous process of starting, accelerating, decelerating and stopping, when planning the trajectory of the Delta robot end effector, it is necessary to avoid the impact of the robot when starting and stopping, which may cause damage to the robot arm. Reasonable speed and acceleration selection is the key to achieving smooth transition during acceleration and deceleration. The initial velocity in the initial stage, the final velocity and acceleration at the end are set to zero. This can ensure that the end effector starts and ends the grasping action smoothly during movement and maintain the stability of the entire system. In order to ensure the continuity of the first and second order derivatives of the trajectory function with respect to time, the boundary conditions are set for the robot trajectory function: 1) When t = 0, s = 0, v = 0, a = 0; 2) When t = T, s = S, v = 0, a = 0; where t, s, v, a represent the time, displacement, velocity and acceleration of the trajectory function respectively; T and S are the time and displacement to complete a single grasping action. It is preferred to use a gate-shaped trajectory with an elliptical arc transition.

[0148] Select the maximum value of the velocity v by setting the trajectory motion displacement to S and the period to T. max , the maximum acceleration a max , maximum jump value j max expression: Among them, C v , C a , C j Represents the characteristic coefficient, as shown in Table 5:

[0149] Table 5 Common motion law characteristic coefficient table

[0150] Movement rules <![CDATA[C v ]]> <![CDATA[C a ]]> <![CDATA[C j ]]> Sine acceleration 2 6.28 39.5 Corrected trapezoidal acceleration 2 4.88 61.4 Quintic polynomial 1.88 5.77 60

[0151] The basic principle for choosing the law of motion is to ensure that v max 、a max 、j max As small as possible, where v maxIt mainly affects the momentum of the robot. If the momentum of the robot is larger during the movement, a slight interference will also cause a large impact, resulting in unstable overall movement. max The increase of will lead to the increase of friction between the joints of the mechanism. In order to achieve a certain operating speed, the drive motor must increase the torque. Long-term and high load will cause damage to the motor; max If it is too large, it will cause vibration during the operation of the robot, affecting the robot's grasping accuracy. The fifth-order polynomial motion law is used to plan the trajectory of the Delta robot, and its expression is: s(t) = a 0 +a 1 t+a 2 t 2 +a 3 t 4 +a 5 t 5 (29)

[0152] Among them, t∈[0,T], T is the motion period, a 0 、a 1 、a 2 、a 3 、a 4 and a 5 are the coefficients of the polynomial. Taking the first-order derivative of the displacement function yields the velocity function: v(t) = a 1 +2a 2 t+3a 3 t 2 +4a 4 t 3 +5a 5 t 4 (30)

[0153] Taking the derivative of the velocity function gives the acceleration function:

[0154] a(t)=2a 2 +6a 3 t+12a 4 t 2 +20a 5 t 3 (31)

[0155] The position constraint conditions are obtained from the displacement function: t = 0, v(t) = 0; t = T, v(t) = 0

[0156] The acceleration constraint conditions are obtained from the acceleration function: t = 0, a(t) = 0; t = T, a(t) = 0

[0157] Substituting the boundary conditions into equations (29), (30) and (31), we obtain:

[0158] a 0 =0, a1 =0, a 2 =0,

[0159] Substituting into formula (29) we get:

[0160] By standardizing formula (32), the normalized displacement function can be obtained:

[0161] s(t)=10t 3 -15t 4 +6t 5 (33)

[0162] Matlab is used to simulate the above selected elliptical arc interpolation trajectory planning method based on the fifth-order polynomial motion law, as shown in Figure 8 As shown, this is the curve of the fifth-order polynomial motion law.

[0163] See also Fig.10 Optionally, the encoder of the conveyor belt is used to feedback the position and speed information of the conveyor belt, and the conveyor belt is calibrated according to the conversion relationship between the conveyor belt and the Delta robot. The conveyor belt calibration process includes:

[0164] Preset the coordinates of any point P in the conveyor belt coordinate system F P, then its coordinates in the base coordinate system are obtained by expression (34):

[0165]

[0166] in, Represents the posture matrix of the conveyor belt relative to the Delta robot;

[0167] The coordinates of the starting point of Agaricus bisporus in the base coordinate system are preset as follows: B P 1 =( B x 1 , B y 1 , B z 1 ) T , B P 2 =( B x 2 , B y 2 , B z 2 ) T , then the distance difference between the two points is:

[0168]

[0169] The conveyor belt movement direction is the x-axis, the vertical direction is the y-axis, and the reading v of the conveyor belt position encoder is recorded. The time for the depth camera to acquire the image is t, and the time for the Agaricus bisporus to move into the movement range of the Delta robot is Δt. m , and the conveyor belt displacement ΔL is obtained F =v·Δt m , the encoder scale factor is λ=ΔL B / ΔL F , the expression of the conveyor belt coordinate system is:

[0170]

[0171] Then the transformation matrix of the conveyor belt relative to the Delta robot is:

[0172]

[0173] According to the relevant data of the conversion matrix and the encoder scale factor, the position coordinates of any point on the conveyor belt in the base coordinate system are determined as follows:

[0174]

[0175] Among them, when the Agaricus bisporus is sent to the conveyor belt, the Agaricus bisporus can be regarded as a uniform linear motion with the same speed as the conveyor belt. The displacement of the Agaricus bisporus is consistent with the change of the conveyor belt. The Agaricus bisporus image is collected by the depth camera and the point P (x P ,y P , z P ), and the conveyor belt speed v fed back by the encoder, and then after Δt m After a certain time, the Agaricus bisporus moves into the motion range of the Delta robot. The time required for the Agaricus bisporus and the Delta robot to meet at point Q is calculated according to the iterative algorithm, and the current position M and P of the Delta robot are calculated. 2 The distance value of the position is controlled by X and Y components to start the Delta robot and the Agaricus bisporus reaches a position point Q (x q ,y q ,,z q ) and absorb Agaricus bisporus.

[0176] In this embodiment, it can be known from the coordinate conversion relationship that the position coordinates of the Agaricus bisporus robot coordinate system need to be converted from the coordinates of the Agaricus bisporus in the camera coordinate system to the coordinates of the camera in the robot end effector coordinate system and then to the coordinates of the end effector in the robot base coordinate system. The position coordinates of the Agaricus bisporus in the camera coordinate system can be obtained by the visual module, the position and posture of the end effector in the base coordinate system can be obtained by the robot inverse kinematics algorithm, and the hand-eye calibration can realize the conversion of the camera and robot end effector coordinate systems. The active arm BC of the Delta robot performs circular motion around the motor shaft, and its angle with the horizontal is θ, and the angle range is -10° to 90°. The angle between the slave arm BA and the vertical direction is α, and the angle range is 0° to 45°.

[0177] Specifically, see Fig.12 The grading of Agaricus bisporus is based on its quality. The targets to be grasped are all upright and facing upward. Due to the biological characteristics of Agaricus bisporus, the end effector adopts pneumatic suction cup grasping, which can reduce grasping damage and increase the grading speed. The main hardware includes pneumatic hardware such as vacuum suction cups and air pumps. The conveyor belt plane and the XY plane of the Delta robot base coordinate are parallel to each other. The PID algorithm can control the XY coordinate deviation between the position coordinates of the end motion point of the Delta robot and the planned grasping trajectory point. The Z coordinate of the Delta robot is a constant value.

[0178] See also Fig.13 and Fig.14 The feeding module 1 includes a spiral material tray 9, a vibrator 10, a discharge guide rail 11, a stopper 12, a notch track 13, a branch track 14 and a diverter rod 15, wherein the vibrator 10 is arranged below the inner annular surface of the spiral material tray 9, the diverter rod 15 is arranged on the outer annular surface of the spiral material tray 9, the notch track 13 is arranged on the outer annular surface of the spiral material tray 9, one end of the notch track 13 is connected to the diverter rod 15, the other end of the notch track 13 is connected to the discharge guide rail 11, the branch track 14 is arranged on the outer side of the notch guide rail 13, and the stopper 12 is arranged at the connection between the discharge guide rail 11 and the notch guide rail 13;

[0179] The vibrator 10 includes a magnetic tile 16, an electromagnet 1, an electromagnetic coil 18, an armature 19 and a main vibration spring 20. The magnetic tile 16 is arranged on the inner surface of the spiral material disk 9, and the main vibration spring 20 is arranged on the outer surface of the spiral material disk 9. Two armatures 19 are respectively arranged on the electromagnet 17 and the main vibration spring 20, and the electromagnetic coil 18 is arranged on the electromagnet 17.

[0180] Among them, the blocking rod 12 is used to discharge the non-turned Agaricus bisporus that enters the slot guide rail 13 into the spiral material plate 9, and the diverter rod 15 is used to divert the Agaricus bisporus in a sideways posture that has not slipped into the slot track 13 to the branch track 14 to achieve the twisting and turning of the Agaricus bisporus. The landing postures of the Agaricus bisporus include an upright posture with the mushroom cap touching the ground when the mushroom stem is facing up or the mushroom stem is facing down, a sideways posture with both the mushroom stem and the mushroom cap touching the ground, and a posture with the mushroom cap facing up and in contact with the ground.

[0181] In this embodiment, since the track of the material tray adopts a spiral design, the discharge track will form a certain angle with the horizontal direction. In order to make the Agaricus bisporus move upward along the spiral track, the upward acceleration provided by the contact point between the Agaricus bisporus and the track must be greater than the gravity acceleration, so that the Agaricus bisporus will instantly leave the track and move obliquely upward. Under high-frequency rotation, the Agaricus bisporus will move upward along the discharge track, so force analysis is required. Fig.15 As shown, assuming that the mass of Agaricus bisporus is m, the acceleration of gravity is g, the friction force on Agaricus bisporus is F, and the supporting force is N; the angle between the spiral material plate (hereinafter referred to as the material plate or the upper material plate) and the vibrator is α, and the vibration rise angle of the material plate is β; assuming that the angular frequency of the material plate ω=2πf, then the simple harmonic force K=mAω 2 , A is the amplitude, f is the vibration frequency, and from the force diagram, we can see that the parallel component of the maximum inertial force of Agaricus bisporus along the track is K x =mAω 2 cosβ and normal component are K y =mAω 2 sinβ, when slip occurs: mAω 2 cosβ>mgsinβ+F (39)

[0182] F=μ s N=μ[mgcosα-mAω 2 sinβ i ] (40)

[0183] Among them, μ s is the maximum static friction coefficient between Agaricus bisporus and the track, α=ωt is the initial phase of forward sliding, because sinωt is a non-negative value, so 0≤ωt≤π, in fact, when 0≤ωt≤π / 2, the simple harmonic force (inertia force) gradually increases until it increases to exceed the friction force, and forward sliding motion will occur. Because the range of the sine value is (-1, 1), the simultaneous equations (39) and (40) give the conditional equation for sliding forward along the track surface:

[0184] At this time, the critical amplitude A q The expression is:

[0185] The conditions for sliding backward are:

[0186] At this time, the critical amplitude A h The expression is:

[0187] The operating condition of the vibrating plate can be expressed in terms of the dimensionless orbital normal vector acceleration of 1.

[0188] Assume: a n =Aω 2 sinβ,g n =gcosα, so the normal acceleration ratio is:

[0189]

[0190] Substituting equation (45) into equations (41) and (43), we obtain the forward motion equation of Agaricus bisporus:

[0191]

[0192] Conditions for sliding backwards:

[0193] The limit condition for Agaricus bisporus to move forward is

[0194] When the angle α is small,

[0195] When the amplitude A is large enough, the Agaricus bisporus moves forward, and the normal reaction force N is 0. According to formula (40):

[0196] So: N = mgcosα-mAω 2 sinβ i (49)

[0197] Therefore, the conditions for Agaricus bisporus to jump are:

[0198] A jumps at this time 0 The critical conditions are:

[0199] From the above analysis, we can see that when A q <A≤A h When A h <A≤A 0 When A>A 0 In order to ensure the feeding speed of the electromagnetic vibrating tray, the material should be prevented from sliding down along the inclined surface of the trough. It can be seen from the formula that during the movement, two conditions must be met to ensure that the Agaricus bisporus slides upward: (1) The Agaricus bisporus jumps upward. (2) Agaricus bisporus slides upward

[0200] Among them, a n is the orbital normal acceleration, g n is the normal gravity acceleration, and the obtained feeding device parameters are shown in Table 6:

[0201] Table 6 Basic parameters of feeding module

[0202] type Vibration frequency f / Hz <![CDATA[Angular frequency ω / rad·s -1 > Amplitude A / m Parameter Value (50-55) (314-345) <![CDATA[(6.79·10 -5 -8.65·10 -5 )]]>

[0203] It should be noted that the material tray structure includes a vibration disk structure, a spiral track structure and a positioning flip structure. Vibration disk structure: From the relationship between the angle between the vibration disk and the vibrator (spiral rise angle) α and the vibration rise angle β, it can be seen that the spiral rise angle is selected as 3°, the top plate specification is 600mm, and the bottom plate specification is 400mm. Spiral track structure: According to the maximum upright and side-standing size of Agaricus bisporus, the spiral track width is designed to be 50mm, the spiral track width and the side wall height ratio is 1:1, the leaf spring inclination angle is selected to be 20°, and the vibration rise angle is 30°. Positioning flip structure: After actual analysis, there are three postures for Agaricus bisporus to land. The first is the upright posture with the mushroom stem facing up, the mushroom cap facing down, and the mushroom cap completely touching the ground; the second is the side-standing posture, the mushroom stem and the mushroom cap are both on the ground, making it in a side-standing posture. In this posture, the mushroom stem of Agaricus bisporus has a certain length; the third is the mushroom cap facing up, and the mushroom cap is basically in contact with the ground. This posture is also the most ideal posture, so no special design is required. In order to meet the requirements of the rear grading task and realize the arrangement posture of Agaricus bisporus with the mushroom cap facing upward, a vibration plate is used to load the materials so that the Agaricus bisporus can be arranged in an orderly manner with the mushroom cap facing upward and the mushroom stem facing downward to enter the identification and sorting area.

[0204] The first posture: a baffle that is inclined upward and gradually retracted is set on the outer side of the slot track, forming a slope track with a distance of 20mm with the inner baffle. The gradually retracted baffle ensures that the Agaricus bisporus can gradually change from an upright posture to a side posture; a baffle rod that is 30° to the tangent direction of the arc is set at the exit to ensure that the Agaricus bisporus standing on its side can be turned over; the second side-standing posture: a baffle that is inclined upward and gradually retracted is designed on the outer side of the loading tray track, forming a slope track with a distance of 20mm with the inner baffle. The gradually retracted baffle ensures that the Agaricus bisporus can gradually change from an upright posture to a side posture; a baffle rod that is 30° to the tangent direction of the arc is set at the exit to ensure that the Agaricus bisporus standing on its side can be turned over; the third is that the mushroom cap is facing up and the mushroom cap is basically in contact with the ground. This posture is also the most ideal posture, so no special design is required. In the classification design of these three postures, when the Agaricus bisporus forms a single row and rises to the upper layer of the disc, a parallel track is separated from the single track, and a baffle is set at the entrance of the branch track. The baffle is parallel to the branch track and the vertical distance from the track is about 20mm, and the angle with the outer side of the track is 60°, so that the Agaricus bisporus in the upright posture and the Agaricus bisporus in the side-standing posture are merged into the branch track. After entering the branch track, a baffle that is inclined upward and gradually retracted is designed on the outer side of the track, forming a slope track with a distance of 20mm from the inner side of the track. The gradually retracted baffle ensures that the Agaricus bisporus can be turned over after standing sideways. Among them, the baffle is set at an angle of 45°, and its function is to discharge the non-turned Agaricus bisporus entering the discharge guide into the spiral material disk; the diverter rod is 50mm long and is set 30mm inward from the starting point of the slot track. Its function is to divert the Agaricus bisporus in the side-standing posture that has not slipped into the slot to the branch track, so as to achieve the twisting and turning of the Agaricus bisporus.

[0205] See also Fig.14 The working principle of the vibrator is as follows: when a sinusoidal current passes through a diode, due to the half-wave rectification of the diode, a current will pass through the electromagnetic coil in the positive half cycle, and an electromagnetic force will be generated. The period of the electromagnetic force is the same as the period of the current. Under the action of the electromagnetic force, the armature will be attracted by the electromagnetic force, and the main vibration spring will be deformed. At this time, the spiral material disk moves downward. In this process, the speed is very fast. Due to inertia, the Agaricus bisporus remains in its original position, but it will fall to the spiral material disk under the action of gravity. When there is no current passing through the electromagnetic coil, no electromagnetic force will be generated, and the main vibration spring will return to its original position. In this way, the Agaricus bisporus will slide upward in the track, thereby achieving the function of feeding. First, the material properties of fresh Agaricus bisporus were measured, and the Agaricus bisporus feeding module was designed based on the measurement results. Through the theoretical analysis of vibration feeding, the parameters of the overall structure of the material tray were obtained, and the flip structure was designed by analyzing the posture of Agaricus bisporus in the natural state to achieve the posture correction of Agaricus bisporus, and docking with the conveying device was realized to realize the real-time feeding of Agaricus bisporus.

[0206] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention.

Claims

1. A Delta robot-based Agaricus bisporus grading system, characterized in that: It comprises an Agaricus bisporus feeding device and a classification and collection device, wherein the Agaricus bisporus feeding device comprises a feeding module and a conveyor belt, one end of the conveyor belt is connected to the feeding module, and the other end of the conveyor belt is connected to the classification and collection device; The classification and collection device includes a robot fixing frame, a visual recognition unit, an upper computer, a Delta robot, a lower computer and an Agaricus bisporus collection box, wherein the lower computer is arranged on the upper end surface of the robot fixing frame, the Delta robot is located on the lower end surface of the robot fixing frame and is connected to the lower computer, the visual recognition unit is arranged on the lower end surface of the robot fixing frame and is connected to the upper computer, the upper computer is arranged on the side of the robot fixing frame, one end of the conveyor belt passes through the robot fixing frame and is located below the Delta robot, and the Agaricus bisporus collection box is arranged on the side of the robot fixing frame and abuts against the conveyor belt; The feeding module conveys the Agaricus bisporus to the visual inspection area of ​​the classification and collection device according to a preset posture through the conveyor belt, the visual recognition unit collects and recognizes the Agaricus bisporus image, and obtains the spatial position and depth information of the Agaricus bisporus, the upper computer converts the spatial position to the terminal center coordinate system where the Delta robot is located, and generates a grasping trajectory according to the current posture of the terminal of the Delta robot and the posture of the Agaricus bisporus, the lower computer receives the grasping trajectory and controls the Delta robot to perform classification grasping and placement according to the preset planning trajectory to complete the graded grasping of the Agaricus bisporus; The Delta robot obtains the position information and motion data of the Agaricus bisporus through the visual recognition unit, and the host computer controls the Delta robot to reach the grasping position corresponding to the grasping trajectory according to the position information and the motion data to complete the sorting of the Agaricus bisporus, and the Agaricus bisporus collection box is used to receive the Agaricus bisporus that has been graded, grasped and sorted.

2. The Agaricus bisporus grading system based on a Delta robot according to claim 1, characterized in that: The execution process of the host computer includes: The object detection model based on YOLOv5 evenly divides the input Agaricus bisporus image into s×s squares. If the center of the Agaricus bisporus is located in a square, the square is determined to be used for predicting the Agaricus bisporus. The predicted border of the Agaricus bisporus image and the probability of the image type are obtained by calculation, and after the predicted border is generated, the center point coordinates, border width and confidence of the border are calculated; Combine the calculated border parameters with the image type probability to output the recognition result; Among them, multiple squares form a grid unit, each grid unit is used to predict multiple prediction boxes, each prediction box is composed of five prediction parameters (x, y, w, h, c), x, y represent the center relative to the grid unit bounding box, w, h represent the width and height of the prediction box relative to the entire image, c represents the conditional probability of the cell being used to predict each prediction box under the confidence level, and the confidence level represents the credibility of the bounding box predicted by the square containing the Agaricus bisporus. The corresponding calculation expression is: Among them, P r (Object) is 1 or 0. If an Object falls into a square, then P r (Object) takes 1, otherwise takes 0; It is the IoU value between the predicted box and the real box. IoU is the intersection over union ratio, which is the ratio of the intersection and union of the predicted bounding box and the actual bounding box. After obtaining the confidence score, the IoU threshold is set to filter out boxes with low scores, and the retained boxes are processed by the non-maximum suppression algorithm to obtain the detection results.

3. The Agaricus bisporus grading system based on a Delta robot according to claim 1, characterized in that: The host computer includes a YOLOv5 target detection model and a Dyhead detection head. The original backbone feature extraction network in the YOLOv5 target detection model is set to a MobileNetV3 network. The input feature map is pooled to a size of 1×1×C, and then flattened, fully connected, and Sigmoid processed, and multiplied with the input feature map on the channel to complete feature extraction; Among them, the MobileNetV3 network introduces the swish function, and the corresponding expression is: swish(x)=x·σ(x) (2) Among them, x represents the input value of the activation function, and σ represents the Sigmoid function; Replace the default box regression loss function CIoU-Loss used in the YOLOv5 target detection model with EIoU-Loss. The corresponding expression is: Among them, L EIoU Represents the optimization loss function, L IoU represents the loss of the overlapping area of ​​the bounding box, L dis represents the center point loss of the bounding box, L asp represents the edge length loss of the bounding box, b represents the predicted box, and b gt represents the true box, and IoU represents the ratio of the intersection of the Agaricus bisporus defect prediction box and the defect true box to their union; The Dyhead detection head includes scale-aware attention, space-aware attention and task-aware attention. The scale-aware attention is used to scale the feature pyramid to the same scale to form a three-dimensional tensor and use it as the input of the dynamic head; the space-aware attention includes multiple dynamic heads of scale-aware, space-aware and task-aware attention stacked in sequence, and focusing on distinctive areas in the image by aggregating features; the task-aware attention is used for the output of the dynamic head, i.e., the representation of different tasks and target detection.

4. The Agaricus bisporus grading system based on a Delta robot according to claim 1, characterized in that: The lower computer includes a kinematic analysis module of the Delta robot, and the kinematic analysis module is used to establish the kinematic equations of the Delta robot and analyze the forward kinematics and inverse kinematics of the Delta robot, wherein the forward kinematics is to preset the specific states of each driving joint of the Delta robot and calculate the exact position and posture of the end effector in space; the inverse kinematics is to determine the angles that each driving joint needs to rotate according to the desired position and posture of the end effector, wherein the end effector belongs to the classification and collection device and is connected to the Delta robot, and the Delta robot includes a fixed platform, a moving platform, three active arms and three driven arms, and the three active arms are driven by motors to realize the movement of the end effector to any position in space; The execution process of the kinematic analysis module includes: Establish a mathematical relationship between the rotation angles of the three control motors of the fixed platform and the coordinates of the center point of the moving platform in the static coordinate system, use the static coordinate system as the absolute coordinate system to find the position vector of the end effector, i.e., the origin of the moving coordinate system, and establish an equation from the origin of the static coordinate system to the end effector to obtain the kinematic equation of the Delta robot, wherein the kinematic equation includes the structural parameters and mathematical model parameters of the Delta robot; The center position coordinates of the end effector are given according to the structural parameters of the Delta robot, the angles between each active arm and the fixed platform of the Delta robot under the position coordinates are solved, and the inverse kinematics solution is performed according to the established kinematic equation to complete the position inverse solution of the Delta robot; The joint angle rotation angle of the Delta robot is obtained and the spatial position coordinates of the end effector are calculated. According to the angles between each active arm and the fixed platform and the kinematic equation, the forward kinematics solution is performed to calculate the coordinates of the end center position to complete the forward position solution of the Delta robot. The actual grasping requirements for Agaricus bisporus grading are obtained to determine the workspace of the Delta robot. The structural parameters and kinematic forward and inverse solution analysis algorithms of the Delta robot are written in Python. The random function random is used to randomly select multiple sets of center position coordinate values ​​within the workspace of the Delta robot. The multiple sets of center position coordinate values ​​are input into the kinematic inverse solution algorithm to obtain the angles between each active arm and the fixed platform corresponding to each set of end position coordinates. The position coordinates of the end effector of the corresponding moving platform are obtained by randomly acquiring angle values ​​according to the forward solution, and the three joint angle values ​​are obtained through the position inverse solution analytical algorithm to complete the mutual verification of the forward and inverse solutions of the Delta robot.

5. The Agaricus bisporus grading system based on a Delta robot according to claim 4, characterized in that: The lower computer also includes a trajectory planning module of the Delta robot, and the trajectory planning module is used to enable the Delta robot to accurately grasp the Agaricus bisporus. The execution process of the trajectory planning module includes: Obtain the preset planned trajectory of the robot and perform trajectory planning on the end effector to determine the trajectory planning principle of the Delta robot, and determine the trajectory planning portal path of the Delta robot based on the trajectory planning principle and the workspace; The difference algorithm of Cartesian space planning is used to compare and analyze the trajectory planning gate path to obtain the trajectory planning method corresponding to the trajectory planning gate path. According to the trajectory planning gate path and the trajectory planning method, the quintic polynomial is used to determine the motion law of the Delta robot to complete the trajectory planning of the Delta robot.

6. The Agaricus bisporus grading system based on a Delta robot according to claim 5, characterized in that: The host computer also includes a coordinate transformation unit, which is used to realize the conversion among the base coordinate system B of the Delta robot, the coordinate system F of the conveyor belt, the coordinate system C of the visual recognition unit, the coordinate system G of the end effector and the coordinate system Q of the grasping point. The execution process of the coordinate transformation unit includes: The classification model algorithm is used to realize the conversion between the pixel coordinate system of the input image and the image coordinate system to obtain the coordinates and size of the center point of the bounding box of the Agaricus bisporus image; The camera internal parameters are used to realize the conversion between the image coordinate system and the camera coordinate system. The camera coordinate system is transformed with the base coordinate system through rigid body transformation. The base coordinate system and the end effector coordinate system are transformed through the inverse kinematic solution. The base coordinate system and the conveyor coordinate system are transformed through the transformation matrix. Achieve conversion; When the Agaricus bisporus moves to the grabbing point along the conveyor belt, the position coordinates of the Agaricus bisporus coincide with the coordinates of the grabbing point, and the position of the grabbing point in the conveyor belt coordinate system is calculated based on the position information fed back by the encoder of the conveyor belt; Determine the transformation matrix between the end effector and the grasping point based on the fixed transformation relationship between the base coordinate system and the end effector coordinate system The instantaneous position of Agaricus bisporus on the conveyor belt is calculated based on the image information collected by the camera and the speed information obtained, and the coordinates corresponding to the instantaneous position are mapped to the end effector coordinate system of the Delta robot to dynamically grasp the real-time coordinates; Among them, the camera belongs to the visual recognition unit. The camera calibration includes camera intrinsic calibration and hand-eye calibration. The camera intrinsic calibration uses a black and white chessboard as the calibration board for calibration. According to the hand-eye calibration, the transformation matrix from the point in the camera coordinate system to the base coordinate system is obtained. The coordinate point Q of Agaricus bisporus in the base coordinate system is preset. B (x B ,y B ,z B ), control the end effector of the Delta robot to reach coordinate point Q B In order to achieve accurate grasping of Agaricus bisporus, the camera pose estimation based on the PNP algorithm is used for hand-eye calibration. The hand-eye calibration process includes: Select seven red markers at different locations and on different surfaces in the workspace of the Delta robot, use a depth camera to capture 1280×720 images, and use an image processing algorithm to detect the pixel coordinate values ​​of the red markers; The end of the Delta robot is controlled to touch seven red markers respectively, and the position coordinates of the seven red markers are obtained by using the inverse kinematics algorithm. The position of the fixed plate in the camera coordinate system is calculated based on the intrinsic parameters obtained by camera calibration, the 2D point coordinates detected on the image, the corresponding 3D point coordinates, and the PNP algorithm. According to the posture and position information of the end effector and the calculated calibration plate posture in the camera coordinate system, the transformation matrix is ​​solved to express the static relationship expression of the end effector relative to the camera coordinate system: in, Represents the transformation matrix from camera coordinates to base coordinate system.

7. The Agaricus bisporus grading system based on a Delta robot according to claim 6, characterized in that: The center position coordinates of the end effector are obtained based on the kinematics forward solution algorithm of the kinematics analysis module and the angular displacements of the three active arms. The workspace of the Delta robot is solved based on the search algorithm to complete the workspace analysis, including: The rotation angle range of the active arm is preset to (-20°, 90°), and the search space and search step length are determined according to the structural parameters of the Delta robot and the kinematics forward solution algorithm, and the search data is generated; Discretize the search space, grid the search data using the meshgrid function, and create a canvas of 8×7; The center position coordinates of the end effector corresponding to the angular displacement are input within the angle range solved by the kinematic forward solution algorithm to form a position coordinate set, and the envelope surface of the position coordinate set is drawn to obtain the workspace verification result.

8. The Agaricus bisporus grading system based on a Delta robot according to claim 6, characterized in that: The conveyor belt encoder is used to feedback the position and speed information of the conveyor belt, and calibrate the conveyor belt according to the conversion relationship between the conveyor belt and the Delta robot. The conveyor belt calibration process includes: Preset the coordinates FP of any point P in the conveyor coordinate system, and then use expression (5-2) to get its coordinates in the base coordinate system: in, Represents the posture matrix of the conveyor belt relative to the Delta robot; The coordinates of the starting point of Agaricus bisporus in the base coordinate system are preset as follows: B P1=( B x1, B y1, B z1) T , B P2=( B x2, B y2, B z2) T , then the distance difference between the two points is: The conveyor belt movement direction is the x-axis, the vertical direction is the y-axis, and the reading v of the conveyor belt position encoder is recorded. The time for the depth camera to acquire the image is t, and the time for the Agaricus bisporus to move into the movement range of the Delta robot is Δt. m , and the conveyor belt displacement ΔL is obtained F =v·Δt m , the encoder scale factor is λ=ΔL B / ΔL F , the expression of the conveyor belt coordinate system is: Then the transformation matrix of the conveyor belt relative to the Delta robot is: According to the relevant data of the conversion matrix and the encoder scale factor, the position coordinates of any point on the conveyor belt in the base coordinate system are determined as follows: Among them, when the Agaricus bisporus is sent to the conveyor belt, the Agaricus bisporus can be regarded as a uniform linear motion with the same speed as the conveyor belt. The displacement of the Agaricus bisporus is consistent with the change of the conveyor belt. The Agaricus bisporus image is collected by the depth camera and the point P (x P ,y P ,z P ), and the conveyor belt speed v fed back by the encoder, and then after Δt m After a certain time, the Agaricus bisporus moves into the motion range of the Delta robot. The time required for the Agaricus bisporus and the Delta robot to meet at point Q is calculated according to the iterative algorithm. The distance between the current position M of the Delta robot and the position P2 is calculated. The X and Y component control method is used to control the Delta robot to start and the Agaricus bisporus reaches a position point Q (x q ,y q ,,z q ) and absorb Agaricus bisporus.

9. The Agaricus bisporus grading system based on a Delta robot according to claim 8, characterized in that: The lower computer also includes a motion control module and a data acquisition module. The motion control module is used to receive control instructions and control the movements of each joint of the Delta robot, and feed back the joint data to the data acquisition module. The data acquisition module is used to feed back the image data and joint data to the upper computer. Among them, the motion control module includes a motion control main program, and the data acquisition module includes an image acquisition program. The motion control main program uses a PID control algorithm to adjust and control the position of the end of the Delta robot in the X and Y directions respectively.

10. The Agaricus bisporus grading system based on a Delta robot according to claim 1, characterized in that: The loading module includes a spiral material tray, a vibrator, a discharge guide rail, a baffle, a notch track, a branch track and a diverter rod, wherein the vibrator is arranged below the inner annular surface of the spiral material tray, the diverter rod is arranged on the outer annular surface of the spiral material tray, the notch track is arranged on the outer annular surface of the spiral material tray and one end of the notch track is connected to the diverter rod, the other end of the notch track is connected to the discharge guide rail, the branch track is arranged on the outer side of the notch guide rail, and the baffle rod is arranged at the connection between the discharge guide rail and the notch guide rail; The vibrator comprises a magnetic tile, an electromagnet, an electromagnetic coil, an armature and a main vibration spring, wherein the magnetic tile is arranged on the inner surface of the spiral material disk, the main vibration spring is arranged on the outer surface of the spiral material disk, two armatures are arranged on the electromagnet and the main vibration spring respectively, and the electromagnetic coil is arranged on the electromagnet; Among them, the blocking rod is used to discharge the non-turned Agaricus bisporus that enters the discharging guide rail into the spiral material tray, and the diverter rod is used to divert the Agaricus bisporus in a sideways posture that has not slipped into the slot track to the branch track to achieve the twisting and turning of the Agaricus bisporus. The landing postures of the Agaricus bisporus include an upright posture with the mushroom cap touching the ground when the mushroom stem is facing up or down, a sideways posture with both the mushroom stem and the mushroom cap touching the ground, and a posture with the mushroom cap facing up and in contact with the ground.

Citation Information

Cited By

  • Target object positioning method and system based on RGB and point cloud information fusion

    CN119338878A

  • Visual sorting method based on Delta robot

    CN120155925A

  • DES-YOLO edible mushroom classification detection method and robot automatic picking strategy

    CN121213881A

  • Greenhouse environment control system, control parameter optimization method, equipment and medium

    CN122387254A