Weed cleaning method and system based on image recognition

Image recognition technology is used to collect images of crops and weeds in real time and automatically adjust the wheelbase of the weeder, solving the problem of crops being crushed by the moving wheels of the fully automatic laser weeder, improving weeding efficiency and protecting crops.

CN118648595AActive Publication Date: 2024-09-17XUCHANG CHUNGUANG MASCH TECH CO LTD

Patent Information

Application Number
CN202410835579.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-17
Estimated Expiration
2044-06-26

AI Technical Summary

Technical Problem

In a fully automatic laser weeder, the moving wheels of the weeder tend to crush crops during movement, and the inconsistent row spacing of crops makes it difficult to adjust the wheel spacing, affecting weeding efficiency and crop protection.

Method used

By collecting images of crops and weeds in real time, the image recognition system is used to output the minimum distance and midpoint coordinates between crops, and the wheelbase of the weeder is automatically adjusted to ensure the precise position and speed of the moving wheels between crops.

Benefits of technology

It realizes the automatic wheelbase adjustment of the weeder under different crop spacing conditions, prevents rolling, improves weeding efficiency and crop protection, and has the characteristics of efficient weeding and crop protection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118648595A
    Figure CN118648595A
Patent Text Reader

Abstract

The invention is suitable for the technical field of laser weeding, and provides a weed cleaning method and system based on image recognition, and the method comprises the steps: collecting the pictures of crops and weeds in real time, uploading the pictures of crops and weeds to an image recognition system, outputting the minimum distance and midpoint coordinates between two rows of crops, and carrying out the image recognition. According to the method for controlling the wheel track of the weeding machine according to the minimum distance between crops and the midpoint coordinates, the purpose of automatically adjusting the wheel track according to the minimum line spacing and the coordinates of the crops is achieved, and the situation that moving wheels press the trunks of the crops in the laser weeding process of the weeding machine is prevented; therefore, the effect of protecting crops to the maximum extent while rapid laser weeding is achieved, and the advantages of efficient weeding and crop protection are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of laser weeding, and in particular to a weed clearing method and system based on image recognition. Background Art

[0002] The fully automatic laser weeder combines image processing, data fusion, machine vision, and real-time control systems. It not only has the function of automatically identifying weeds and crops, but also can kill weeds from the roots by emitting lasers into the grass core. It is efficient, environmentally friendly and precise.

[0003] During the laser process, the moving wheels under the weeder need to move along the ridges or ridges between two rows of crops. When the distance between the crops on both sides of the ridges or ridges or the row spacing of the crops are inconsistent, the moving wheels are likely to crush the crops. Based on the above problems, the fully automatic laser weeder is also required to be able to automatically adjust the wheel spacing of the weeder according to the position of the crops to meet the needs of efficient weeding by the fully automatic laser weeder. Summary of the invention

[0004] In view of the deficiencies in the prior art, the object of the present invention is to provide a weed clearing method and system based on image recognition to solve the problems existing in the above-mentioned background technology.

[0005] The present invention is implemented as follows: a weed clearing method based on image recognition, the method comprising the following steps: Collect crop and weed images in real time; Upload the crop and weed pictures to the image recognition system, and output the minimum distance and midpoint coordinates between two rows of crops; The wheel width of the weeder is controlled according to the minimum distance between crops and the midpoint coordinates.

[0006] As a further solution of the present invention: the step of uploading the crop and weed pictures to the image recognition system and outputting the minimum distance and midpoint coordinates between two rows of crops specifically includes: Upload pictures of crops and weeds to an image recognition system; Match the farmland image data with the weed image standard library and crop image standard library in the image recognition system; Output the contour image of the crop trunk on both sides of the weeds; According to the contours of the crop trunks on both sides of the weeds, capture the two points closest to the crop trunks on both sides; Output the minimum distance between two rows of crops based on the two points on the crop trunks that are closest to each other.

[0007] As a further solution of the present invention: the step of capturing the two closest points of the trunks of the crops on both sides of the weeds according to the contour map of the trunks of the crops on both sides specifically includes: The coordinate points P1 (x1, y1, z1) and P2 (x2, y2, z2) are captured on the contour map of the crop trunk on both sides of the weeds, where y is the moving direction of the weeder and x is the direction perpendicular to y; Calculate the crop row spacing S based on the coordinate points P1 (x1, y1, z1) and P2 (x2, y2, z2); The above method is used to obtain the row spacing S of several crops by capturing different coordinate points on the contour map of the crop trunks on both sides of the weeds; Use the numerical comparison method to analyze several crop row spacings S, and output the minimum distance S1 between two rows of crops and the coordinate points P1 (x1, y1, z1) and P2 (x2, y2, z2); The midpoint coordinates P3 (x3, y3) of the two rows of crops are obtained according to the minimum distance S1 between the two rows of crops and the coordinate points P1 (x1, y1, z1) and P2 (x2, y2, z2).

[0008] As a further solution of the present invention: the step of obtaining the midpoint coordinates P3 (x3, y3) of the two rows of crops according to the minimum distance S1 between the two rows of crops and the coordinate points P1 (x1, y1, z1) and P2 (x2, y2, z2) specifically includes: Get the projection coordinates P1(x1, y1) and P2(x2, y2) of the coordinate points P1(x1, y1, z1) and P2(x2, y2, z2) in the horizontal plane respectively; According to x3=(x1+x2) / 2,y3=(y1+y2) / 2, the coordinates P3(x3,y3) of the midpoint of the two rows of crops are calculated. According to the moving speed of the moving wheel and the difference between y3 and y4, the time taken for P4(x4,y4) to move to P3(x3,y3) can be obtained. In order to accurately calculate the position of x3 that can be adjusted to x4 when P4 moves to P3, the difference between x3 and x4 is first calculated. Then, the adjustment speed of the moving wheel is calculated according to the difference between x3 and x4 and the time difference. The adjustment speed refers to the speed used to adjust the moving wheel moving in the X direction. It not only realizes the function of adjusting the moving wheel distance according to the crop row spacing, but also realizes the function of real-time regulating the adjustment speed of the moving wheel according to the crop coordinate position in the moving direction of the weeder. It is suitable for the situation where the position of the moving wheel can be quickly adjusted when the distances between the crops in the moving direction of the weeder are unequal.

[0009] As a further solution of the present invention: the step of controlling the wheelbase of the weeder according to the minimum distance between the crops and the midpoint coordinates specifically includes: Real-time monitoring of the coordinates P4 (x4, y4, z4) of the moving wheels on both sides of the lawn mower; Get the projection coordinates P4 (x4, y4) of the moving wheels on both sides of the machine in the horizontal plane, where y3 is in front of y4; The movement of the moving wheels on both sides of the weeder is controlled according to the midpoint coordinates P3 (x3, y3) of the crops on both sides of each moving wheel.

[0010] As a further solution of the present invention: the step of controlling the movement of the moving wheels on both sides of the weeder according to the midpoint coordinates P3 (x3, y3) of the crops on both sides of each moving wheel specifically includes: Get the moving speed of the moving wheel; Calculate the time difference based on the moving speed of the moving wheel and the difference between y3 and y4; Calculate the difference based on x3 and x4; Calculate the adjustment speed of the moving wheel according to the difference between x3 and x4 and the time difference; The moving wheel is controlled according to the adjustment speed to adjust P4 (x4, y4) to P3 (x3, y3).

[0011] A weed clearing system based on image recognition, the system comprising: Data collection module, used to collect pictures of crops and weeds in real time; A calculation module is used to upload pictures of crops and weeds to the image recognition system and output the minimum distance and midpoint coordinates between two rows of crops; The wheelbase adjustment module is used to control the wheelbase of the weeder according to the minimum distance between crops and the midpoint coordinates.

[0012] As a further solution of the present invention: the calculation module includes: A data upload unit for uploading pictures of crops and weeds to an image recognition system; A matching unit, used for matching the farmland image data with a weed image standard library and a crop image standard library in the image recognition system; An output unit, used for outputting contour images of crop trunks on both sides of the weeds; A coordinate point capture unit is used to capture the two closest points on the crop trunks on both sides of the weeds according to the contour map of the crop trunks on both sides of the weeds; The calculation unit is used for outputting the minimum distance between two rows of crops according to the two points closest to the trunks of the crops on both sides.

[0013] As a further solution of the present invention: the wheelbase adjustment module includes: A camera module, wherein the initial distance between the camera and the moving wheel is fixed, and when the moving wheel moves, the camera module is used to monitor the coordinates P4 (x4, y4, z4) of the moving wheels on both sides of the weeder in real time; A projection coordinate acquisition module is used to acquire the projection coordinates P4 (x4, y4) of the moving wheels on both sides of the lawn mower in the horizontal plane, where y3 is in front of y4; The control module is used to control the movement of the moving wheels on both sides of the weeder according to the midpoint coordinates P3 (x3, y3) of the crops on both sides of each moving wheel.

[0014] As a further solution of the present invention: the control module includes: A speed sensor, used to obtain the moving speed of the moving wheel; A timing module is used to calculate the time difference according to the moving speed of the moving wheel and the difference between y3 and y4; A difference calculation unit, used for calculating a difference according to x3 and x4; A speed calculation unit, used for calculating the adjustment speed of the moving wheel according to the difference between x3 and x4 and the time difference; The telescopic module is used to control the moving wheel to adjust P4 (x4, y4) to P3 (x3, y3) according to the adjustment speed. One end of the telescopic module is fixedly connected to the lawn mower, and the other end of the telescopic module is connected to the moving wheel. The speed calculation unit is in communication with the telescopic module.

[0015] Compared with the prior art, the beneficial effects of the present invention are as follows: by collecting pictures of crops and weeds in real time, uploading the pictures of crops and weeds to an image recognition system, outputting the minimum distance and midpoint coordinates between two rows of crops, and controlling the wheelbase of the weeder according to the minimum distance and midpoint coordinates between the crops, the purpose of automatically adjusting the wheelbase according to the minimum row spacing and coordinates of the crops is achieved, and the moving wheels of the weeder are prevented from pressing on the trunks of the crops during laser weeding, thereby achieving the effect of rapid laser weeding while maximally protecting the crops, and having the characteristics of efficient weeding and crop protection. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 The figure is a flow chart of a weed clearing method based on image recognition.

[0017] Figure 2 The present invention is a flowchart of uploading pictures of crops and weeds to an image recognition system in a weed clearing method based on image recognition, and outputting the minimum distance and midpoint coordinates between two rows of crops.

[0018] Figure 3The present invention is a flow chart of capturing the two closest points on the trunks of crops on both sides of weeds according to the contours of the trunks of crops on both sides of weeds in a weed clearing method based on image recognition.

[0019] Figure 4 The present invention is a flow chart of controlling the wheel width of a weeder according to the minimum distance and midpoint coordinates between crops in a weed clearing method based on image recognition.

[0020] Figure 5 The present invention is a flow chart of controlling the movement of moving wheels on both sides of a weed remover according to the midpoint coordinates P3 (x3, y3) of crops on both sides of each moving wheel in a weed clearing method based on image recognition.

[0021] Figure 6 The schematic diagram of the structure of a weed cleaning system based on image recognition is shown in FIG.

[0022] Figure 7 The figure is a schematic diagram of the structure of a computing module in a weed clearing system based on image recognition.

[0023] Figure 8 The figure is a structural schematic diagram of a wheelbase adjustment module in a weed clearing system based on image recognition.

[0024] Fig. 9 The figure is a schematic diagram of the structure of a control module in a weed clearing system based on image recognition. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0026] The specific implementation of the present invention is described in detail below in conjunction with specific embodiments.

[0027] like Figure 1 As shown, an embodiment of the present invention provides a weed clearing method based on image recognition, and the method comprises the following steps: S100, real-time collection of crop and weed images; S200, uploads the crop and weed pictures to the image recognition system and outputs the minimum distance and midpoint coordinates between two rows of crops; S300, controls the wheel width of the weeder according to the minimum distance between crops and the midpoint coordinates.

[0028] In the embodiment of the present invention, before uploading the crop and weed pictures to the image recognition system, it is necessary to process the pictures using image preprocessing technology, feature extraction technology and image segmentation technology. The image preprocessing technology includes denoising, image enhancement, shadow and reflection elimination. Denoising refers to the use of multiple filtering algorithms (such as median filtering, Gaussian filtering, etc.) to eliminate illumination, environment and sensor noise. Image enhancement includes contrast enhancement and clarity enhancement, and uses algorithms (such as histogram equalization) to enhance image quality. Shadow and reflection elimination refers to the use of special algorithms to weaken or eliminate the effects of light changes in the image. Feature extraction technologies include color features, texture features, shape features, and spectral features. Color features are used to extract color features of crops and weeds by analyzing images captured by cameras, such as the leaf color of plants and the greenness of weeds. Texture features are used to detect and distinguish the texture differences between plants and weeds, including leaf texture and leaf shape. Spectral features are used to obtain reflectance spectrum data in different bands using multispectral sensors to distinguish plants from weeds. Image segmentation technology includes semantic segmentation and instance segmentation. Semantic segmentation uses deep learning (such as CNN) to segment images and identify plants, weeds and other backgrounds. Instance segmentation distinguishes between individual plant entities in the image, allowing each instance to be processed separately.

[0029] like Figure 2 As shown, as a preferred embodiment of the present invention, the step of uploading the crop and weed pictures to the image recognition system and outputting the minimum distance and midpoint coordinates between two rows of crops specifically includes: S210, uploading pictures of crops and weeds to an image recognition system; S220, matching the farmland image data with a weed image standard library and a crop image standard library in the image recognition system; S230, outputting the contour image of the crop trunk on both sides of the weeds; S240, based on the contours of the crop trunks on both sides of the weed, captures the two points closest to the crop trunks on both sides; S250, outputting the minimum distance between two rows of crops according to the two points on the trunks of the crops on both sides that are closest to each other.

[0030] In the embodiment of the present invention, the weed image standard library and the crop image standard library in the image recognition system are established by using artificial intelligence and machine learning technology, and the establishment method is as follows: first, a convolutional neural network (CNN) is used to train the model to automatically extract features in the image, including the boundaries and textures of plants and weeds, and then a pre-trained deep learning model (such as ResNet, VGG, etc.) is used to identify plants and weeds through fine-tuning to accelerate the training of the model and improve performance. Dimensionality reduction techniques such as principal component analysis (PCA) or linear discriminant analysis (LDA) are used to reduce feature dimensions while maintaining key information to improve the efficiency of the algorithm. It should be noted that the crop image standard library also stores the contour map of the crop trunk. When the crop image matches the crop image standard library, the contour map of the crop trunk is output, and the distance between the crop trunks represents the row spacing of the crop. In addition, the present application can also automatically and evenly capture a number of coordinate points on the contour map of the crop trunk, and automatically calculate the distance between the coordinate point of the crop trunk on one side of the weeds and the coordinate point of the crop trunk on the other side of the weeds. The method of measuring the distance between two coordinate points in space is a prior art and will not be described in detail here. The distances between several two points are calculated according to the above method, and the minimum distance among the several distances is analyzed.

[0031] like Figure 3 As shown, as a preferred embodiment of the present invention, the step of capturing the two closest points of the crop trunks on both sides of the weeds according to the contour map of the crop trunks on both sides specifically includes: S2410, capturing coordinate points P1 (x1, y1, z1) and P2 (x2, y2, z2) on the contour map of the crop trunk on both sides of the weeds, respectively, where y is the moving direction of the weeder and x is the direction perpendicular to y; S2420, calculating the crop row spacing S according to the coordinate points P1 (x1, y1, z1) and P2 (x2, y2, z2); S2430, using the above method to capture different coordinate points on the contour map of the crop trunks on both sides of the weeds to obtain a plurality of crop row spacings S; S2440, analyzing several crop row spacings S by using a numerical comparison method, and outputting the minimum distance S1 between two rows of crops and coordinate points P1 (x1, y1, z1) and P2 (x2, y2, z2); S2450 , obtaining the midpoint coordinates P3 (x3, y3) of the two rows of crops according to the minimum distance S1 between the two rows of crops and the coordinate points P1 (x1, y1, z1) and P2 (x2, y2, z2).

[0032] In the embodiment of the present invention, firstly, a plurality of coordinate points P1 (x1, y1, z1) and a plurality of P2 (x2, y2, z2) are captured on the contour map of the crop trunks on both sides of the weeds, and then a plurality of crop row spacings S are calculated according to the plurality of coordinate points P1 (x1, y1, z1) and a plurality of P2 (x2, y2, z2). Then, the plurality of crop row spacings S are analyzed by a numerical comparison method, and the minimum distance S1 between two rows of crops and the coordinate points P1 (x1, y1, z1) and P2 (x2, y2, z2) with the minimum distance are outputted. Finally, the midpoint coordinates P3 (x3, y3) of the two rows of crops are obtained according to the minimum distance S1 between the two rows of crops and the coordinate points P1 (x1, y1, z1) and P2 (x2, y2, z2). The step of obtaining the midpoint coordinates P3 (x3, y3) of the two rows of crops by using the small distance S1 and the coordinate points P1 (x1, y1, z1) and P2 (x2, y2, z2), comprises: respectively obtaining the projection coordinates P1 (x1, y1) and P2 (x2, y2) of the coordinate points P1 (x1, y1, z1) and P2 (x2, y2, z2) in the horizontal plane; calculating the midpoint coordinates P3 (x3, y3) of the two rows of crops according to x3 = (x1 + x2) / 2, y3 = (y1 + y2) / 2, the midpoint coordinates P3 (x3, y3) of the two rows of crops are the coordinates of the moving wheels of the weeder in contact with the ground, and at this time, if the moving wheels of the weeder are located at the midpoint coordinates P3 (x3, y3) of the two rows of crops, it can be ensured that the moving wheels of the weeder will not press the trunks of the crops on both sides when walking.

[0033] like Figure 4 As shown, as a preferred embodiment of the present invention, the step of controlling the wheelbase of the weeder according to the minimum distance between the crops and the midpoint coordinates specifically includes: S310, real-time monitoring of the coordinates P4 (x4, y4, z4) of the moving wheels on both sides of the lawn mower; S320, obtaining the projection coordinates P4 (x4, y4) of the moving wheels on both sides of the machine in the horizontal plane, where y3 is in front of y4; S330, controlling the movement of the moving wheels on both sides of the weeder according to the midpoint coordinates P3 (x3, y3) of the crops on both sides of each moving wheel.

[0034] In the embodiment of the present invention, the coordinate P4 (x4, y4, z4) of the moving wheel is located at the center of the moving wheel, and the projection coordinate P4 (x4, y4) of the moving wheels on both sides in the horizontal plane is specifically the coordinate of the center of the moving wheel projected onto the ground or the coordinate of the intersection of the moving wheel and the ground. Since the midpoint coordinate P3 (x3, y3) of the crops on both sides of the moving wheel is located in front of the moving direction of the moving wheel, when the moving wheel moves to the midpoint coordinate P3 (x3, y3) of the crops on both sides of the moving wheel, the coordinate of the moving wheel needs to be adjusted to the position of P3 (x3, y3).

[0035] like Figure 5 As shown, as a preferred embodiment of the present invention, the step of controlling the movement of the moving wheels on both sides of the weeder according to the midpoint coordinates P3 (x3, y3) of the crops on both sides of each moving wheel specifically includes: S3310, obtaining the moving speed of the moving wheel; S3320, calculating the time difference according to the moving speed of the moving wheel and the difference between y3 and y4; S3330, calculating a difference value according to x3 and x4; S3340, calculating the adjustment speed of the moving wheel according to the difference between x3 and x4 and the time difference; S3350, controlling the moving wheel according to the adjustment speed to adjust P4 (x4, y4) to the displacement of the midpoint coordinates P3 (x3, y3) of the crops on both sides of the moving wheel.

[0036] In the embodiment of the present invention, the time required for P4 (x4, y4) to move to P3 (x3, y3) can be obtained according to the moving speed of the moving wheel and the difference between y3 and y4. In order to accurately calculate the position at which x3 can be adjusted to x4 when P4 moves to P3, it is first necessary to calculate the difference according to x3 and x4, and then calculate the adjustment speed of the moving wheel according to the difference between x3 and x4 and the time difference. The adjustment speed refers to the speed used to adjust the moving wheel in the X direction. It not only realizes the function of adjusting the moving wheel distance according to the crop row spacing, but also realizes the function of controlling the adjustment speed of the moving wheel in real time according to the crop coordinate position in the moving direction of the weeder. It is suitable for the situation where the position of the moving wheel can be quickly adjusted when the distances between the crops in the moving direction of the weeder are unequal.

[0037] In the embodiment of the present invention, the difference between y3 and y4 represents the center of the moving wheel and in the moving direction of the moving wheel, according to.

[0038] like Figure 6 As shown, a weed cleaning system based on image recognition, the system comprises: The data collection module 100 is used to collect pictures of crops and weeds in real time; The calculation module 200 is used to upload the crop and weed pictures to the image recognition system and output the minimum distance and midpoint coordinates between two rows of crops; The wheelbase adjustment module 300 is used to control the wheelbase of the weeder according to the minimum distance between the crops and the midpoint coordinates.

[0039] In the embodiment of the present invention, the data acquisition module 100 is a CCD camera group, which is installed in front of the moving wheel along the moving direction of the lawn mower, and the distance between the CCD camera group and the center of the moving wheel is constant.

[0040] like Figure 7 As shown, as a preferred embodiment of the present invention, the calculation module 200 includes: A data uploading unit 201 is used to upload pictures of crops and weeds to an image recognition system; A matching unit 202, used to match the farmland image data with a weed image standard library and a crop image standard library in the image recognition system; An output unit 203 is used to output the contour image of the crop trunk on both sides of the weeds; A coordinate point capturing unit 204 is used to capture the two closest points on the trunks of crops on both sides of the weeds according to the contour map of the trunks of crops on both sides of the weeds; The calculation unit 205 is used to output the minimum distance between two rows of crops according to the two points on the trunks of the crops on both sides that are closest to each other.

[0041] In the embodiment of the present invention, after the data uploading unit 201 uploads the crop and weed pictures to the image recognition system, the matching unit 202 matches the farmland image data with the weed picture standard library and the crop picture standard library in the image recognition system, the output unit 203 outputs the contour map of the crop trunks on both sides of the weeds or on both sides of the moving wheel, the coordinate point capturing unit 204 captures a number of coordinate points on the crop trunks on both sides according to the contour map of the crop trunks on both sides of the weeds, and the calculation unit 205 outputs the minimum distance between two rows of crops according to the two points on the crop trunks on both sides that are closest to each other.

[0042] like Figure 8 As shown, as a preferred embodiment of the present invention, the wheelbase adjustment module 300 includes: A camera module 301, wherein the initial distance between the camera and the moving wheel is fixed, and when the moving wheel moves, the camera module is used to monitor the coordinates P4 (x4, y4, z4) of the moving wheels on both sides of the lawn mower in real time; The projection coordinate acquisition module 302 is used to acquire the projection coordinates P4 (x4, y4) of the moving wheels on both sides of the lawn mower in the horizontal plane, where y3 is in front of y4; The control module 303 is used to control the movement of the moving wheels on both sides of the weeder according to the midpoint coordinates P3 (x3, y3) of the crops on both sides of each moving wheel.

[0043] In the embodiment of the present invention, it should be noted that the distance between the camera and the moving wheel is fixed, and the camera can locate the coordinates of the moving wheel: when the initial fixed distance between the moving wheel and the camera is X1, when the moving wheel needs to move to a distance X2, the camera controls the position coordinates of the moving wheel according to the telescopic amount X2-X1, and after the projection coordinate acquisition module 302 acquires the projection coordinates P4 (x4, y4) of the moving wheels on both sides of the weeder in the horizontal plane, the control module 303 controls the movement of the moving wheels on both sides of the weeder according to the midpoint coordinates P3 (x3, y3) of the crops on both sides of each moving wheel.

[0044] like Figures 7 to 9 As shown, as a preferred embodiment of the present invention, the control module 303 includes: The speed sensor 3031 is used to obtain the moving speed of the moving wheel; The timing module 3032 is used to calculate the time difference according to the moving speed of the moving wheel and the difference between y3 and y4; A difference calculation unit 3033, used for calculating a difference according to x3 and x4; The speed calculation unit 3034 is used to calculate the adjustment speed of the moving wheel according to the difference between x3 and x4 and the time difference; The telescopic module 3035 is used to control the moving wheel to adjust P4 (x4, y4) to P3 (x3, y3) according to the adjustment speed. One end of the telescopic module is fixedly connected to the lawn mower, and the other end of the telescopic module is connected to the moving wheel. The speed calculation unit is in communication with the telescopic module.

[0045] In the embodiment of the present invention, the timing module 3032 is a specific position time prediction module, which is used to calculate the time difference according to the moving speed of the moving wheel and the difference between y3 and y4. After the difference calculation unit 3033 calculates the difference according to x3 and x4, the speed calculation unit 3034 calculates the adjustment speed of the moving wheel according to the difference between x3 and x4 and the time difference. The telescopic module 3035 includes an electric telescopic rod and a controller. One end of the electric telescopic rod is connected to the weeder, and the other end of the electric telescopic rod is connected to the moving wheel. After the controller receives the adjustment speed transmitted by the speed calculation unit 3034, the controller controls the electric telescopic rod to move the moving wheel to the specified position according to the adjustment speed before the moving wheel moves to P3 (x3, y3), thereby achieving the purpose of automatically adjusting the wheel spacing according to the minimum row spacing and coordinates of the crops, preventing the moving wheel from pressing on the crop trunk during the laser weeding of the weeder, thereby playing a role in rapid laser weeding while maximally protecting the crops, and having the characteristics of efficient weeding and crop protection.

[0046] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.

[0047] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0048] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the disclosure in the specification and examples. This application is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.

Claims

1. A weed clearing method based on image recognition, characterized in that: The method comprises the following steps: Collect crop and weed images in real time; Upload the crop and weed pictures to the image recognition system, and output the minimum distance and midpoint coordinates between two rows of crops; The wheel width of the weeder is controlled according to the minimum distance between crops and the midpoint coordinates.

2. The weed clearing method based on image recognition according to claim 1, characterized in that: The step of uploading the crop and weed pictures to the image recognition system and outputting the minimum distance and midpoint coordinates between two rows of crops specifically includes: Upload pictures of crops and weeds to an image recognition system; Match the farmland image data with the weed image standard library and crop image standard library in the image recognition system; Output the contour image of the crop trunk on both sides of the weeds; According to the contours of the crop trunks on both sides of the weeds, capture the two points closest to the crop trunks on both sides; Output the minimum distance between two rows of crops based on the two points on the crop trunks that are closest to each other.

3. The weed clearing method based on image recognition according to claim 2, characterized in that: The step of capturing the two closest points on the trunks of crops on both sides of the weeds according to the contour map of the trunks of crops on both sides of the weeds specifically includes: The coordinate points P1 (x1, y1, z1) and P2 (x2, y2, z2) are captured on the contour map of the crop trunk on both sides of the weeds, where y is the moving direction of the weeder and x is the direction perpendicular to y; Calculate the crop row spacing S based on the coordinate points P1 (x1, y1, z1) and P2 (x2, y2, z2); The above method is used to obtain the row spacing S of several crops by capturing different coordinate points on the contour map of the crop trunks on both sides of the weeds; Use the numerical comparison method to analyze several crop row spacings S, and output the minimum distance S1 between two rows of crops and the coordinate points P1 (x1, y1, z1) and P2 (x2, y2, z2); The midpoint coordinates P3 (x3, y3) of the two rows of crops are obtained according to the minimum distance S1 between the two rows of crops and the coordinate points P1 (x1, y1, z1) and P2 (x2, y2, z2).

4. The weed clearing method based on image recognition according to claim 3, characterized in that: The step of obtaining the coordinates P3 (x3, y3) of the midpoints of the two rows of crops according to the minimum distance S1 between the two rows of crops and the coordinate points P1 (x1, y1, z1) and P2 (x2, y2, z2) specifically includes: Get the projection coordinates P1(x1, y1) and P2(x2, y2) of the coordinate points P1(x1, y1, z1) and P2(x2, y2, z2) in the horizontal plane respectively; According to x3=(x1+x2) / 2, y3=(y1+y2) / 2, calculate the midpoint coordinates P3 (x3, y3) of the two rows of crops.

5. The step of controlling the wheelbase of the weeder based on the minimum distance between crops and the midpoint coordinates according to claim 4, specifically comprising: The weed clearing method based on image recognition is characterized in that the root Real-time monitoring of the coordinates P4 (x4, y4, z4) of the moving wheels on both sides of the lawn mower; Get the projection coordinates P4 (x4, y4) of the moving wheels on both sides of the machine in the horizontal plane, where y3 is in front of y4; The movement of the moving wheels on both sides of the weeder is controlled according to the midpoint coordinates P3 (x3, y3) of the crops on both sides of each moving wheel.

6. The weed clearing method based on image recognition according to claim 5, characterized in that: The step of controlling the movement of the moving wheels on both sides of the weeder according to the midpoint coordinates P3 (x3, y3) of the crops on both sides of each moving wheel specifically includes: Get the moving speed of the moving wheel; Calculate the time difference based on the moving speed of the moving wheel and the difference between y3 and y4; Calculate the difference based on x3 and x4; Calculate the adjustment speed of the moving wheel according to the difference between x3 and x4 and the time difference; The moving wheel is controlled according to the adjustment speed to adjust P4 (x4, y4) to P3 (x3, y3).

7. A weed cleaning system based on image recognition, characterized in that: The system comprises: Data collection module, used to collect pictures of crops and weeds in real time; A calculation module is used to upload pictures of crops and weeds to the image recognition system and output the minimum distance and midpoint coordinates between two rows of crops; The wheelbase adjustment module is used to control the wheelbase of the weeder according to the minimum distance between crops and the midpoint coordinates.

8. The weed clearing system based on image recognition according to claim 7, characterized in that: The calculation module comprises: A data upload unit for uploading pictures of crops and weeds to an image recognition system; A matching unit, used for matching the farmland image data with a weed image standard library and a crop image standard library in the image recognition system; An output unit, used for outputting contour images of crop trunks on both sides of the weeds; A coordinate point capture unit is used to capture the two closest points on the crop trunks on both sides of the weeds according to the contour map of the crop trunks on both sides of the weeds; The calculation unit is used for outputting the minimum distance between two rows of crops according to the two points closest to the trunks of the crops on both sides.

9. The weed clearing system based on image recognition according to claim 8, characterized in that: The wheelbase adjustment module comprises: A camera module, wherein the initial distance between the camera and the moving wheel is fixed, and when the moving wheel moves, the camera module is used to monitor the coordinates P4 (x4, y4, z4) of the moving wheels on both sides of the weeder in real time; A projection coordinate acquisition module is used to acquire the projection coordinates P4 (x4, y4) of the moving wheels on both sides of the lawn mower in the horizontal plane, where y3 is in front of y4; The control module is used to control the movement of the moving wheels on both sides of the weeder according to the midpoint coordinates P3 (x3, y3) of the crops on both sides of each moving wheel.

10. The weed clearing system based on image recognition according to claim 9, characterized in that: The control module comprises: A speed sensor, used to obtain the moving speed of the moving wheel; A timing module is used to calculate the time difference according to the moving speed of the moving wheel and the difference between y3 and y4; A difference calculation unit, used for calculating a difference according to x3 and x4; A speed calculation unit, used for calculating the adjustment speed of the moving wheel according to the difference between x3 and x4 and the time difference; The telescopic module is used to control the moving wheel to adjust P4 (x4, y4) to P3 (x3, y3) according to the adjustment speed. One end of the telescopic module is fixedly connected to the lawn mower, and the other end of the telescopic module is connected to the moving wheel. The speed calculation unit is in communication with the telescopic module.

Citation Information

Patent Citations

  • Wheeled agricultural robot with self-adaptive wheel track adjusting function and adjusting method thereof

    CN111645777A

  • Intelligent laser weeding device and method based on machine vision

    CN116250523A

  • Wheel track adjusting device for mobile robot

    CN117922691A

Cited By

  • Control method and apparatus for agricultural robot, and device and storage medium

    WO2026103305A1