A potato offal identification and positioning method based on Yolo v8-DPE

Through the identification and positioning method of potato debris based on Yolo v8-DPE, the problem of potato debris identification and positioning in potato harvesting is solved. A lightweight network model is constructed to achieve fast and accurate potato debris identification and positioning. It is suitable for real-time applications and meets the needs of potato harvesters. requirements for complex separation scenarios.

CN118379726BActive Publication Date: 2024-08-27QINGDAO AGRI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410831271.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-08-27
Estimated Expiration
2044-06-26

AI Technical Summary

Technical Problem

The problem of identifying and locating potato debris during potato harvesting has not yet been effectively solved. The existing technology is complex and time-consuming, and is not suitable for real-time target detection.

Method used

Adopting the potato trash identification and positioning method based on Yolo v8-DPE, through real-time image collection, preprocessing, instance segmentation, noise reduction processing, determining the center of gravity and pinch points, extracting depth information, combined with the ECA attention mechanism and pruning operations, Construct a lightweight network model suitable for potato toxin separation scenarios.

Benefits of technology

It implements a lightweight network model, occupies little memory, and has fast detection speed. It improves the accuracy of identification of potato debris, is suitable for real-time positioning, shortens the identification time, and meets the needs of potato debris separation scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118379726B
    Figure CN118379726B
Patent Text Reader

Abstract

The present invention relates to the technical field of potato harvesting, and in particular to a potato offal identification and positioning method based on Yolo v8-DPE, which comprises S1. real-time image acquisition in a de-iron removal process; S2. pre-processing the image to reduce image noise, wherein the pre-processing comprises clipping and filtering; S3. performing instance segmentation of potato offal on the pre-processed image using the Yolo v8-DPE algorithm; S4. outputting a mask layer image after instance segmentation, wherein the instance and the background are marked with different colors; S5. performing noise reduction processing on the mask layer image, and eliminating targets whose pixel area in the image is less than a predetermined value; S6. determining the center of gravity of the target potato offal; S7. determining the clamping point of the target potato offal; S8. extracting the depth information of the clamping point of the target potato offal, and calculating the clamping angle. The present invention is based on the Yolo v8n algorithm, and proposes a lightweight network model for potato offal separation scenarios, which occupies little memory, has a fast detection speed, and is suitable for potato and offal separation scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of potato harvesting, in particular to a potato offal identification and positioning method based on Yolo v8-DPE. Background Art

[0002] The planting area of ​​potatoes is increasing as their application value is gradually explored, but large-scale planting makes potato harvesting a problem. At present, the identification and positioning of potatoes and potato offal (including stones, soil blocks, vines, etc.) during potato harvesting is still a problem. Therefore, this problem still needs to be solved manually, and manual work is not only inefficient but also labor-intensive. To solve this problem, this paper proposes an image-based potato offal recognition and positioning method.

[0003] Zhang Xiao and others from the University of the Chinese Academy of Sciences proposed an improved Faster-RCNN IT device image positioning and recognition method. This method mainly improves the attention mechanism, initial anchor frame adjustment, and anchor frame fusion, which improves the accuracy and convergence speed. This method has high accuracy, but the algorithm is complex and the model is time-consuming. Therefore, it is not suitable for real-time target detection.

[0004] Zhang Qin and others from South China University of Technology proposed a method for identifying and locating tomato bunch picking points based on RGB-D information fusion and target detection. This method uses YOLO v4 to quickly identify tomato bunches and harvestable fruit stems, extracts fruit stem images through deep segmentation algorithms, morphological operations, K-means clustering algorithms, and refinement algorithms to obtain the image coordinates of the picking points; matches the fruit stem depth map and color map information to obtain the precise coordinates of the picking points in the camera coordinate system. This algorithm can achieve real-time target detection in complex environments. However, this algorithm has a large amount of calculation and high requirements on device performance.

[0005] Wu Yanjuan and others from Tianjin University of Technology proposed a crop stem recognition and positioning method based on a skeleton extraction algorithm. This method achieves accurate recognition and center positioning of crop stems through multi-level progressive fusion of different image processing algorithms.

[0006] However, this method is easily affected by environmental interference and is not suitable for object detection and positioning in complex environments.

[0007] Zhang Yongchao and others from Shandong University of Science and Technology proposed a method for detecting coal gangue using a single-shot multi-box detector (SSD) machine vision algorithm. Compared with the Faster-RCNN algorithm, this method has further improved the recognition speed and accuracy.

[0008] In summary, the positioning methods proposed by different experts and scholars have largely solved the problems of difficult object positioning and poor positioning accuracy that have always existed in their fields. However, so far, there is still no effective solution to the problem of potato offal identification and positioning during potato offal separation in the field of potato harvesting. Summary of the invention

[0009] The present invention aims to solve the above problems and provides a potato offal identification and positioning method based on Yolo v8-DPE, and the technical solution adopted is as follows:

[0010] A potato offal identification and positioning method based on Yolo v8-DPE, comprising the following steps:

[0011] S1. Real-time image acquisition in the impurity removal process;

[0012] S2. Preprocessing the image to reduce image noise, wherein the preprocessing includes cropping and filtering;

[0013] S3. Use the Yolo v8-DPE algorithm to perform instance segmentation on the preprocessed image;

[0014] S4. Output the mask layer image after instance segmentation, where the instance and the background are marked with different colors;

[0015] S5. Perform noise reduction on the mask layer image and remove targets whose pixel areas are smaller than a predetermined value in the image;

[0016] S6. Determine the center of gravity of the target potatoes;

[0017] S7. Determine the clamping point of the target potatoes;

[0018] S8. Extract the depth information of the target potato and offal clamping point and calculate the clamping angle.

[0019] On the basis of the above scheme, in step S1, a picture acquisition device is used to acquire images, and the picture acquisition device includes a conveyor belt and a light shield. The conveyor belt is arranged in the light shield, and potatoes and potato offal to be identified are placed on the conveyor belt. A camera for taking images of potatoes and potato offal is arranged on the top of the light shield, and light sources are symmetrically arranged on both sides of the camera.

[0020] Preferably, the Yolo v8-DPE algorithm sets two detection heads, including a P4 / 16 detection head and a P5 / 32 detection head. The detection feature map size corresponding to the P4 / 16 detection head is 40*40, which is used to detect targets larger than 16*16. The detection feature map size corresponding to the P5 / 32 detection head is 20*20, which is used to detect targets larger than 32*32.

[0021] Preferably, the Yolo v8-DPE algorithm includes an ECA attention mechanism.

[0022] Preferably, a pruning operation is performed on the Yolo v8n algorithm.

[0023] Preferably, in step S6, assuming that the potato debris target is an object with uniform thickness and density, the centroid of the two-dimensional image of the potato debris target is the center of gravity of the potato debris target, and the image moment is used to calculate the centroid of the two-dimensional image, as shown in formula (1):

[0024] (1);

[0025] in, is the x-axis coordinate of the center of mass, is the y-axis coordinate of the center of mass, is the zero-order moment of the image, and is the first-order moment of the image.

[0026] Preferably, step S7 includes:

[0027] S7-1. Use machine vision algorithm to find the target potato outline and its minimum circumscribed rectangle;

[0028] S7-2. Make a straight line through the center of the target potato impurity and parallel to the end face of the minimum circumscribed rectangle;

[0029] S7-3. Set the two intersection points of the straight line in step S7-2 and the target potato offal contour as clamping points.

[0030] Based on the above solution, step S7-3 includes:

[0031] S7-3-1. Traverse all points on the target potato contour;

[0032] S7-3-2. Calculate the distance between each point and the straight line in step S7-2;

[0033] S7-3-3. Set the distance threshold and retain the points that meet the threshold conditions;

[0034] S7-3-4. Delete the points adjacent to the straight line in step S7-2 from the remaining points, and record the remaining two points as A i ,B i , then A i ,B i The clamping point.

[0035] Preferably, the clamping points are defined as A i ,B i , then A i ,B i The slope k of the straight line is

[0036] (2);

[0037] The angle between the line and the x-axis is for

[0038] (3);

[0039] The angle between the line and the y-axis for

[0040] (4).

[0041] Preferably, bilateral filtering is adopted in step S2 and step S5.

[0042] The beneficial effects of the present invention are as follows: based on the Yolo v8n algorithm, a lightweight network model for potato and offal separation scenarios is proposed, which occupies little memory and has a fast detection speed, and is suitable for potato and offal separation scenarios; deep learning is introduced to improve the accuracy of potato and offal recognition; a machine vision algorithm is used to locate the center of gravity of potato and offal, thereby improving the stability of the subsequent potato and offal grasping process; the grasping angle of potato and offal and the opening and closing angle of the gripper can be obtained without complex posture estimation, thereby shortening the recognition time and meeting the requirements of real-time positioning. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 It is the technical roadmap of the present invention;

[0044] Figure 2 This is a structural schematic diagram of the picture acquisition device of the present invention;

[0045] Figure 3 A specific process diagram for determining a target clamping point according to the present invention;

[0046] Figure 4 This is an example flow chart of potato offal identification and positioning according to the present invention;

[0047] Figure 5 This is a network model diagram of the present invention;

[0048] Figure 6 This is a diagram of the residual block calculation structure model in the Yolo v8-DPE algorithm of the present invention;

[0049] Figure 7 This is a diagram of the convolutional layer calculation structure model in the Yolo v8-DPE algorithm of the present invention;

[0050] Figure 8 This is a diagram of the spatial pyramid pooling calculation structure model in the Yolo v8-DPE algorithm of the present invention;

[0051] Fig. 9This is a diagram of the calculation structure model of the residual bottleneck module in the Yolo v8-DPE algorithm of the present invention;

[0052] Fig.10 This is a diagram of the calculation structure model of the detection head in the Yolo v8-DPE algorithm of the present invention;

[0053] Fig.11 This is a test effect diagram of the present invention using the Yolo v8n algorithm;

[0054] Fig.12 This is a diagram showing the experimental effect of the Yolo v8-DPE algorithm used in the present invention.

[0055] Explanation of the reference numerals: 1 - camera, 2 - light source, 3 - light shield, 4 - conveyor belt, 5 - motor. DETAILED DESCRIPTION

[0056] The present invention will be further described below in conjunction with the accompanying drawings and embodiments:

[0057] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be directly connected or indirectly connected through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0058] In the description of the present invention, it should be understood that the terms "center", "length", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, "multiple" means two or more.

[0059] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may include that the first and second features are in direct contact, or may include that the first and second features are not in direct contact but are in contact through another feature between them. Moreover, a first feature being "above", "above" and "above" a second feature includes that the first feature is directly above and obliquely above the second feature, or simply indicates that the first feature is higher in level than the second feature. A first feature being "below", "below" and "below" a second feature includes that the first feature is directly below and obliquely below the second feature, or simply indicates that the first feature is lower in level than the second feature.

[0060] like Figures 1 to 5 As shown, a potato offal identification and positioning method based on Yolo v8-DPE includes the following steps:

[0061] S1. Real-time image acquisition in the impurity removal process;

[0062] S2. Preprocessing the image to reduce image noise, wherein the preprocessing includes cropping and filtering;

[0063] S3. Use the Yolo v8-DPE algorithm to perform instance segmentation on the preprocessed image;

[0064] S4. Output the mask layer image after instance segmentation, where the instance and the background are marked with different colors;

[0065] S5. Perform noise reduction on the mask layer image and remove targets whose pixel areas are smaller than a predetermined value in the image;

[0066] S6. Determine the center of gravity of the target potatoes;

[0067] S7. Determine the clamping point of the target potatoes;

[0068] S8. Extract the depth information of the target potato and offal clamping point, obtain the three-dimensional coordinate value of the clamping point, and calculate the clamping angle, so as to provide the clamping position, grasping depth, grasping angle and other information of the clamp for the subsequent potato and offal removal process.

[0069] Specifically, Figure 2 As shown, in step S1, an image acquisition device is used to acquire images. The image acquisition device includes a conveyor belt 4 and a light shield 3. The conveyor belt 4 is arranged in the light shield 3, driven and rotated by a motor 5, and potatoes and potato offal to be identified are placed on the conveyor belt 4. A camera 1 for photographing images of potatoes and potato offal is arranged on the top of the light shield 3. The camera adopts a ZED binocular camera. Light sources 2 are symmetrically arranged on both sides of the camera 1. The light source 2 can be a strip light source. The symmetrical installation can provide sufficient light illumination for the image acquisition device and prevent the problem of poor quality of the collected images caused by light reflection.

[0070] The preprocessing in step S2 includes cropping and filtering. The size of the cropped image is 640*640. Bilateral filtering is used in this step, which combines the spatial proximity and pixel value similarity of the image, and considers the spatial domain information and grayscale similarity to achieve the purpose of edge-preserving denoising. This method is simple, non-iterative, and localized, and is particularly suitable for processing edge information of images.

[0071] The formula for bilateral filtering can be expressed as:

[0072]

[0073] in:

[0074] is the pixel value after filtering, is the pixel value of the original image, is the normalized weight, used to normalize the filtering result, represents the neighborhood window of the filter, is a spatial domain kernel function used to calculate the spatial distance weight between pixels. It is a pixel value domain kernel function, which is used to calculate the similarity weights between pixel values.

[0075] Because over-filtering will lose the original texture, color and other features of the target, the diameter range d of each pixel neighborhood is given a value of 7; the sigma value sigmaColor of the color space filter is 20; the value of sigmaSpace is 50. If the sigmaSpace value is large, it means that distant pixels with similar colors will affect each other, so that sufficiently similar colors in a larger area will obtain the same color.

[0076] Step S3 improves the Yolo v8n algorithm to form the Yolo v8-DPE algorithm. The network model is shown in the figure below. Figures 5 to 10 As shown in the figure, the Yolo v8-DPE network includes input, convolutional layer, residual block, spatial pyramid pooling, ECA attention mechanism, upsampling, feature fusion and detection head modules. Among them, the convolutional layer includes two-dimensional convolution, batch normalization and activation function; the residual block includes convolutional layer, channel splitting, residual bottleneck module and feature fusion; the residual bottleneck module includes 2 convolutional layers; spatial pyramid pooling includes convolutional layer, maximum pooling and channel splicing; the detection head includes convolutional layer, two-dimensional convolution, bounding box loss and classification loss. Each module is combined into two links to calculate the bounding box loss and classification loss respectively.

[0077] The Yolo v8-DPE network mainly consists of four parts: input end, backbone extraction network, neck network and detection head. The function of the input end is to input image data into the model. The function of the backbone extraction network is to extract features from the input image. The image input to the network first passes through two convolutional layers for feature extraction, then passes through the residual block to enrich the feature information, and then passes through three convolutional layers and residual blocks to extract features of different sizes. After that, it passes through spatial pyramid pooling to output a fixed-size feature vector and enters the ECA attention mechanism to capture important features. The function of the neck network is to deeply fuse the features extracted by the backbone network. The feature vector output in the ECA attention mechanism is upsampled to ensure that the feature sizes of the two parts of feature fusion are the same, then upsampled, and then two convolutional layers, feature fusion and residual blocks are combined to perform deep fusion of high-dimensional features and low-dimensional features, and link to the detection head in the residual block part. The function of the detection head is to predict the features and obtain the location information and category information of the target. The network is equipped with two detection heads, which are used to detect targets with a size of more than 8*8 and more than 16*16 respectively. The detection head is divided into two links. The first link includes two convolutional layers, a two-dimensional convolution and a boundary loss module. The second link includes two convolutional layers, a two-dimensional convolution and a classification loss module. These two links are used to calculate the bounding box loss and classification loss respectively.

[0078] The improvements compared to the traditional Yolo v8n algorithm are:

[0079] (1) The Yolo v8-DPE algorithm sets two detection heads, including a P4 / 16 detection head and a P5 / 32 detection head. The detection feature map size corresponding to the P4 / 16 detection head is 40*40, which is used to detect targets larger than 16*16. The detection feature map size corresponding to the P5 / 32 detection head is 20*20, which is used to detect targets larger than 32*32. Since small-volume potato offal will automatically fall during the pick-up and initial transmission process and will not move with the potatoes to the potato offal separation stage, the detection heads in the original algorithm are deleted, and the detection heads used to detect small targets are removed to simplify the algorithm model and the amount of calculation.

[0080] (2) The Yolo v8-DPE algorithm includes the ECA attention mechanism, which performs weighted summation on each channel of the feature map through a window function to calculate the weight of each channel. The ECA attention mechanism assigns different weights to different channels, emphasizes important channels, and suppresses unimportant channels, so that the network model can focus more on key features during the learning process, thereby improving model performance. Since the Yolo v8-DPE algorithm reduces the number of detection heads compared to the Yolo v8n algorithm, the recall rate of the results is improved by introducing the ECA attention mechanism.

[0081] (3) Prune the Yolo v8n algorithm to reduce the computational complexity and storage requirements of the model, while trying to maintain the model's predictive ability and achieve model lightweighting while ensuring the accuracy of the model's calculation results.

[0082] On the same device, we configured the python 3.9 environment and the GTX 1650 (4G) graphics card to test the same test set (200 images). The experimental results are as follows: Fig.11 , Fig.12 As shown in Table 1.

[0083] Table 1 Comparison test data between Yolo v8-DPE algorithm and Yolo v8n algorithm

[0084]

[0085] By comparison Fig.11 and Fig.12 It can be seen that Yolo v8n is better than Yolo v8-DPE in segmentation accuracy, and Yolo v8-DPE is worse than Yolo v8n in recognition accuracy and edge segmentation. However, the actual effect of Yolo v8-DPE can already meet the potato and offal separation scenario.

[0086] As can be seen from Table 1, the accuracy of the Yolo v8-DPE model is 0.05 less than that of the Yolo v8n, and the segmentation loss of the Yolo v8-DPE model is 0.31 more than that of the Yolo v8n. Since Yolo v8-DPE adds the ECA attention mechanism, the recall rate of the Yolo v8-DPE model is 0.07 higher than that of Yolo v8n. After pruning, the model size is reduced from 6680kB to 2166kB, and the frame rate is also increased from 6 frames to 11 frames.

[0087] In step S4, black is used to represent the offal and white is used to represent the background, so that the position and shape of each instance in the image can be intuitively seen.

[0088] In step S5, the predetermined pixel area value is set to 20, and the area of ​​each target in the image is calculated. The target with a pixel area less than 20 is regarded as interference and removed. At this time, there is still salt and pepper noise inside the target. Since the mask layer image is a binary image, the bilateral filtering method is used here to reduce the noise of the image.

[0089] like Figure 3As shown, in step S6, assuming that the potato debris target is an object with uniform thickness and density, the centroid of the two-dimensional image of the potato debris target is the center of gravity of the potato debris target, and the image moment is used to calculate the centroid of the two-dimensional image, as shown in formula (1):

[0090] (1);

[0091] in, is the x-axis coordinate of the center of mass, is the y-axis coordinate of the center of mass, is the zero-order moment of the image, and is the first-order moment of the image, where , , .

[0092] Due to the irregular shape of potatoes, especially for vines, the center of mass may not be on the target object, and the target is easily lost during the target tracking and positioning process. Therefore, this method uses the clamping point as the auxiliary positioning point of the object. Figure 4 As shown, step S7 includes:

[0093] S7-1. Use machine vision algorithm to find the target potato outline and its minimum circumscribed rectangle;

[0094] S7-2. Make a straight line through the center of the target potato impurity and parallel to the end face of the minimum circumscribed rectangle;

[0095] S7-3. Set the two intersection points of the straight line in step S7-2 and the target potato offal contour as clamping points.

[0096] Since the contour of the target object identified by the machine vision algorithm is stored in the form of points, there is a problem in directly finding the intersection point of the straight line and the contour of the target object, so step S7-3 includes:

[0097] S7-3-1. Traverse all points on the target potato contour;

[0098] S7-3-2. Calculate the distance between each point and the straight line in step S7-2;

[0099] S7-3-3. Set the distance threshold and retain the points that meet the threshold conditions;

[0100] S7-3-4. Delete the points adjacent to the straight line in step S7-2 from the remaining points, and record the remaining two points as A i ,B i , then A i ,B i The clamping point.

[0101] The distance formula between two points

[0102]

[0103] It can provide a reference for the opening and closing distance of the gripper in the subsequent grasping process.

[0104] A i ,B i The slope k of the straight line is

[0105] (2);

[0106] The angle between the line and the x-axis is for

[0107] (3);

[0108] The angle between the line and the y-axis for

[0109] (4).

[0110] By calculating the above angle, a gripping angle is provided for subsequent gripping actions.

[0111] The present invention is described above by way of examples, but the present invention is not limited to the above specific embodiments, and any changes or modifications made based on the present invention belong to the scope of protection claimed by the present invention.

Claims

1. A potato offal identification and positioning method based on Yolo v8-DPE, characterized in that: The following steps are involved: S1. Real-time image acquisition in the impurity removal process; S2. Preprocessing the image to reduce image noise, wherein the preprocessing includes cropping and filtering; S3. Use the Yolo v8-DPE algorithm to perform instance segmentation on the preprocessed image; S4. Output a mask layer image after instance segmentation, where the instance and the background in the mask layer image are marked with different colors; S5. Performing noise reduction processing on the mask layer image, and removing targets whose pixel areas in the mask layer image are smaller than a predetermined value; S6. Determine the center of gravity of the target potatoes; S7. Determine the clamping point of the target potatoes; S8. extracting the depth information of the target potato clipping point and calculating the clipping angle; In step S6, assuming that the potato and debris target is an object with uniform thickness and density, the centroid of the two-dimensional image of the potato and debris target is the center of gravity of the potato and debris target, and the image moment is used to calculate the centroid of the two-dimensional image, as shown in formula (1): (1) in, is the x-axis coordinate of the center of mass, is the y-axis coordinate of the center of mass, is the zero-order moment of the image, and is the first-order moment of the image; Step S7 includes: S7-1. Use machine vision algorithm to find the target potato outline and its minimum circumscribed rectangle; S7-2. Make a straight line through the center of the target potato impurity and parallel to the end face of the minimum circumscribed rectangle; S7-3. Set the two intersection points of the straight line in step S7-2 and the target potato offal contour as clamping points.

2. According to a method for identifying and locating potato offal based on Yolo v8-DPE according to claim 1, it is characterized in that: In step S1, an image acquisition device is used to acquire images. The image acquisition device comprises a conveyor belt (4) and a light shield (3). The conveyor belt (4) is arranged inside the light shield (3). Potatoes and potato offal to be identified are placed on the conveyor belt (4). A camera (1) for capturing images of potatoes and potato offal is arranged on the top of the light shield (3). Light sources (2) are symmetrically arranged on both sides of the camera (1).

3. The potato offal identification and positioning method based on Yolo v8-DPE according to claim 1 is characterized in that: The Yolo v8-DPE algorithm sets two detection heads, including a P4 / 16 detection head and a P5 / 32 detection head. The detection feature map size corresponding to the P4 / 16 detection head is 40*40, which is used to detect targets larger than 16*16. The detection feature map size corresponding to the P5 / 32 detection head is 20*20, which is used to detect targets larger than 32*32.

4. The potato offal identification and positioning method based on Yolo v8-DPE according to claim 1 is characterized in that: The Yolo v8-DPE algorithm includes the ECA attention mechanism.

5. The potato offal identification and positioning method based on Yolo v8-DPE according to claim 1 is characterized in that: Perform pruning operations on the Yolo v8 algorithm.

6. The potato offal identification and positioning method based on Yolo v8-DPE according to claim 1 is characterized in that: Step S7-3 includes: S7-3-1. Traverse all points on the target potato contour; S7-3-2. Calculate the distance between each point and the straight line in step S7-2; S7-3-3. Set the distance threshold and retain the points that meet the threshold conditions; S7-3-4. Delete the points adjacent to the straight line in step S7-2 from the remaining points, and record the remaining two points as A i ,B i , then A i ,B i The clamping point.

7. The potato offal identification and positioning method based on Yolo v8-DPE according to claim 1 is characterized in that: Define the clamping points as A i ,B i , then A i ,B i The slope k of the straight line is (2) The angle between the line and the x-axis is for (3) The angle between the line and the y-axis for (4)。 8. The potato offal identification and positioning method based on Yolo v8-DPE according to claim 1 is characterized in that: In step S2 and step S5, bilateral filtering is adopted.