A seeding method based on visual positioning

UAVs are used to obtain three-dimensional and two-dimensional images of the sowing land, build models and plan the sowing path, and use machine learning to output control parameter sets, which solves the problem of low intelligence of the seeder and achieves more efficient and accurate sowing control.

CN117837360BActive Publication Date: 2024-09-17SICHUAN ACADEMY OF AGRICULTURAL MACHINERY SCIENCES
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410032377.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-09
Publication Date
2024-09-17
Estimated Expiration
2044-01-09

AI Technical Summary

Technical Problem

The existing seeder has a low degree of intelligence, resulting in uneven seeding and irregular seeding paths, requiring operators to participate in driving control throughout the process.

Method used

Using a seeding method based on visual positioning, drones are used to obtain three-dimensional space images and two-dimensional pictures of the seeded land, build a three-dimensional space model and perform image processing, plan the seeding path, and output the parameter set for controlling the seeder through machine learning , to achieve automatic control.

Benefits of technology

It improves the automation and accuracy of sowing, is suitable for sowing large fields, and achieves more efficient sowing efficiency and faster response.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117837360B
    Figure CN117837360B
Patent Text Reader

Abstract

The present invention discloses a sowing method based on visual positioning, which belongs to the technical field of visual navigation of a seeder, and includes placing an identification curve on the sowing land; obtaining a three-dimensional spatial image and a two-dimensional picture of the sowing land; converting the three-dimensional spatial model of the sowing land into a sowing land plane model; performing image processing on the two-dimensional picture to obtain a sowing land edge contour figure; correcting the sowing land plane model to obtain a target sowing land plane model; planning a sowing path; performing machine learning on the sowing path, and outputting a parameter set for controlling the operation of the seeder; and using the parameter set to control the sowing of the seeder. The present invention can decompose the sowing land according to the geometric shape of the sowing land on site, and convert the image path in the model into specific control parameters in combination with a time series to realize automatic control of the seeder. Compared with traditional manual control, the present invention has a higher degree of automation, faster and more accurate response, and higher sowing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of vision navigation of a seeder, and in particular relates to a sowing method based on vision positioning. Background Art

[0002] Seeders are agricultural machinery and equipment. Seeders are planting machines that sow crops and seeds. Agricultural economy refers to the general term for economic relations and economic activities in agriculture. Agricultural economy includes economic activities and economic relations in production, exchange, distribution, consumption, etc. The production of a variety of crops is an important part of agricultural economic production. Agricultural economic seeders can sow the seeds of crops into the soil. The seeds sown in the soil can grow well with subsequent fertilization and cultivation. Mature crops can be exchanged and distributed for economic activities. Existing agricultural economic seeders are widely used for sowing on relatively vast lands.

[0003] Although the existing seeder has replaced the traditional manual sowing, the operator is still required to participate in the driving and control of the seeder throughout the process. The speed of the seeder, the sowing rate, and the selection of the sowing path can only rely on the operator's experience. This may cause problems such as uneven sowing and uneven sowing paths, that is, the existing seeder has a low degree of intelligence. Summary of the invention

[0004] The purpose of the present invention is to provide a sowing method based on visual positioning in view of the above-mentioned deficiencies in the prior art, so as to solve the problem that the sowing intelligence level of the existing seeder is low.

[0005] In order to achieve the above object, the technical solution adopted by the present invention is:

[0006] A seeding method based on visual positioning comprises the following steps:

[0007] S1. Place a marking curve on the sowing land;

[0008] S2, based on the identification curve, using a drone to obtain a three-dimensional spatial image and a two-dimensional picture of the sowing land;

[0009] S3, constructing a three-dimensional space model of the sowing land according to the three-dimensional space image, and mapping the three-dimensional space model to a first two-dimensional rectangular coordinate system by projection, so as to obtain a plane model of the sowing land in the first two-dimensional rectangular coordinate system;

[0010] S4, constructing a second two-dimensional rectangular coordinate system, and performing image processing on the two-dimensional image to obtain a contour graphic of the sowing land edge in the second two-dimensional rectangular coordinate system;

[0011] S5. According to the first identification curve in the first two-dimensional rectangular coordinate system and the second identification curve in the second two-dimensional rectangular coordinate system, the sowing land plane model is corrected to obtain the target sowing land plane model in the first two-dimensional rectangular coordinate system;

[0012] S6. planning a sowing path according to the geometric shape of the target sowing land plane model;

[0013] S7, inputting the sowing path into a host computer for machine learning, and outputting a parameter set for controlling the operation of the seeder;

[0014] S8. Use the parameter set to control the seeder to sow.

[0015] Furthermore, in step S2, a 3D scanner and an industrial vision camera are mounted on the drone, and based on the identification curve, the 3D scanner is used to scan and obtain a three-dimensional spatial image of the sown land, and the industrial vision camera is used to capture and obtain a two-dimensional picture of the sown land.

[0016] Furthermore, in step S4, image processing is performed on the two-dimensional image, including:

[0017] S4.1, grayscale the two-dimensional image;

[0018] S4.2, performing Gaussian filtering on the two-dimensional image after grayscale processing;

[0019] S4.3, calculating the graphic gradient of the two-dimensional image after Gaussian filtering, and preliminarily obtaining the edge information of the sowing land in the two-dimensional image;

[0020] S4.4, using a threshold method to filter edge information of the sowing land to obtain an edge contour graphic of the sowing land;

[0021] S4.5. Placing the edge contour graphic of the sowing land in a second two-dimensional rectangular coordinate system to obtain the edge contour graphic of the sowing land in the second two-dimensional rectangular coordinate system.

[0022] Furthermore, step S5 specifically includes the following steps:

[0023] S5.1. Calculate the familiarity between the first identification curve and the second identification curve;

[0024]

[0025] Wherein, Loss(f1(x), f2(x)) is the familiarity loss, f1(x) is the first identification curve in the first two-dimensional rectangular coordinate system, f2(x) is the second identification curve in the second two-dimensional rectangular coordinate system, a is the left boundary, and b is the right boundary;

[0026] S5.2, placing the first identification curve f1(x) and the second identification curve f2(x) in the same coordinate system, fixing the first identification curve f1(x), and placing the second identification curve f2(x) close to the first identification curve f1(x), until the second identification curve f2(x) and the first identification curve f1(x) reach the most similar state, and obtaining a new representation f2new of the second identification curve f2(x) in the new coordinate system;

[0027] S5.3. Based on the new representation f2new of the second identification curve f2(x) in the new coordinate system, obtain the edge coordinates of the edge contour figure of the sowing land in the new coordinate system, and mark the edge coordinates in the sowing land plane model to obtain the target sowing land plane model.

[0028] Furthermore, in step S5.2, when the second identification curve f2(x) and the first identification curve f1(x) reach the most similar state, that is, when the familiarity loss Loss(f1(x), f2(x)) is minimum:

[0029]

[0030] f2new=f2(x)+α,α∈C

[0031] Among them, α is the displacement value and C is a constant.

[0032] Furthermore, in step S6, the plane model of the target sowing land is a rectangle, based on which the target sowing land is planned into a number of sub-rectangles, and a sowing path is planned according to the start point and end point of the seeder.

[0033] Further, step S7 includes the following contents:

[0034] Decompose the seeding path into several independent seeding sub-paths, and use four parameter control subsets to represent the seeding sub-paths, one parameter control subset represents one seeding sub-path;

[0035] The four parameter control subsets are:

[0036] β1=(1、L1、V1、V2)

[0037] β2=(-1、L1、V1、V2)

[0038] β3=(1、L2、V3、0)

[0039] β4=(-1、L2、V3、0)

[0040] Among them, β1 is the forward parameter control subset of the vertical path, β2 is the reverse parameter control subset of the vertical path, β3 is the forward parameter control subset of the lateral path, β4 is the reverse parameter control subset of the lateral path, 1 represents forward movement of the seeder, and -1 represents reverse movement of the seeder; L1 is the vertical travel distance of the seeder, V1 is the vertical travel speed of the seeder, V2 is the sowing rate of the seeder, L2 is the lateral travel distance of the seeder, and V3 is the lateral travel speed of the seeder;

[0041] A parameter set for controlling the operation of the seeder is composed and output by using several vertical path forward parameter control subsets β1, several vertical path reverse parameter control subsets β2, several lateral path forward parameter control subsets β3, and several lateral path reverse parameter control subsets β4.

[0042] The sowing method based on visual positioning provided by the present invention has the following beneficial effects:

[0043] The present invention constructs a two-dimensional sowing land edge contour graphic based on image recognition, and uses the sowing land edge contour graphic to mark the boundary of the sowing land in the sowing land plane model to obtain the contour of the target sowing land to be sown, that is, to obtain the target sowing land plane model; and the sowing path planning can be performed on the target sowing land plane model through on-site manual work, and then through machine learning, a parameter set for controlling the operation of the seeder is output to realize automatic control of the seeder.

[0044] The present invention places the same identification curve in two different coordinate systems, and calculates the familiarity of the first identification curve and the second identification curve by moving the coordinate position to obtain the displacement value of the curve coordinates, and through the displacement value, obtains the coordinate value of the edge contour figure of the sowing land in the coordinate system where the first identification curve is located, and then accurately obtains the edge coordinates of the sowing land plane model, which can effectively solve the problem of blurred boundaries and difficulty in accurate determination of three-dimensional scanning modeling.

[0045] The present invention adopts unmanned aerial vehicles to conduct on-site remote sensing surveys to obtain three-dimensional spatial images and two-dimensional pictures of the sown land. That is, the present invention can perform on-site data acquisition and modeling for any land, and transmit the modeling information to the host computer for machine learning to obtain the sowing path of the sown land, and then control the operation of the seeder. Different from the traditional pre-built model, the present invention can complete data collection, model construction and path planning on-site, is more suitable for sowing on large land, and is more timely.

[0046] The present invention uses machine learning path planning parameter output to decompose the sowing land according to the geometric shape of the on-site sowing land, and represents each sub-path after decomposition with a parameter control subset. In combination with time series, multiple parameter control subsets are combined to form a parameter set for controlling the operation of the seeder. That is, the present invention provides a solution for converting an image path into specific control parameters to achieve automatic control of the seeder. Compared with traditional manual control, the solution has a higher degree of automation, faster and more accurate response, and higher sowing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 The flowchart of the seeding method based on visual positioning of the present invention.

[0048] Figure 2 This is a schematic diagram of the sowing path planning of the present invention. DETAILED DESCRIPTION

[0049] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.

[0050] Example 1

[0051] The sowing method based on visual positioning in this embodiment can effectively solve the problem of low intelligent sowing degree of existing sowing devices. Figure 1 , which specifically includes the following steps:

[0052] Step S1, placing a marking curve on the sowing land;

[0053] The identification curve of this embodiment is used as an identification for the drone to obtain data, and is also used to calculate the coordinate displacement value of the second identification curve in the same coordinate system later, and then update the coordinates of the entire sowing land edge contour graphic, and more importantly, obtain the updated image contour edge coordinates.

[0054] Step S2: Based on the identification curve, a three-dimensional spatial image and a two-dimensional picture of the sowing land are obtained by using a drone;

[0055] Specifically, as a preferred embodiment of the present invention, the drone is equipped with a 3D scanner and an industrial vision camera. Based on the identification curve, the 3D scanner is used to scan and obtain the three-dimensional spatial image of the sown land, and the industrial vision camera is used to take a two-dimensional picture of the sown land.

[0056] Step S3, constructing a three-dimensional space model of the sowing land according to the three-dimensional space image, and mapping the three-dimensional space model to a first two-dimensional rectangular coordinate system by projection, so as to obtain a plane model of the sowing land in the first two-dimensional rectangular coordinate system;

[0057] It should be noted that the use of 3D scanners to construct three-dimensional space models is a mature existing technology, so the detailed process will not be repeated; similarly, the three-dimensional space model is mapped to the first two-dimensional rectangular coordinate system using a projection method, and the existing technology is also directly used to obtain its two-dimensional model in the XY plane.

[0058] Step S4, constructing a second two-dimensional rectangular coordinate system, and performing image processing on the two-dimensional image to obtain a contour graphic of the sowing land edge in the second two-dimensional rectangular coordinate system;

[0059] In this embodiment, the canny edge detection algorithm is used to perform image processing on the two-dimensional image, including:

[0060] Step S4.1, grayscale the two-dimensional image;

[0061] Step S4.2, performing Gaussian filtering on the grayscale processed two-dimensional image to eliminate noise;

[0062] Step S4.3, calculating the graphic gradient of the two-dimensional image after Gaussian filtering, and preliminarily obtaining the edge information of the sowing land in the two-dimensional image;

[0063] Step S4.4, using the threshold method to filter the edge information of the sowing land to obtain the edge contour of the sowing land; that is, using the upper and lower thresholds to detect the edge, when it is greater than the upper limit of the threshold range, it is judged as an edge, and when it is lower than the lower limit of the threshold, it is detected as a non-edge. If the pixel point in the middle of the threshold is adjacent to the edge, it is considered to be an edge, otherwise it is a non-edge;

[0064] Step S4.5, placing the edge contour figure of the sowing land in the second two-dimensional rectangular coordinate system to obtain the edge contour figure of the sowing land in the second two-dimensional rectangular coordinate system.

[0065] This embodiment directly adopts the existing canny edge detection algorithm, so the detailed process is not described in detail.

[0066] Step S5, correcting the sowing land plane model according to the first identification curve in the first two-dimensional rectangular coordinate system and the second identification curve in the second two-dimensional rectangular coordinate system to obtain a target sowing land plane model in the first two-dimensional rectangular coordinate system;

[0067] In order to obtain accurate calculation results, the first identification curve and the second identification curve of this embodiment are both identification curves designed in step S1; in order to make the first identification curve and the second identification curve have the same size, the scales in the first two-dimensional rectangular coordinate system and the second two-dimensional rectangular coordinate system of this embodiment are the same;

[0068] Step S5.1, calculating the familiarity between the first identification curve and the second identification curve;

[0069]

[0070] Wherein, Loss(f1(x), f2(x)) is the familiarity loss, f1(x) is the first identification curve in the first two-dimensional rectangular coordinate system, f2(x) is the second identification curve in the second two-dimensional rectangular coordinate system, a is the left boundary, and b is the right boundary;

[0071] Step S5.2, placing the first identification curve f1(x) and the second identification curve f2(x) in the same coordinate system, fixing the first identification curve f1(x), and placing the second identification curve f2(x) close to the first identification curve f1(x), until the second identification curve f2(x) and the first identification curve f1(x) reach the most similar state, and obtaining a new representation f2new of the second identification curve f2(x) in the new coordinate system;

[0072] When the second identification curve f2(x) and the first identification curve f1(x) reach the most similar state, that is, when the familiarity loss Loss(f1(x), f2(x)) is minimum:

[0073]

[0074] f2new=f2(x)+α,α∈C

[0075] Among them, α is the displacement value, C is a constant;

[0076] Step S5.3, based on the new representation f2new of the second identification curve f2(x) in the new coordinate system, obtain the edge coordinates of the edge contour figure of the sowing land in the new coordinate system, and mark the edge coordinates in the sowing land plane model to obtain the target sowing land plane model;

[0077] In order to reduce the amount of calculation in this embodiment, the new coordinate system can be selected as the first two-dimensional rectangular coordinate system where the first identification curve f1(x) is located, that is, through the above steps, the second identification curve f2(x) can be moved by the displacement value α to obtain the first identification curve f1(x); based on this, it is obvious that the coordinate value of the entire sowing land edge contour figure in the coordinate system where the first identification curve is located (the first two-dimensional rectangular coordinate system), and then the edge coordinates of the sowing land plane model are accurately obtained, and the edge coordinates of the sowing land plane model are marked in the first two-dimensional rectangular coordinate system and connected into a closed line, so that the specific range and contour shape of the target sowing land can be obtained in the sowing land plane model, that is, the contour of the land to be sown can be accurately obtained in the target sowing land plane model.

[0078] Step S6, planning a sowing path according to the geometric shape of the target sowing land plane model;

[0079] In this embodiment, for the convenience of subsequent description, the target sowing land plane model is defined as a rectangle, because most of the large land exists in a rectangular shape, which is representative;

[0080] Based on the rectangle, the target sowing land is planned into several sub-rectangles, and the sowing path is planned according to the starting point and end point of the seeder. The sowing path can be planned manually, that is, the path of the seeder is planned through manual intervention;

[0081] Step S7: Input the sowing path to the host computer for machine learning, and output a parameter set for controlling the operation of the seeder, which is as follows:

[0082] Decompose the seeding path into several independent seeding sub-paths, and use four parameter control subsets to represent the seeding sub-paths, one parameter control subset represents one seeding sub-path;

[0083] The four parameter control subsets are:

[0084] β1=(1、L1、V1、V2)

[0085] β2=(-1、L1、V1、V2)

[0086] β3=(1、L2、V3、0)

[0087] β4=(-1、L2、V3、0)

[0088] Among them, β1 is the forward parameter control subset of the vertical path, β2 is the reverse parameter control subset of the vertical path, β3 is the forward parameter control subset of the lateral path, β4 is the reverse parameter control subset of the lateral path, 1 represents forward movement of the seeder, and -1 represents reverse movement of the seeder; L1 is the vertical travel distance of the seeder, V1 is the vertical travel speed of the seeder, V2 is the sowing rate of the seeder, L2 is the lateral travel distance of the seeder, and V3 is the lateral travel speed of the seeder;

[0089] A plurality of vertical path forward parameter control subsets β1, a plurality of vertical path reverse parameter control subsets β2, a plurality of lateral path forward parameter control subsets β3, and a plurality of lateral path reverse parameter control subsets β4 are used to form and output a parameter set for controlling the operation of the seeder;

[0090] refer to Figure 2 Based on the scheme design of this embodiment, the sowing path planning is carried out, and the planning is as follows Figure 2 As shown, the sowing path is converted into multiple sub-rectangles and represented by lines, and the endpoints of each line or rectangle are represented by letters. Based on this, the sowing path is:

[0091] Point A0 is the starting point of the seeder, and point B4 is the end point of the seeder. During the entire sowing process, only the paths corresponding to the line segments A0→B0, A1→B1, A2→B2, A3→B3, and A4→B4 are used for sowing;

[0092] Based on this, the sowing path parameter set of this embodiment is expressed as: (β1, β3, β2, β3, β1, β3, β2, β3, β1,)

[0093] Step S8, using the parameter set to control the seeder to sow;

[0094] During specific operations, the control meaning represented by the time-ordered parameter set (β1, β3, β2, β3, β1, β3, β2, β3, β1) can be sent to the seeder control machine through the host computer to control the seeder's driving speed, sowing rate, driving distance, steering and other operations.

[0095] Although the specific implementation of the invention is described in detail in conjunction with the drawings, it should not be understood as limiting the scope of protection of this patent. Within the scope described in the claims, various modifications and variations that can be made by those skilled in the art without creative work still fall within the scope of protection of this patent.

Claims

1. A sowing method based on visual positioning, characterized in that: The following steps are involved: S1. Place a marking curve on the sowing land; S2. Based on the identification curve, a three-dimensional spatial image and a two-dimensional picture of the sowing land are obtained by using a drone; S3, constructing a three-dimensional space model of the sowing land according to the three-dimensional space image, and mapping the three-dimensional space model to a first two-dimensional rectangular coordinate system by projection, so as to obtain a plane model of the sowing land in the first two-dimensional rectangular coordinate system; S4, constructing a second two-dimensional rectangular coordinate system, and performing image processing on the two-dimensional image to obtain a sowing land edge contour graphic in the second two-dimensional rectangular coordinate system; S5. According to the first identification curve in the first two-dimensional rectangular coordinate system and the second identification curve in the second two-dimensional rectangular coordinate system, the sowing land plane model is corrected to obtain the target sowing land plane model in the first two-dimensional rectangular coordinate system; S6. planning a sowing path according to the geometric shape of the target sowing land plane model; S7, inputting the sowing path into a host computer for machine learning, and outputting a parameter set for controlling the operation of the seeder; S8, using the parameter set to control the seeder to sow; S5 specifically includes the following steps: S5.

1. Calculate the familiarity between the first identification curve and the second identification curve; Wherein, Loss(f1(x), f2(x)) is the familiarity loss, f1(x) is the first identification curve in the first two-dimensional rectangular coordinate system, f2(x) is the second identification curve in the second two-dimensional rectangular coordinate system, a is the left boundary, and b is the right boundary; S5.2, placing the first identification curve f1(x) and the second identification curve f2(x) in the same coordinate system, fixing the first identification curve f1(x), and placing the second identification curve f2(x) close to the first identification curve f1(x), until the second identification curve f2(x) and the first identification curve f1(x) reach the most similar state, and obtaining a new identification f2new of the second identification curve f2(x) in the new coordinate system; S5.3, based on the new identification f2new of the second identification curve f2(x) in the new coordinate system, obtain the edge coordinates of the edge contour figure of the sowing land in the new coordinate system, and mark the edge coordinates in the sowing land plane model to obtain the target sowing land plane model; When the second identification curve f2(x) and the first identification curve f1(x) in S5.2 reach the most similar state, that is, when the familiarity loss Loss(f1(x), f2(x)) is minimum: f2new=f2(x)+α,α∈C Among them, α is the displacement value, C is a constant; The first identification curve and the second identification curve are both identification curves designed in S1; in order to make the first identification curve and the second identification curve have the same size, the scales in the first two-dimensional rectangular coordinate system and the second two-dimensional rectangular coordinate system are the same; S7 includes the following: Decompose the seeding path into several independent seeding sub-paths, and use four parameter control subsets to represent the seeding sub-paths, one parameter control subset represents one seeding sub-path; The four parameter control subsets are: β1=(1、L1、V1、V2) β2=(-1、L1、V1、V2) β3=(1、L2、V3、0) β4=(-1、L2、V3、0) Among them, β1 is the forward parameter control subset of the vertical path, β2 is the reverse parameter control subset of the vertical path, β3 is the forward parameter control subset of the lateral path, β4 is the reverse parameter control subset of the lateral path, 1 represents forward movement of the seeder, and -1 represents reverse movement of the seeder; L1 is the vertical travel distance of the seeder, V1 is the vertical travel speed of the seeder, V2 is the sowing rate of the seeder, L2 is the lateral travel distance of the seeder, and V3 is the lateral travel speed of the seeder; A parameter set for controlling the operation of the seeder is composed and output by using several vertical path forward parameter control subsets β1, several vertical path reverse parameter control subsets β2, several lateral path forward parameter control subsets β3, and several lateral path reverse parameter control subsets β4.

2. The sowing method based on visual positioning according to claim 1, characterized in that: In step S2, a 3D scanner and an industrial vision camera are mounted on the drone. Based on the identification curve, the 3D scanner is used to scan and obtain a three-dimensional spatial image of the sown land, and the industrial vision camera is used to take a two-dimensional picture of the sown land.

3. The sowing method based on visual positioning according to claim 1, characterized in that: The step S4 includes performing image processing on the two-dimensional image: S4.1, grayscale the two-dimensional image; S4.2, performing Gaussian filtering on the two-dimensional image after grayscale processing; S4.3, calculating the graphic gradient of the two-dimensional image after Gaussian filtering, and preliminarily obtaining the edge information of the sowing land in the two-dimensional image; S4.4, using a threshold method to filter edge information of the sowing land to obtain an edge contour graphic of the sowing land; S4.

5. Placing the edge contour graphic of the sowing land in a second two-dimensional rectangular coordinate system to obtain the edge contour graphic of the sowing land in the second two-dimensional rectangular coordinate system.

4. The sowing method based on visual positioning according to claim 1, characterized in that: In step S6, the plane model of the target sowing land is a rectangle, based on which the target sowing land is planned into a plurality of sub-rectangles, and a sowing path is planned according to the start point and the end point of the seeder.