Row detection system, agricultural machine equipped with a row detection system, and row detection method

The row detection system improves accuracy by using an imaging and processing device to emphasize crop row colors and apply homography transformation, addressing sunlight-induced disturbances for precise automatic steering in agricultural machinery.

JP7572555B2Active Publication Date: 2024-10-23KUBOTA CORP

Patent Information

Application Number
JP2023531368
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-06-29
Filing Date
2022-02-04
Publication Date
2024-10-23
Estimated Expiration
2042-02-04

AI Technical Summary

Technical Problem

Existing row detection systems in agricultural machinery face accuracy issues due to disturbance factors such as sunlight conditions, which affect the precision of crop row and ridge detection.

Method used

A row detection system equipped with an imaging device and a processing device that captures time-series images, selects a search area including the wheels, and performs sequence detection to enhance accuracy by emphasizing crop row colors and applying homography transformation for precise edge line determination.

Benefits of technology

The system enhances detection accuracy by suppressing the impact of sunlight conditions and robustness against variations in crop growth and sunlight, enabling precise automatic steering and row following travel control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007572555000009
    Figure 0007572555000009
  • Figure 0007572555000010
    Figure 0007572555000010
  • Figure 0007572555000011
    Figure 0007572555000011
Patent Text Reader

Abstract

This row detection system is attached to a farm machine having one or a plurality of wheels, and comprises an imaging device that captures the ground on which the farm machine travels to acquire a time-series image including at least a part of the ground, and a processing device that carries out image processing of the time-series image. The processing device selects a search region for detecting at least one of a crop row and a ridge from the time-series image. The search region has such size and shape that at least a part of the one or a plurality of wheels is included therein.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a row detection system, an agricultural machine including a row detection system, and a row detection method. [Background technology]

[0002] Research and development is underway to automate work vehicles such as tractors used in farm fields. For example, work vehicles that run with automatic steering using positioning systems such as the Global Navigation Satellite System (GNSS), which enables precise positioning, have been put to practical use. Work vehicles that not only automatically steer but also automatically control speed have also been put to practical use.

[0003] In addition, vision guidance systems are currently being developed that use imaging devices such as cameras to detect crop rows or ridges in a field and control the movement of work vehicles along the detected crop rows or ridges.

[0004] Patent Document 1 discloses a work machine that travels along rows of ridges in cultivated land where crops are planted. Patent Document 1 describes a method of binarizing an original image obtained by photographing the cultivated land from diagonally above with an on-board camera, and then generating a planar projective transformed image. The technology disclosed in Patent Document 1 rotates the planar projective transformed image to generate multiple rotated images with different orientations, and detects work paths between the ridges. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] JP 2016-208871 A Summary of the Invention [Problem to be solved by the invention]

[0006] In a technique for detecting "rows" such as crop rows or furrows using an imaging device, the detection accuracy can sometimes be reduced by external disturbance factors such as sunlight conditions.

[0007] The present disclosure provides a row detection system, an agricultural machine including the row detection system, and a row detection method that can solve such problems. [Means for solving the problem]

[0008] In an exemplary, non-limiting embodiment, a row detection system according to the present disclosure includes an imaging device attached to an agricultural machine having one or more wheels, which captures images of a ground surface on which the agricultural machine travels to obtain time-series images including at least a portion of the ground surface, and a processing device that performs row detection on the time-series images. The processing device selects a search area for detecting at least one of a crop row and a furrow from the time-series images, and the search area has a size and shape that includes at least a portion of the one or more wheels.

[0009] In an exemplary, non-limiting embodiment, an agricultural machine according to the present disclosure is an agricultural machine equipped with the above-mentioned row detection system, and includes a running gear including a steering wheel, and an automatic steering device that controls the steering angle of the steering wheel based on the position of the crop row or furrow determined by the row detection system.

[0010] In an exemplary, non-limiting embodiment, the sequence detection method of the present disclosure is implemented on a computer. The row detection method includes causing a computer to execute the following steps: acquiring time-series images of the ground on which the agricultural machine runs, the image including at least a portion of the ground, from an imaging device attached to an agricultural machine having one or more wheels; and selecting a search area for detecting at least one of a crop row and a furrow from the time-series images, such that the search area has a size and shape that includes at least a portion of the one or more wheels.

[0011] The general or specific aspects of the present disclosure may be realized by an apparatus, a system, a method, an integrated circuit, a computer program, or a computer-readable non-transitory storage medium, or any combination thereof. The computer-readable storage medium may include a volatile storage medium or a non-volatile storage medium. The apparatus may be composed of multiple devices. When the apparatus is composed of two or more devices, the two or more devices may be arranged in one device or may be arranged separately in two or more separate devices. Effect of the Invention

[0012] According to the embodiments of the present disclosure, it is possible to suppress a decrease in detection accuracy due to disturbance factors such as sunlight conditions, and to increase robustness. [Brief description of the drawings]

[0013] [Figure 1] FIG. 2 is a diagram illustrating a schematic view of an imaging device attached to an agricultural machine capturing an image of the ground. [Diagram 2] 1 is a perspective view showing a schematic relationship between a body coordinate system Σb and a camera coordinate system Σc fixed with respect to an agricultural machine, and a world coordinate system Σw fixed with respect to the ground. FIG. [Diagram 3] FIG. 1 is a schematic top view of a portion of a field with multiple rows of crops laid on the ground; [Figure 4] 4 is a diagram showing a schematic example of an image captured by an imaging device of the agricultural machine shown in FIG. 3. [Diagram 5] FIG. 11 is a top view illustrating a state in which the position and orientation (angle in the yaw direction) of the agricultural machine have been adjusted. [Figure 6] 6 is a diagram showing an example of an image captured by an imaging device of the agricultural machine in the state shown in FIG. 5. [Figure 7] 1 is a block diagram showing an example of a basic configuration of a sequence detection system according to a first embodiment of the present disclosure. [Figure 8] 1 is a block diagram illustrating a schematic configuration example of a processing device according to a first embodiment of the present disclosure. [Figure 9] This is a monochrome image corresponding to one frame of a time-series color image captured by an on-board camera mounted on a tractor. [Figure 10] FIG. 13 is a diagram showing an enhanced image obtained by converting the RGB values ​​of an image of one frame in a time-series color image into an excess green index (ExG=2×grb). [Figure 11] 11 is a histogram of the excess green index (ExG) in the image of FIG. 10. [Figure 12] FIG. 2 is a diagram showing an example of a top-view image (bird's-eye view image) classified into first pixels (eg, crop pixels) and second pixels (background pixels). [Figure 13] 1 is a perspective view showing a schematic arrangement relationship between each of a camera coordinate system Σc1 and a camera coordinate system Σc2 and a reference plane Re. FIG. [Figure 14] FIG. 11 is a schematic diagram showing an example in which the direction of crop rows in a top view image is parallel to the direction of scanning lines. [Figure 15] 15 is a diagram showing a schematic example of an integrated value histogram obtained for the top view image in FIG. 14. FIG. [Figure 16] 10 is a schematic diagram showing an example in which the direction of crop rows in a top view image intersects with the direction of scanning lines; FIG. [Figure 17] 17 is a diagram showing a schematic example of an integrated value histogram obtained for the top view image in FIG. 16. FIG. [Figure 18] 1 is a flowchart illustrating an example of an algorithm for a processing device to determine edge lines of a crop row in an embodiment of the present disclosure. [Figure 19] FIG. 13 is a diagram showing an integrated value histogram obtained from the top view image of FIG. 12. [Figure 20] FIG. 2 is a block diagram showing a process executed by a processing device according to an embodiment of the present disclosure. [Figure 21] FIG. 13 is a diagram for explaining a form in which a top view image is divided into a plurality of blocks. [Figure 22] 22 is a diagram showing a schematic diagram of the relationship between the position of the scanning line and the integrated value of the index value in each block of FIG. 21. FIG. [Diagram 23]FIG. 23 is a diagram showing an example of the crop row center in each block of FIG. 22 and an example of an approximation line to the crop row center. [Figure 24] FIG. 24 is a top view showing an example of a crop row edge line determined based on the approximation line of FIG. 23. [Diagram 25] FIG. 13 is a diagram for explaining a method for dividing a part or all of a top view image into a plurality of blocks and determining the position of an edge line for each of the plurality of blocks when a crop row includes a curved portion. [Figure 26] FIG. 26 is a diagram showing a schematic relationship between the position of a scanning line and an integrated value (histogram) of index values ​​in each block of FIG. 25. [Figure 27] FIG. 27 is a diagram showing an example of the crop row center in each block of FIG. 26 and an example of an approximation line to the crop row center. [Figure 28] FIG. 28 is a top view showing an example of a crop row edge line determined based on the approximation curve of FIG. 27. [Figure 29] FIG. 2 is a perspective view showing a schematic diagram of a row of ridges provided on the ground. [Diagram 30] FIG. 2 is a diagram showing an image acquired from an imaging device at time t. [Diagram 31] 1 is a diagram illustrating a schematic relationship of correspondence between feature points in an image captured by an imaging device at time t and an image captured at time t+1. FIG. [Diagram 32] 1 is a perspective view showing a schematic diagram of movement of feature points on a ridge and an intermediate region (work passage) shown in an image captured by an imaging device. FIG. [Diagram 33] 4 is a diagram illustrating a relationship between a movement amount (first movement amount) of a feature point projected onto an image plane and a movement amount (second movement amount) of a feature point projected onto a reference plane. FIG. [Diagram 34] FIG. 11 is a block diagram showing a process executed by a processing device according to a second embodiment of the present disclosure. [Diagram 35] FIG. 13 is a diagram showing the relationship between the average value of heights of feature points on a scan line and the position of the scan line. [Diagram 36] FIG. 13 is a diagram illustrating an example of a basic configuration of a line detection system according to a third embodiment of the present disclosure. [Figure 37] FIG. 2 is a diagram showing an example of an image acquired by a processing device from an imaging device. [Figure 38] FIG. 38 shows a portion of the image in FIG. 37. [Figure 39] FIG. 2 is a schematic top view of a portion of ground on which rows of crops are provided; [Diagram 40] 13 is a diagram showing a schematic diagram of the positional relationship between points P3 and P4 included in a part of the front wheel shown in the image and corresponding points P3' and P4' on a reference plane Re. FIG. [Diagram 41] FIG. 1 is a perspective view illustrating an example of the appearance of an agricultural machine according to an embodiment of the present disclosure. [Diagram 42] FIG. 1 is a side view showing a schematic diagram of an example of an agricultural machine with a work implement attached thereto. [Diagram 43] FIG. 1 is a block diagram showing an example of a schematic configuration of an agricultural machine and a work machine. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] Hereinafter, embodiments of the present disclosure will be described. However, more detailed explanation than necessary may be omitted. For example, detailed explanation of already well-known matters and duplicate explanation of substantially the same configuration may be omitted. This is to avoid the following explanation becoming unnecessarily redundant and to facilitate understanding by those skilled in the art. Note that the inventors provide the accompanying drawings and the following explanation so that those skilled in the art can fully understand the present disclosure, and it is their intention to provide a method and apparatus for implementing the present disclosure as set forth in the claims. In the following description, components having the same or similar functions are designated by the same reference numerals.

[0015] The following embodiments are illustrative, and the technology of the present disclosure is not limited to the following embodiments. For example, the numerical values, shapes, materials, steps, the order of the steps, the layout of the display screen, and the like shown in the following embodiments are merely examples, and various modifications are possible as long as no technical contradiction occurs. In addition, one aspect can be combined with another aspect as long as no technical contradiction occurs.

[0016] In this disclosure, the term "agricultural machinery" broadly includes machinery that performs basic agricultural tasks such as "plowing," "planting," and "harvesting" in a field. The agricultural machinery is a machine that has a function and structure for performing agricultural tasks such as plowing, sowing, pest control, fertilization, planting crops, or harvesting on the ground in a field. These agricultural tasks are sometimes referred to as "ground tasks" or simply "tasks." The agricultural machinery does not need to have a traveling device for moving by itself, and may travel by being attached to or towed by another vehicle that has a traveling device. In addition, the function of a work vehicle such as a tractor alone as an "agricultural machinery" is not limited to cases where the work vehicle and an implement attached to or towed by the work vehicle function as a single "agricultural machinery." Examples of agricultural machinery include tractors, riding management machines, vegetable transplanters, grass cutters, and field mobile robots.

[0017] (Embodiment 1) A row detection system and a row detection method according to a first exemplary embodiment of the present disclosure will be described. In this embodiment, detection of crop rows is performed as "row detection".

[0018] The row detection system in this embodiment includes an imaging device that is attached to an agricultural machine and used. The imaging device is fixed to the agricultural machine so as to capture images of the ground on which the agricultural machine travels and obtain time-series color images including at least a portion of the ground.

[0019] FIG. 1 is a schematic diagram showing an image of a ground surface 10 captured by an imaging device 120 attached to an agricultural machine 100 such as a tractor or a riding cultivator. In the example of FIG. 1, the agricultural machine 100 includes a vehicle body 110 capable of travelling, and the imaging device 120 is fixed to the vehicle body 110. For reference, FIG. 1 shows a body coordinate system Σb having an Xb axis, a Yb axis, and a Zb axis that are orthogonal to each other. The body coordinate system Σb is a coordinate system fixed to the agricultural machine 100, and the origin of the body coordinate system Σb may be set, for example, near the center of gravity of the agricultural machine 100. In the figure, for ease of viewing, the origin of the body coordinate system Σb is depicted as being located outside the agricultural machine 100. In the body coordinate system Σb in the present disclosure, the Xb axis coincides with the traveling direction (the direction of the arrow F) when the agricultural machine 100 travels straight. The Yb-axis corresponds to the direction directly to the right when looking from the origin of the coordinate system in the positive direction of the Xb-axis, and the Zb-axis corresponds to the vertical downward direction.

[0020] The imaging device 120 is, for example, an in-vehicle camera having a charge coupled device (CCD) or complementary metal oxide semiconductor (CMOS) image sensor. The imaging device 120 in this embodiment is, for example, a monocular camera capable of capturing moving images at a frame rate of 3 frames per second (fps) or more.

[0021] 2 is a perspective view showing a schematic relationship between the above-mentioned body coordinate system Σb, the camera coordinate system Σc of the imaging device 120, and the world coordinate system Σw fixed to the ground 10. The camera coordinate system Σc has an Xc axis, a Yc axis, and a Zc axis that are perpendicular to each other, and the world coordinate system Σw has an Xw axis, a Yw axis, and a Zw axis that are perpendicular to each other. In the example of FIG. 2, the world coordinate The Xw-axis and the Yw-axis of the system Σw lie on a reference plane Re extending along the ground 10.

[0022] The imaging device 120 is attached to a predetermined position of the agricultural machine 100 so as to face a predetermined direction. Therefore, the position and orientation of the camera coordinate system Σc relative to the body coordinate system Σb are fixed to a known state. The Zc axis of the camera coordinate system Σc is on the camera optical axis λ1. In the illustrated example, the camera optical axis λ1 is inclined from the traveling direction F of the agricultural machine 100 toward the ground 10, and the depression angle Φ is greater than 0°. The traveling direction F of the agricultural machine 100 is approximately parallel to the ground 10 on which the agricultural machine 100 is traveling. The depression angle Φ can be set, for example, in the range of 0° to 60°. When the position at which the imaging device 120 is attached is close to the ground 10, the orientation of the camera optical axis λ1 may be set so that the depression angle Φ has a negative value, in other words, a positive elevation angle.

[0023] When the agricultural machine 100 is traveling on the ground 10, the body coordinate system Σb and the camera coordinate system Σc translate with respect to the world coordinate system Σw. When the agricultural machine 100 rotates or swings in the pitch, roll, or yaw directions while traveling, the body coordinate system Σb and the camera coordinate system Σc may rotate with respect to the world coordinate system Σw. For simplicity's sake, in the following description, it is assumed that the agricultural machine 100 does not rotate in the pitch and roll directions, but moves approximately parallel to the ground 10.

[0024] FIG. 3 is a top view showing a schematic diagram of a part of a field in which a plurality of crop rows 12 are provided on the ground 10. The crop rows 12 are rows formed by continuously planting crops in one direction on the ground 10 of the field. In other words, the crop rows 12 are a group of crops planted in the ridges of the field. Since each crop row 12 is thus a row formed by a group of crops planted in the field, strictly speaking, the shape of the crop row is complex depending on the shape and arrangement of the crops. The width of the crop rows 12 changes according to the growth of the crops. Between adjacent crop rows 12, there is a strip-shaped intermediate region 14 in which no crops are planted. Each intermediate region 14 is an area sandwiched between two edge lines E facing each other between two adjacent crop rows 12. When multiple crops are planted in one ridge in the width direction of the ridge, 1 A plurality of crop rows 12 are formed on one ridge. That is, a plurality of crop rows 12 are formed between the rows of the ridge. In such a case, the edge line E of the crop row 12 located at the end of the ridge in the width direction among the plurality of crop rows 12 formed on the ridge becomes the reference for the intermediate region 14. In other words, the intermediate region 14 is between the edge lines E of the crop rows 12 located at the end of the ridge in the width direction among the edge lines E of the plurality of crop rows 12. The intermediate region 14 functions as an area (work passage) through which the wheels of the agricultural machine 100 pass, and therefore the "intermediate region" is sometimes referred to as the "work passage."

[0025] In this disclosure, the "edge line" of a crop row refers to a reference line segment (which may include a curve) for defining a target path along which an agricultural machine travels. Such a reference line segment may be defined as both ends of a strip-shaped area (work passage) through which the wheels of the agricultural machine are permitted to pass. A specific method for determining the "edge line" of a crop row will be described later.

[0026] 3 shows a schematic diagram of an agricultural machine 100 entering a field in which a crop row 12 is laid. This agricultural machine 100 has left and right front wheels 104F and left and right rear wheels 104R as a traveling device, and pulls a work machine (implement) 300. The front wheels 104F are steered wheels.

[0027] In the example of FIG. 3, thick dashed arrows L and R are drawn on the work paths 14 located on both sides of a single crop row 12 located in the center. When the agricultural machine 100 travels on a target route indicated by a solid arrow C, the front wheels 104F and rear wheels 104R of the agricultural machine 100 are required to move in the work paths 14 along the arrows L and R so as not to step on the crop row 12. In this embodiment, since the edge line E of the crop row 12 can be detected using the imaging device 120 attached to the agricultural machine 100, it becomes possible to control the steering and traveling of the agricultural machine 100 so that the front wheels 104F and the rear wheels 104R move along the arrows L and R in the work aisle 14. Controlling the steering and traveling of the agricultural machine 100 in this manner based on the edge line E of the crop row may be referred to as "row following traveling control."

[0028] Fig. 4 is a diagram showing a schematic example of an image 40 captured by the imaging device 120 of the agricultural machine 100 shown in Fig. 3. The multiple crop rows 12 and intermediate areas (work paths) 14 extending in parallel on the ground 10 theoretically intersect at a vanishing point P0 on the horizon 11. The reason why the vanishing point P0 is located in the area on the right side of the image 40 is that the traveling direction F of the agricultural machine 100 is inclined with respect to the direction in which the crop rows 12 extend (the direction parallel to the arrow C) as shown in Fig. 3.

[0029] In this embodiment, by using a method to be described later, it is possible to accurately detect the crop row 12 from such an image 40 and determine the edge line E of the crop row 12 even if the sunlight conditions or the growth state of the crop change. Then, based on the edge line E, it is possible to appropriately generate a path (target path) to be followed by the agricultural machine 100. As a result, it is possible to control the traveling of the agricultural machine 100 by automatic steering so that the front wheels 104F and the rear wheels 104R of the agricultural machine 100 move along the arrows L and R in the work passage 14 (row following traveling control). Such row following traveling control makes it possible to perform precise automatic steering according to the growth state of the crop, which is difficult to achieve with automatic steering technology using a positioning system such as GNSS.

[0030] FIG. 5 is a top view that shows a state in which the agricultural machine 100 is steered to adjust the position and orientation (angle in the yaw direction) of the agricultural machine 100 so as to reduce a position error with respect to a target path (arrow C). FIG. 6 shows an example of an image 40 captured by the imaging device 120 of the agricultural machine 100 in such a state. The front wheels 104F and rear wheels 104R of the agricultural machine 100 in the state shown in FIG. 5 are located on the lines indicated by the arrows L and R in the work passage 14, respectively. When the agricultural machine 100 travels along the target path C indicated by the central arrow C, the automatic steering device in the agricultural machine 100 controls the steering angles of the steering wheels so that the front wheels 104F and rear wheels 104R do not deviate from the work passage 14, respectively.

[0031] The configuration and operation of a sequence detection system according to an embodiment of the present disclosure will now be described in detail.

[0032] 7, the row detection system 1000 according to this embodiment includes the above-mentioned imaging device 120 and a processing device 122 that performs image processing of time-series color images acquired from the imaging device 120. The processing device 122 can be connected to, for example, an automatic steering device 124 provided in the agricultural machine 100. The automatic steering device 124 is included in, for example, an automatic driving device that controls the traveling of the agricultural machine 100.

[0033] The processing device 122 may be realized by an electronic control unit (ECU) for image recognition. The ECU is an in-vehicle computer. The processing device 122 is connected to the imaging device 120 by a serial signal line such as a wire harness so as to receive image data output by the imaging device 120. A part of the image recognition process executed by the processing device 122 may be executed inside the imaging device 120 (inside the camera module).

[0034] 8 is a block diagram showing an example of a hardware configuration of the processing device 122. The processing device 122 includes a processor 20, a ROM (Read Only Memory) 22, a RAM (Random Access Memory) 24, a communication device 26, and a storage device 28. These components are connected to each other via a bus 30.

[0035] The processor 20 is a semiconductor integrated circuit and may function as a central processing unit (CPU) or a microcomputer. The processor 20 may also be referred to as a microprocessor. The processor 20 may include a graphics processing unit (GPU). The processor 20 sequentially executes a computer program that describes a predetermined set of instructions stored in a ROM 22, and realizes the processing required for the sequence detection of the present disclosure. A part or all of the processor 20 may be a field programmable gate array (FPGA) equipped with a CPU, an application specific integrated circuit (ASIC), or an application specific integrated circuit (ASSP). Specific Standard Product) may also be used.

[0036] The communication device 26 is an interface for performing data communication between the processing device 122 and an external computer. The communication device 26 can perform wired communication using a controller area network (CAN) or the like, or wireless communication conforming to the Bluetooth (registered trademark) standard and / or the Wi-Fi (registered trademark) standard.

[0037] The storage device 28 can store data of images acquired from the imaging device 120 or images in the middle of processing. Examples of the storage device 28 include a hard disk drive or a non-volatile semiconductor memory.

[0038] The hardware configuration of the processing device 122 is not limited to the above example. It is not necessary for a part or all of the processing device 122 to be mounted on the agricultural machine 100. By using the communication device 26, it is also possible to cause one or more computers located outside the agricultural machine 100 to function as a part or all of the processing device 122. For example, a server computer connected to a network may function as a part or all of the processing device 122. On the other hand, a computer mounted on the agricultural machine 100 may execute all of the functions required of the processing device 122.

[0039] In this embodiment, the processing device 122 acquires time-series color images from the imaging device 120, and executes the following operations S1, S2, and S3. (S1) An enhanced image is generated from the time-series color images, in which the color of the crop row to be detected is enhanced. (S2) From the highlighted image, a top view image of the ground is generated, which is classified into first pixels whose crop row color index value is equal to or greater than a threshold value and second pixels whose crop row color index value is less than the threshold value. (S3) determining a position of an edge line of a crop row based on the index value of the first pixel;

[0040] Specific examples of operations S1, S2, and S3 will be described in detail below.

[0041] The time-series color images are a collection of images captured by the imaging device 120 in a time-series manner. Each image is composed of a group of pixels in units of frames. For example, when the imaging device 120 outputs images at a frame rate of 30 frames / second, the processing device 122 can acquire new images at a cycle of about 33 milliseconds. The speed at which the agricultural machine 100, such as a tractor, travels in a field is relatively low compared to the speed of a general automobile traveling on a public road, and may be, for example, about 10 kilometers per hour or less. At a speed of 10 kilometers per hour, the distance traveled in about 33 milliseconds is about 6 centimeters. For this reason, the processing device 122 may acquire images at a cycle of, for example, about 100 to 300 milliseconds, and it is not necessary to process all the frames of images captured by the imaging device 120. The acquisition cycle of the images to be processed by the processing device 122 may be automatically changed by the processing device 122 according to the traveling speed of the agricultural machine 100.

[0042] FIG. 9 is an image corresponding to one frame image 40 in a time-series color image captured by an imaging device (monocular camera in this example) mounted on an agricultural machine. The image in FIG. 9 shows rows of crops (crop rows) planted in rows on the ground of a farm field. In this example, the crops The rows are arranged on the ground at approximately equal intervals and parallel to each other, and the camera optical axis of the imaging device faces the traveling direction of the agricultural machine. As described above, the camera optical axis does not need to be parallel to the traveling direction of the agricultural machine, and may be incident on the ground in front of the traveling direction of the agricultural machine. The mounting position of the imaging device is not limited to this example. When multiple imaging devices are mounted on the agricultural machine, some of the imaging devices may face their camera optical axes in the opposite direction to the traveling direction or in a direction intersecting the traveling direction.

[0043] In operation S1, the processing device 122 in FIG. 7 generates an image (enhanced image) in which the color of the crop row, which is the detection target, is emphasized, based on the time-series color images acquired from the imaging device 120. Crops have chlorophyll (chlorophyll) to perform photosynthesis when exposed to sunlight (white light). Chlorophyll has a lower light absorption rate for green than for red and blue. For this reason, the spectrum of sunlight reflected by crops shows relatively high values ​​in the green wavelength range compared to the spectrum of sunlight reflected by the soil surface. As a result, the color of crops generally contains a large amount of green components, and the "color of the crop row" is typically green. However, as will be described later, the "color of the crop row" is not limited to green.

[0044] The image sensor in the imaging device 120 has a large number of photodetection cells arranged in rows and columns. Each photodetection cell corresponds to a pixel that constitutes an image, and includes an R subpixel that detects the intensity of red light, a G subpixel that detects the intensity of green light, and a B subpixel that detects the intensity of blue light. The light outputs detected by the R subpixel, G subpixel, and B subpixel in each photodetection cell are referred to as the R value, G value, and B value, respectively. Hereinafter, the R value, G value, and B value may be collectively referred to as the "pixel value" or the "RGB value." When the R value, G value, and B value are used, a color can be specified by a coordinate value in the RGB color space.

[0045] When the color of the crop row to be detected is green, an enhanced image in which the color of the crop row is enhanced is an image in which the RGB values ​​of each pixel in a color image acquired by an imaging device are converted into pixel values ​​in which the weight of the G value is relatively large. Such conversion of pixel values ​​to generate an enhanced image is defined, for example, as "(2×G value-R value-B value) / (R value+G value+B value)". Here, the denominator (R value+G value+B value) is a factor for normalization. Hereinafter, the normalized RGB value is referred to as an rgb value, and is defined as r=R value / (R value+G value+B value), g=G value / (R value+G value+B value), and b=B value / (R value+G value+B value). "2×grb" is called an excess green index (ExG: Excess Green Index).

[0046] FIG. 10 is a diagram showing an enhanced image 42 obtained by converting the RGB values ​​in the image in FIG. 9 into "2×grb." With this conversion, pixels in the image 42 in FIG. 10 where "r+b" is relatively small compared to g are displayed brighter, and pixels where "r+b" is relatively large compared to g are displayed darker. With this conversion, an image (enhanced image) 42 is obtained in which the color of the crop row to be detected ("green" in this example) is emphasized. Relatively bright pixels in the image in FIG. 10 are pixels with a relatively large green component, and belong to the crop area.

[0047] As a "color index value" for enhancing the color of the crop, other indices such as the green-red vegetation index (G value-R value) / (G value+R value) may be used in addition to the excess green index (ExG). In addition, if the imaging device can also function as an infrared camera, the NDVI (Normalized Difference Vegetation Index) may be used as the "color index value of the crop row".

[0048] In addition, each row of crops may be covered with a sheet called "mulch." In such a case, the "color of the crop row" is the "color of the object that covers the crops and is arranged in a row." Specifically, the color of the sheet is achromatic black. In this case, the "color of the crop row" means "black." Also, if the color of the sheet is red, the "color of the crop row" means "red." In this way, the "color of the crop row" refers not only to the color of the crop itself, but also to the color of the area that defines the crop row (a color that can be distinguished from the color of the soil surface).

[0049] To generate an image in which the "color of the crop row" is emphasized, a conversion from the RGB color space to the HSV color space may be used. The HSV color space is a color space consisting of three components: hue, saturation, and value. By using color information converted from the RGB color space to the HSV color space, it is possible to detect "colors" with low saturation such as black or white. When detecting "black" using the OpenCV library, the hue is set to the maximum range (0 to 179), the saturation is set to the maximum range (0 to 255), and the value range is set to 0 to 30. When detecting "white," the hue is set to the maximum range (0 to 179), the saturation is set to the maximum range (0 to 255), and the value range is set to 200 to 255. Pixels having hue, saturation, and value within these set ranges are pixels having the color to be detected. For example, when detecting green pixels, the hue range is set to, for example, 30 to 90.

[0050] By generating an image (enhanced image) in which the color of the crop rows to be detected is enhanced, it becomes easier to separate (extract) the crop row regions from the other background regions (segmentation).

[0051] Next, operation S2 will be described.

[0052] In operation S2, the processing device 122 generates a top-view image in which pixels are classified into first pixels whose index value of the color of the crop row is equal to or greater than a threshold value and second pixels whose index value is less than the threshold value from the highlighted image 42. The top-view image is an image seen from above the ground.

[0053] In this embodiment, the above-mentioned excess green index (ExG) is adopted as the index value of the color of the crop row, and the discrimination threshold is determined by the discriminant analysis method (Otsu's binarization). FIG. 11 is a histogram of the excess green index (ExG) in the enhanced image 42 of FIG. 10. The horizontal axis of the histogram is the excess green index (ExG), and the vertical axis is the number of pixels in the image (corresponding to the occurrence frequency). FIG. 11 shows a dashed line indicating the threshold value Th calculated by the algorithm of the discriminant analysis method. The pixels of the enhanced image 42 are classified into two classes by this threshold value Th. On the right side of the dashed line indicating the threshold value Th, the occurrence frequency of pixels whose excess green index (ExG) is equal to or greater than the threshold value is shown, and these pixels are estimated to belong to the crop class. On the other hand, on the left side of the dashed line indicating the threshold value Th, the occurrence frequency of pixels whose excess green index (ExG) is less than the threshold value is shown, and these pixels are estimated to belong to the class of crops such as soil. In this example, the first pixel whose index value is equal to or greater than the threshold value corresponds to a "crop pixel." On the other hand, the second pixel whose index value is less than the threshold corresponds to a "background pixel." The background pixel corresponds to an object other than the detection target, such as the surface of the soil, and the intermediate area (work passage) 14 described above may be composed of background pixels. Note that the method of determining the threshold is not limited to the above example, and the threshold may be determined using another method that utilizes machine learning, for example.

[0054] By assigning each pixel constituting the enhanced image 42 to either the "first pixel" or the "second pixel," it is possible to extract the detection target area from the enhanced image 42. In addition, by giving the pixel value of the "second pixel" a "zero" or removing the data of the second pixel from the image data, it is possible to mask areas other than the detection target. When determining the area to be masked, a process may be performed in which pixels showing locally high values ​​of the excess green index (ExG) are included in the mask area as noise.

[0055] FIG. 12 shows a top view image 44 of the ground, which is classified into first pixels and second pixels. 12 is a diagram showing an example. The top-view image 44 of FIG. 12 is an image created from the enhanced image 42 of FIG. 10 by the image conversion technique described later. In this top-view image 44, the second pixels whose crop row color index value (in this example, the green excess index) is less than the threshold Th are black pixels (pixels whose brightness is set to zero). The area formed by the second pixels is an area where the surface of the soil on the ground is mainly visible. In the top-view image 44 of FIG. 12, black triangular areas exist at the left and right corners that contact the bottom side. These triangular areas correspond to areas that were not captured in the enhanced image 42 of FIG. 10. Note that in the image 40 of FIG. 9 and the enhanced image 42 of FIG. 10, a phenomenon is observed in which lines that should be straight are distorted in the periphery of the image. Such image distortion occurs due to the performance of the camera lens and can be corrected using the internal parameters of the camera. Processing such as crop area emphasis, masking, and distortion correction can be called preprocessing. Preprocessing may include processing other than such processing.

[0056] The top-view image 44 in Fig. 12 is an overhead image of a reference plane Re parallel to the ground, viewed from directly above in the normal direction of the reference plane Re. This overhead image can be generated from the enhanced image 42 in Fig. 10 by homography transformation (planar projective transformation). The homography transformation is a type of geometric transformation that can transform a point on a certain plane in a three-dimensional space into a point on any other plane.

[0057] FIG. 13 is a perspective view showing a schematic arrangement relationship between the camera coordinate system Σc1 of the imaging device in the first posture (position and orientation: pose) and the camera coordinate system Σc2 of the imaging device in the second posture, and the reference plane Re. In the illustrated example, the camera coordinate system Σc1 is inclined so that its Zc axis obliquely intersects with the reference plane Re. The imaging device in the first posture corresponds to the imaging device attached to the agricultural machine. In contrast, the camera coordinate system Σc2 has its Zc axis perpendicular to the reference plane Re. In other words, the camera coordinate system Σc2 is arranged so that an overhead image of the reference plane Re viewed from directly above in the normal direction of the reference plane Re can be obtained.

[0058] A virtual image plane Im1 exists at a position that is a focal length of the camera on the Zc axis from the origin O1 of the camera coordinate system Σc1. The image plane Im1 is orthogonal to the Zc axis and the camera optical axis λ1. The pixel position on the image plane Im1 is defined by an image coordinate system having a u axis and a v axis that are orthogonal to each other. For example, the coordinates of points P1 and P2 located on the reference plane Re are (X1, Y1, Z1) and (X2, Y2, Z2) in the world coordinate system Σw, respectively. In the example of FIG. 13, the Xw axis and the Yw axis of the world coordinate system Σw are on the reference plane Re. Therefore, Z1=Z2=0. The reference plane Re is set to extend along the ground.

[0059] Points P1 and P2 on the reference plane Re are transformed into points p1 and p2 on an image plane Im1 of the imaging device in a first attitude by perspective projection of the pinhole camera model. In the image plane Im1, points p1 and p2 are located at pixel positions indicated by the coordinates (u1, v1) and (u2, v2), respectively.

[0060] When the imaging device is in the second orientation, a virtual image plane Im2 exists at a position that is a focal length of the camera on the Zc axis away from the origin O2 of the camera coordinate system Σc2. In this example, the image plane Im2 is parallel to the reference plane Re. The pixel positions on the image plane Im2 are determined by the mutually orthogonal u * axis and v * The image coordinate system is defined by the axis. Points P1 and P2 on the reference plane Re are projected by perspective projection to points p1 and p2 on the image plane Im2. * and point p2 * In the image plane Im2, the point p1 * and point p2 * are respectively, (u1 * ,v1 * ) and (u2 * ,v2 * ) at the pixel position indicated by the coordinates.

[0061] The positional relationship of the camera coordinate systems Σc1 and Σc2 with respect to the reference plane Re (world coordinate system Σw) Given the above, the homography transformation can be used to transform any point (u,v) on the image plane Im1 to the corresponding point (u * ,v * ) can be obtained. When the coordinates of the points are expressed in a homogeneous coordinate system, such a homography transformation is defined by a 3 row × 3 column transformation matrix H.

number

[0062] The contents of the transformation matrix H are as follows: 11 , h 12 , , h 32 It is defined by the numerical value.

number

[0063] 8 numbers (h 11 , h 12 , , h 32 ) can be calculated using a known algorithm by capturing an image of a calibration board placed on the reference plane Re using the imaging device 120 attached to the agricultural machine 100.

[0064] When the coordinates of a point on the reference plane Re are (X, Y, 0), the coordinates of the corresponding points on the image planes Im1 and Im2 of the respective cameras are associated with the point (X, Y, 0) by the respective homography transformation matrices H1 and H2, as shown in the following equations 3 and 4.

number

number

[0065] The following formula is derived from the above two formulas. As is clear from this formula, the transformation matrix H is H2H1 -1 Equivalent to H1 -1 is the inverse matrix of H1.

number

[0066] Since the contents of the transformation matrices H1 and H2 depend on the reference plane Re, when the position of the reference plane Re changes, the contents of the transformation matrix H also change.

[0067] By using such homography transformation, a top-view image of the ground can be generated from an image of the ground captured by an image capture device (an image capture device attached to an agricultural machine) in a first attitude. In other words, according to the homography transformation, the image plane of the image capture device 120 The coordinates of any point on Im1 can be transformed into the coordinates of a point on an image plane Im2 of a virtual imaging device that is in a given orientation with respect to the reference plane Re.

[0068] After calculating the contents of the transformation matrix H, the processing device 122 executes a software program based on the above algorithm to generate an overhead image of the ground 10 from the time-series color images or preprocessed images of the time-series color images.

[0069] In the above description, it is assumed that all points (e.g., P1, P2) in the three-dimensional space are located on the reference plane Re (e.g., Z1=Z2=0). If the height of the crop with respect to the reference plane Re is not 0, the position of the corresponding point shifts from the correct position in the top view image after the homography transformation. In order to suppress an increase in the shift amount, it is desirable that the height of the reference plane Re is close to the height of the crop to be detected. The ground 10 may have unevenness such as ridges, furrows, and grooves. In such a case, the reference plane Re may be displaced upward from the bottom of such unevenness. The distance of the displacement may be appropriately set according to the unevenness of the ground 10 on which the crop is cultivated.

[0070] Furthermore, when the agricultural machine 100 is traveling on the ground 10, if a roll or pitch motion occurs in the vehicle body 110 (see FIG. 1), the attitude of the image capture device 120 changes, and the contents of the transformation matrix H1 may change. In such a case, if the roll and pitch rotation angles of the vehicle body 110 are measured by the IMU, the transformation matrix H1 and the transformation matrix H can be corrected according to the change in attitude of the image capture device.

[0071] The processing device 122 in this embodiment generates a top view image of the ground viewed from above, in which the crop row color index value is classified into first pixels whose index value is equal to or greater than a threshold value and second pixels whose index value is less than the threshold value, using the method described above, and then performs operation S3.

[0072] Next, operation S3 will be described.

[0073] In operation S3, the processing device 122 determines the position of the edge line of the crop row based on the index value of the first pixel. Specifically, the processing device 122 accumulates the index values ​​of the first pixel (a pixel whose color index value is equal to or greater than a threshold value) along multiple scan lines in the top-view image.

[0074] Fig. 14 is an example of a top-view image 44 showing three crop rows 12. In this example, the direction of the crop rows 12 is parallel to the image vertical direction (v-axis direction). Fig. 14 shows a number of scan lines (dashed lines) S parallel to the image vertical direction (v-axis direction). The processing device 122 accumulates the index values ​​of pixels located on the multiple scan lines S for each scan line S to obtain an accumulated value.

[0075] FIG. 15 is a diagram showing a schematic relationship between the position of the scanning line S and the integrated value of the index value (histogram of the integrated value) obtained for the top-view image of FIG. 14. The horizontal axis of FIG. 15 indicates the position of the scanning line S in the horizontal direction of the image (u-axis direction). In the top-view image 44, when most of the pixels crossed by the scanning line S are first pixels belonging to the crop rows 12, the integrated value of the scanning line S becomes large. On the other hand, when most of the pixels crossed by the scanning line S are second pixels (background pixels) belonging to the intermediate region (work passage) 14 between the crop rows 12, the integrated value of the scanning line S becomes small. In this embodiment, the intermediate region (work passage) 14 is masked, and the index value of the second pixel is zero.

[0076] In the histogram of FIG. 15, there are concave regions where the integrated value is zero or close to zero, and convex regions that are separated by these concave regions. The concave regions correspond to the intermediate region (work passage) 14, and the convex regions correspond to the crop rows 12. In this embodiment, the convex regions are arranged at predetermined positions on both sides of the peak of the integrated value in the convex regions, specifically, at a predetermined ratio (for example, 60 15. The position of the scan line S having an integrated value within the range of 80% to 90% (a value selected from the range of 80% to 90%) is determined as the position of the edge line of the crop row 12. Both ends of the arrow W in FIG. 15 indicate the positions of the edge line of each crop row 12. In the example of FIG. 15, the position of the edge line of each crop row 12 is the position of the scan line S having a value of 80% of the peak of the integrated value of each crop row 12.

[0077] In this embodiment, the second pixels are masked, and then the index values ​​of the color of the crop row on each scan line S are accumulated. That is, the number of first pixels (number of pixels) is not counted for the top view image binarized based on the classification of the first pixels and the second pixels. When the number of first pixels is counted, for example, if there are many pixels (classified as the first pixels) that slightly exceed the threshold value Th due to fallen leaves, weeds, etc., the count value of the first pixels increases. In contrast, accumulating the index values ​​of the color of the crop row of the first pixels, rather than the number of first pixels, as in the embodiment of the present disclosure, suppresses erroneous determinations due to fallen leaves and weeds and increases the robustness of row detection.

[0078] Fig. 16 is an example of a top-view image 44 in which the crop rows 12 extend at an angle. As described with reference to Fig. 3 and Fig. 4, depending on the orientation of the agricultural machine 100, the direction in which the crop rows 12 extend in the image 40 acquired by the imaging device 120 may be tilted to the right or left within the image. When a top-view image 44 is generated from such an image by homography transformation, the direction of the crop rows 12 is tilted from the image vertical direction (v-axis direction), as in the example of Fig. 16.

[0079] FIG 16 also shows a number of scanning lines (dashed lines) S parallel to the vertical direction (v-axis direction) of the image. When the processing device 122 accumulates the index values ​​of pixels located on such a plurality of scanning lines S for each scanning line S to obtain an accumulated value, a histogram of the accumulated values ​​as shown in FIG 17 is obtained. FIG 17 is a diagram showing a schematic diagram of the relationship between the position of the scanning line S and the accumulated value of the index values ​​obtained for the top view image of FIG 16. From this histogram, it is not possible to determine the edge line of the crop row 12.

[0080] FIG. 18 is a flowchart showing an example of a procedure for searching for a direction (angle) of the scanning line S parallel to the direction of the crop rows 12 by changing the direction (angle) of the scanning line S.

[0081] In step S10, the direction (angle) of the scanning line S is set. Here, the clockwise angle with respect to the u axis in the image coordinate system is set as θ (see Figs. 14 and 16). The search for the angle θ can be set in a range of, for example, 60 to 120 degrees, with the angle increment set to, for example, 1 degree. In this case, in step S1, 60, 61, 62, . . . , 119, and 120 degrees are given as the angle θ of the scanning line S.

[0082] In step S12, the index values ​​are accumulated for pixels on the scanning line S extending in the direction of each angle θ, and a histogram of the accumulated values ​​is created. The histogram will show a different distribution depending on the angle θ.

[0083] In step S14, from the multiple histograms thus obtained, a histogram is selected in which the boundary between the convex and concave portions is sharp and the crop rows 12 are clearly separated from the intermediate region 14, as shown in FIG. 15, and the angle θ of the scanning line S that generates that histogram is determined.

[0084] In step S16, an edge line of each crop row 12 is determined from the peak value of the histogram corresponding to the angle θ obtained in step S14. As described above, the position of the scan line S having an integrated value, for example, 0.8 times the peak, may be adopted as the edge line.

[0085] When searching for the direction (angle) of the scanning line S, the angle θ is changed by 1 degree within the search range. Each time the angle θ is converted, a histogram of the integrated values ​​on the scanning line S at that angle θ may be created. A feature value (e.g., the depth of a concave portion / the height of a convex portion, a differential value of an envelope, etc.) may be calculated from the waveform of the histogram, and whether or not the direction of the crop row 12 and the direction of the scanning line S are parallel may be determined based on the feature value.

[0086] It should be noted that the method for determining the angle θ is not limited to the above example. If the direction in which the crop rows extend is known by measurement, the direction of the agricultural machine 100 may be measured by an inertial measurement unit (IMU) mounted on the agricultural machine 100, and the angle θ with respect to the direction in which the crop rows extend may be determined.

[0087] Fig. 19 is a diagram showing an example of an integrated value histogram created from the top view image of Fig. 12. For the convex part of the histogram located in the center, the scanning line position that is 0.8 times the peak value is set as the position of the edge line E. In this histogram, the peak of the convex part becomes lower and wider as the scanning line position moves left and right from the center. This is because, as is clear from the image of Fig. 12, the image distortion is small at the center of the top view image, whereas the image distortion increases as the image moves left and right from the center, and the black triangular areas located on both sides of the bottom side reduce the integrated value.

[0088] When crop row detection is used for agricultural machinery navigation, the crop rows that need to be detected accurately are in the center or around the center of the image, so distortion in the areas near both the left and right ends of the top view image can be ignored.

[0089] FIG. 20 is a block diagram showing a series of processes executed by the processing device 122 in this embodiment. As shown in FIG. 20, the processing device 122 executes image acquisition 32, enhanced image generation 33, crop row extraction 34, and homography transformation 35 to obtain a top view image 44 as shown in FIG. 16, for example. The processing device 122 further executes scan line direction determination 36 and edge line position determination 37 to obtain the position of the edge line of the crop row. Thereafter, the processing device 122, or a path generation device that has obtained information indicating the position of the edge line from the processing device 122, can execute target path generation 38 for the agricultural machine based on the edge line. The target path can be generated so that the wheels of the agricultural machine are maintained in the intermediate area (work passage) 14 between the edge lines E. For example, the target path can be generated so that the center of the tire in the width direction passes through the center of two edge lines located at both ends of the intermediate area (work passage) 14. According to such a target path, even if the agricultural machine deviates from the target path by about several centimeters while traveling, it is possible to reduce the possibility that the tire will enter the crop row.

[0090] It has been confirmed that the embodiment of the present disclosure enables highly accurate detection of crop rows by suppressing the influence of weather conditions such as front light, back light, sunny, cloudy, and foggy weather, and sunlight conditions that change depending on the working time. It has also been confirmed that highly robust detection of crop rows is possible even if the type of crop (cabbage, broccoli, radish, carrot, lettuce, Chinese cabbage, etc.), growth state (from seedling to mature state), presence or absence of disease, presence or absence of fallen leaves and weeds, and soil color change.

[0091] In the above embodiment, the homography transformation is performed after the step of determining a binarization threshold and extracting a crop region using pixels equal to or greater than the threshold. However, the step of extracting a crop region may be performed after the homography transformation. Specifically, in the series of processes shown in FIG. 20, the homography transformation 35 may be performed between the enhanced image generation 33 and the crop row extraction 34, or may be performed between the image acquisition 32 and the enhanced image generation 33.

[0092] Below, we describe a variation of the row detection method implemented by the crop detection system according to the present disclosure.

[0093] FIG. 21 is a diagram for explaining a method of dividing a part or the whole of a top view image into a plurality of blocks and determining the position of an edge line for each of the plurality of blocks.

[0094] In this modified example, the processing device 122 divides a part or the whole of the top view image 44 into a plurality of blocks. Then, for each of the plurality of blocks, the position of the edge line E of the crop row 12 is determined. In the illustrated example, three blocks B1, B2, and B3 have a continuous band shape in the horizontal direction of the image in the top view image. The processing device 122 can determine the edge line of the crop row based on the band shape in a direction different from the traveling direction of the agricultural machine 100.

[0095] FIG. 22 is a diagram showing a schematic diagram of the relationship between the position of the scanning line S and the accumulated value of the index value (accumulated value histogram) in each of blocks B1, B2, and B3 of the top view image of FIG. 21. The scanning line S when performing the accumulation is always parallel to the vertical direction of the image. The accumulation of the index value is performed on a block-by-block basis, and there is no need to change the direction (angle) of the scanning line S. By shortening the length of the scanning line S, it becomes possible to properly detect the area of ​​the second pixel (background pixel) caused by the intermediate area (work passage) 14 even if the crop row 12 extends obliquely. This eliminates the need to change the angle of the scanning line S.

[0096] Both ends of the arrow W in Fig. 22 indicate the positions of the edge lines of the crop rows determined in each of the blocks B1, B2, and B3. In the example shown in Fig. 21, the direction of the crop rows 12 is inclined with respect to the direction of the scan line S. Therefore, as described above, when the scan line position showing a value 0.8 times the peak value of the integrated value histogram is adopted as the position of the edge line E of the crop rows 12, the position of such edge line E corresponds to both ends of the "width" passing near the center of the crop rows 12 in each of the blocks B1, B2, and B3.

[0097] FIG. 23 shows the crop row centers Wc in each of the blocks B1, B2, and B3 in FIG. 22. The crop row centers Wc are found from the centers of the arrows W that define the edge lines of the crop rows found from the integrated value histogram in FIG. 22, and are located at the center of each block in the vertical direction of the image. FIG. 23 shows an example of an approximation line 12C for the crop row centers Wc that belong to the same crop row 12. The approximation line 12C is, for example, a straight line found so as to minimize the mean square of the distances (errors) from the multiple crop row centers Wc of each crop row 12. Such an approximation line 12C corresponds to a line that passes through the center of the crop row 12.

[0098] Fig. 24 is a top view showing an example of edge lines E of crop rows 12 determined from the approximation line 12C in Fig. 23. In this example, the two edge lines E associated with each crop row 12 are spaced apart by the same distance as the length of the arrow W and are equidistant from the approximation line 12C.

[0099] According to this modified example, it is not necessary to change the direction (angle) of the scanning line, and the edge line E of the crop row 12 can be obtained with a smaller amount of calculation. The length of each block in the vertical direction of the image can be set to correspond to a distance of 1 to 2 meters on the ground, for example. In this modified example, one image is divided into three blocks to obtain the integrated value histogram, but the number of blocks may be four or more. The shape of the block is not limited to the above example. The block may have a continuous band shape in either the horizontal direction or the vertical direction of the image in the top view image. The processing device 122 can divide the image into band-shaped blocks extending in a direction different from the traveling direction of the agricultural machine 100 and determine the edge line of the crop row.

[0100] FIG. 25 is a schematic diagram showing a state in which the crop rows 12 in the top view image 44 include a curved portion. FIG. 26 shows blocks B1, B2, and B3 in the top view image 44 in FIG. 13 shows a schematic diagram of an integrated value histogram in the case where the

[0101] Fig. 27 is a diagram showing an example of the crop row centers Wc in each of the blocks B1, B2, and B3 in Fig. 26, and an approximation line 12C for each crop row center Xc. The approximation line 12C in this example is, for example, a curve (e.g., a higher-order curve such as a cubic curve) determined so as to minimize the mean square of the distance (error) from the crop row center Wc of each crop row 12. Such an approximation line 12C corresponds to a curved line passing through the center of the crop row 12 having a curved portion.

[0102] Fig. 28 is a top view showing an example of edge lines E of the crop rows 12 determined from the approximation lines of Fig. 27. The edge lines E are generated in a manner similar to that described with reference to Fig. 24. That is, the two edge lines E associated with each crop row 12 are spaced apart by the same distance as the length of the arrow W and are equidistant from the approximation line 12C.

[0103] As explained above, by dividing a top view image into multiple blocks and generating a histogram of integrated values ​​for each block, it becomes easy to determine the direction of the crop row, and even if the direction of the crop row changes along the way, it becomes possible to know the direction to which it has changed.

[0104] Any of the above sequence detection methods may be computer implemented and performed by causing a computer to perform the desired operations.

[0105] (Embodiment 2) A row detection system and a row detection method according to a second exemplary embodiment of the present disclosure will be described. In this embodiment, ridge detection is performed as "row detection".

[0106] FIG. 29 is a perspective view showing a row of ridges 16 on the ground 10. A "ridge" is a place where plants are planted in rows, and is a convex portion extending in an almost straight line with soil piled up at intervals. The cross-sectional shape of the ridges 16 perpendicular to the direction in which the ridges 16 extend can be roughly trapezoidal, semicircular, or semicircular. FIG. 29 shows a ridge 16 having a trapezoidal cross section. An actual ridge does not have a simple shape as shown in FIG. 29. Between two adjacent ridges 16 is an intermediate region 14, which is called a furrow space. The intermediate region 14 functions as a work passage. Crops may be planted on the ridges 16, or they may not be planted, with only the soil exposed as a whole. Each of the ridges 16 may be covered with mulch.

[0107] The height, width, and spacing of the ridges 16 do not need to be uniform and may vary from place to place. The height of the ridges 16 is generally the difference in height between the ridges and the spacing between the ridges. In this specification, the "height" of the ridges 16 is defined as the distance from the reference plane Re described above to the top surface of each ridge 16.

[0108] In the example of FIG. 29, the edge lines of the ridges 16 are clear. However, the actual ridges 16 are a part of the ground 10 that continues from the intermediate region 14, and the "cross-sectional shapes" of the ridges 16 are also diverse as described above, so the boundaries between the ridges 16 and the intermediate region 14 are not necessarily clear. In the embodiment of the present disclosure, the edge lines of the ridges 16, i.e., the boundaries between the ridges 16 and the intermediate region 14, are defined as positions located on both sides of the peaks of each ridge 16 and at a height that is a predetermined percentage of the peaks. The positions of the edge lines are, for example, positions that have a height that is 0.8 times the height of the peaks of each ridge 16.

[0109] 7, the line detection system 1000 according to this embodiment also includes an imaging device 120 and a processing device 122 that performs image processing of time-series color images acquired from the imaging device 120. The hardware configuration of the processing device 122 is the same as that of the processing device 122 in the first embodiment. is the same as:

[0110] In this embodiment, the processing device 122 acquires time-series images from the imaging device 120, and executes the following operations S21, S22, and S23.

[0111] (S21) A first movement amount in an image plane of each of a plurality of feature points is obtained by feature point matching from a plurality of images captured at different times in the time-series images.

[0112] (S22) Each of the plurality of feature points is perspectively projected from the image plane onto a reference plane corresponding to the ground, and a second movement amount of each projected point in the reference plane is calculated based on the first movement amount.

[0113] (S23) Based on the second movement amount, heights of the plurality of feature points from the reference plane are estimated to detect ridges on the ground.

[0114] Specific examples of operations S21, S22, and S23 will be described in detail below.

[0115] First, operation S21 will be described. In operation S11, a first movement amount in an image plane of each of a plurality of feature points is obtained from a plurality of images acquired at different times of the time-series image by feature point matching. The time-series image is a collection of images acquired in time series by the imaging device 120 through shooting. The time-series image does not have to be a color image, but may be a color image. When the imaging device 120 outputs the time-series color image, the processing device 122 may grayscale the processing target color image of the time-series color image. As described in the first embodiment, each image is composed of a pixel group in a frame unit. The frame rate is also as described in the first embodiment.

[0116] Fig. 30 shows one frame of image 40(t) in a time-series image captured at time t by an imaging device (monocular camera in this example) 122 mounted on the agricultural machine 100. In this example, no crops are planted on the ridges 16. The data of image 40(t) captured by the monocular camera does not include depth information. For this reason, it is not possible to know the difference in elevation between the ridges 16 and the intermediate region 14 from a single image 40(t).

[0117] The imaging device 120 acquires an image 40(t+1), an image 40(t+2), an image 40(t+3), etc. in chronological order not only at time t but also at other times, for example, at times t+1, t+2, t+3, etc. The multiple images acquired in chronological order by the imaging device 120 while the agricultural machine 100 is traveling may include the same area of ​​the ground 10 in a partially overlapping manner.

[0118] In this embodiment, the processing device 122 extracts feature points from the images 40(t), 40(t+1), .... A "feature point" is a pixel whose luminance value or color can be distinguished from the surrounding pixels and whose position can be identified within the image. Extracting feature points in an image makes it possible to match multiple images of the same scene. In an area of ​​an image where the luminance value and color are uniform, it is difficult to distinguish the pixels within that area from the surrounding pixels. For this reason, feature points are selected from areas in the image where the luminance value or color changes locally. A feature point is a pixel or a group of pixels that has a "local feature amount".

[0119] In this embodiment, the purpose of extracting feature points is to measure the amount of movement of feature points by performing feature point matching on the time-series images 40(t), 40(t+1), ... captured by the agricultural machine 100 while it is moving. The processing device 122 can extract feature points suitable for such feature point matching through image processing. An example of an algorithm for extracting feature points through image processing is SIFT (Scale-invariant feature vector transformation). re transform), SURF (Speed-Upped Robust Feature), KAZE, and A-KAZE (ACCELERATED-KAZE). KAZE and A-KAZE, like SIFT or SURF, are feature point extraction algorithms that are resistant to changes in scaling, rotation, and illumination, and have high robustness. Unlike SIFT and SURF, KAZE and A-KAZE do not use a Gaussian filter. For this reason, KAZE and A-KAZE are less susceptible to changes in rotation, scale, and brightness value, and can extract feature points from areas in an image where the brightness value and color change are relatively small. For this reason, it becomes easy to extract feature points suitable for feature point matching from images such as soil surfaces. In addition, A-KAZE has the advantage of being more robust than KAZE and being able to increase the processing speed. In this embodiment, feature points are extracted using the A-KAZE algorithm. However, the algorithm for feature point matching is not limited to this example.

[0120] 31 shows a schematic diagram of the correspondence between feature points of an image 40(t) captured by an imaging device at time t and an image 40(t+1) captured at time t+1. Here, the time interval between time t and time t+1 can be, for example, 100 milliseconds to 500 seconds.

[0121] A feature point matching algorithm is used to associate a plurality of feature points extracted from image 40(t) with a plurality of feature points in image 40(t+1) that correspond to the plurality of feature points. In FIG. 31, eight pairs of corresponding feature points are connected by arrows. In this embodiment, the processing device 122 can extract, for example, hundreds to more than a thousand feature points from each of image 40(t) and image 40(t+1) by A-KAZE. The number of feature points to be extracted can be determined based on the number of images to be processed per second.

[0122] After performing such feature point matching, the processing device 122 calculates the amount of movement (first movement amount) in the image plane for each of the multiple feature points. The first movement amount calculated from the two images 40(t) and 40(t+1) does not have a common value for all feature points. The first movement amount shows different values ​​due to the physical height difference of the feature points on the ground 10.

[0123] FIG. 32 is a perspective view showing the movement of the ridge 16 and the intermediate region (work passage) 14 shown in the image acquired by the imaging device 120, and also shows an image 40(t) and an image 40(t+1) as a schematic diagram. FIG. 32 shows a schematic diagram of a point F1 on the ridge 16 and a point F2 on the intermediate region (between the ridges or the work passage) 14 moving horizontally to the left side of the drawing. This horizontal movement is a relative motion caused by the imaging device 120 fixed to the agricultural machine 100 moving to the right together with the agricultural machine 100. For simplicity, FIG. 32 shows a state in which the origin O of the camera coordinate system Σc in the imaging device 120 is stationary and the ground 10 moves toward the left side. The height of the origin O of the camera coordinate system Σc is Hc. In the example shown in the figure, the ridge 16 is a simplified ridge having a height dH.

[0124] In the image 40(t) of FIG. 32, the feature point f1 of the ridge 16 and the feature point f2 of the intermediate region 14 are shown. These feature points f1 and f2 are examples of many feature points extracted by a feature point extraction algorithm such as A-KAZE. In the image 40(t+1), the feature points f1 and f2 after movement are shown. In addition, for reference, in the image 40(t+1), an arrow A1 indicating the movement of the feature point f1 from time t to time t+1 and an arrow A2 indicating the movement of the feature point f2 are shown. The length of the arrow A1 (corresponding to the first movement amount) is greater than the length of the arrow A2 (corresponding to the first movement amount). In this way, the movement amount of the feature point in the image (first movement amount) differs depending on the distance from the origin O of the camera coordinate system Σc to the corresponding point of the subject. This is due to the geometric properties of the perspective projection.

[0125] The feature points f1 and f2 in the image 40(t) are points obtained by perspectively projecting the points F1 and F2 on the surface of the ground 10, which is the subject, onto the image plane Im1 of the imaging device 120. Similarly, the feature points f1 and f2 in the image 40(t+1) are points obtained by perspectively projecting the points F1* and F2* on the surface of the ground 10, which is the subject, onto the image plane Im1 of the imaging device 120. The center point of the perspective projection is the origin O of the camera coordinate system Σc of the imaging device 120. Since the perspective projection has a bidirectional relationship, the points F1 and F2 can also be said to be points obtained by perspectively projecting the feature points f1 and f2 in the image 40(t) onto the ground 10. Similarly, the points F1* and F2* can also be said to be points obtained by perspectively projecting the feature points f1 and f2 in the image 40(t) onto the ground 10.

[0126] 32, between time t and time t+1, point F1 on the ridge 16 moves to the position of point F1*, and point F2 on the intermediate region 14 moves to the position of point F2*. Both of these movement distances are equal to the distance traveled by the agricultural machine 100 between time t and time t+1 (horizontal movement distance). In contrast, the movement amounts of feature points f1 and f2 on the image plane Im1 of the imaging device 120 are different from each other.

[0127] 33 is a diagram showing a schematic relationship between the amount of movement (L) of point F1 on ridge 16 corresponding to feature point f1 in image plane Im1 of imaging device 120 and the amount of movement (second amount of movement L+dL) of point (projected point) F1p projected onto reference plane Re. In this example, the height of reference plane Re is made to coincide with the height of intermediate region (between furrows) 14, and the height of ridge 16 is set to dH.

[0128] 33, point F1 on the ridge 16 has moved to the left by a distance (movement amount) L equal to the traveling distance of the agricultural machine 100, but the movement amount (second movement amount) of point (projected point) F1p perspectively projected onto reference plane Re is expressed as L+dL, which is longer than L. This is because point F1 on the ridge 16 is located at a higher position than reference plane Re and is closer to the center of perspective projection (origin O of the camera coordinate system). Corresponding to this extra length dL, the movement amount (first movement amount) on the image plane Im1 has also increased.

[0129] The following formula can be derived from the ratio of the side lengths (similarity ratio) of the two similar triangles shown in Figure 33.

number

[0130] By transforming the above equation, the following equation is obtained.

number

[0131] The processing device 122 in this embodiment executes operation S22 to estimate the magnitude of the unevenness on the ground 10 based on the above formula. That is, each of the multiple feature points is perspectively projected from the image plane onto a reference plane Re corresponding to the ground 10, and the second movement amount (L+dL) of each projected point in the reference plane Re is obtained based on the first movement amount. The distance L in the above formula can be obtained by measuring the travel distance of the agricultural machine 100. In addition, the height Hc of the origin O of the camera coordinate system from the reference plane Re is known. Therefore, if the second movement amount (L+dL) is known, the height dH of the ridge 16 can be calculated from the formula (7). Then, the second movement amount (L+dL) can be obtained from the first movement amount.

[0132] After performing operation S22, the processing device 122 performs operation S23.

[0133] In operation S23, the processing device 122 estimates the height dH of each characteristic point from the reference plane Re based on the second movement amount (L+dL) of each characteristic point, and detects the ridge 16 of the ground surface 10.

[0134] In this manner, in this embodiment, when the height of the center point O of the perspective projection from the reference plane Re is Hc, the heights of a plurality of feature points from the reference plane Re are dH, the second movement amount of a feature point on the reference plane Re (where dH is zero) is L, and the second movement amount of a feature point where dH is greater than zero is L+dL, Hc (1.0-L / (L+dL)) can be determined as the height of each feature point.

[0135] When determining the second movement amount from the first movement amount, a homography transformation can be used. Specifically, the inverse matrix H1 of the above-mentioned transformation matrix H1 -1The coordinates of each feature point on the image plane Im1 can be transformed into the coordinates of the corresponding point on the reference plane Re using the above equation. Therefore, the processing device 122 first obtains a first movement amount from the coordinates of each feature point on the image plane Im1 before and after the movement. Next, after changing the coordinates of each feature point into the coordinates of the corresponding point on the reference plane Re by homography transformation, the processing device 122 can obtain a second movement amount from the coordinates on the reference plane Re before and after the movement.

number

[0136] Fig. 34 is a block diagram showing a series of processes executed by the processing device 122 in the second embodiment. As shown in Fig. 34, the processing device 122 executes image acquisition 52, feature point matching 53, movement amount calculation 54, and feature point height estimation 55. As a result, an estimate of the height from the reference plane Re can be obtained for each of a number of feature points in the image. A two-dimensional map of such height estimates shows the distribution of height differences of the unevenness on the surface of the ground 10.

[0137] As described in the first embodiment, in this embodiment, multiple scan lines are set. However, in this embodiment, the average height value of the feature points is calculated along each scan line. In addition, by changing the direction (angle) of the scan line, the direction in which the ridges extend can be found from the distribution of the average height values ​​of the feature points. If the direction in which the ridges 16 extend can be determined, the edge lines of the ridges 16 can be determined by a method similar to the method for determining the edge lines of the crop rows 12. Note that, as described with reference to FIG. 21 and the like, if a method of dividing an image into multiple blocks is adopted, the scan line direction determination 56 can be omitted.

[0138] Thus, the processing device 122 in this embodiment executes scan line direction determination 56, edge line position determination 57, and target path generation 58, as shown in FIG.

[0139] FIG. 35 is a diagram showing the relationship between the average height of feature points on a scan line parallel to the direction in which the ridges extend and the position of the scan line. In the graph of FIG. 35, the horizontal axis indicates the position of the scan line, and the vertical axis indicates the average height of feature points on each scan line. As shown in the graph, the average height repeatedly increases and decreases as the position of the scan line moves from left to right. The position where the average height shows a peak corresponds to the center of the ridge. The curve showing the average height forms a valley between two adjacent peaks. This valley corresponds to the vicinity of the center of the intermediate region (furrow space or work passage) 14.

[0140] In this embodiment, the processing device 122 determines positions on both sides of the peak position indicated by the height average value and having a height that is a predetermined ratio (for example, 0.8 times) of the peak as the edge line of the ridge. Above the graph in Fig. 35, white arrows are shown indicating the positions of the edge lines of each of the two ridges in the image.

[0141] In this embodiment, as described with reference to FIGS. 21 to 28, an image may be divided into a plurality of blocks, and the average value of the heights of feature points on the scanning lines may be calculated for each block.

[0142] According to this embodiment, row detection does not depend on the "color of the crop row," so it has the advantage of being less affected by the type of crop or sunlight conditions. It has been confirmed that it can detect not only high ridges such as the "high ridges" often created in vegetable cultivation, but also relatively low ridges in the range of 5 to 10 centimeters in height.

[0143] The processing device 122 may simultaneously or selectively perform the detection of the crop row in the first embodiment and the detection of the ridge in the second embodiment. When a crop is planted in the ridge, the processing device 122 may function as the crop row detection system in the first embodiment and the ridge detection system in the second embodiment. In this case, the edge line of the crop row and the edge line of the ridge are determined. The target path of the agricultural machine can be determined based on both or one of the edge lines.

[0144] The processing device 122 may calculate the reliability of detection for each of the crop row detection and the ridge detection. The reliability of the crop row detection may be determined based on, for example, the distribution of the integrated values ​​of the index values ​​shown in FIG. 22 or the magnitude of the peak value. The reliability of the ridge detection may be determined based on, for example, the magnitude of the difference between the maximum value and the minimum value in the height distribution shown in FIG. 35. For example, when a target route is generated based on the edge lines of the detected crop rows and the agricultural machine is traveling along the target route, ridge detection may be performed in the background at a location where crop row detection becomes impossible or the reliability falls below a predetermined level so that the target route is generated based on the edge lines of the ridges.

[0145] In addition, in cases where the processing device 122 is capable of performing both crop row detection and ridge detection, one or both of the crop row detection and ridge detection may be performed depending on the user's selection.

[0146] (Embodiment 3) A third embodiment of a queue detection system according to the present disclosure will now be described.

[0147] In each of the above-described embodiments, it is possible to detect columns from the entire image. In this embodiment, the target area for column detection, i.e., the search range for columns, is limited to a part of the image.

[0148] The row detection system 2000 in this embodiment includes a processing device 122 attached to the agricultural machine 100. The agricultural machine 100 in this embodiment has one or more wheels. FIG. 36 shows an example of a basic configuration of the row detection system 2000 in this embodiment. The row detection system 2000 includes a processing device 122 having a hardware configuration similar to that of the other embodiments. This processing device 122 selects a search area for detecting at least one of a crop row and a ridge from the time-series images. This search area has a size and shape that includes at least a part of a wheel.

[0149] 37 shows an example of an image 40 acquired by the processing device 122 from the image capture device 120. The image 40 is one of a time series of images. The image 40 includes the crop row 12, the intermediate region 14, Shown in the image are a part of the vehicle body 110 and a part of the front wheel 104F of the agricultural machine 100. For reference, edge lines are indicated by white lines in Fig. 37.

[0150] Fig. 38 is a diagram showing a part of the image in Fig. 37. In Fig. 38, a part of the vehicle body 110 of the agricultural machine 100 and a part of the front wheel 104F shown in the image 40 are surrounded by a white line. In the image 40 in Fig. 38, an example of the search region 60 is shown by a trapezoidal broken line including a part of the front wheel 104F. This search region 60 has a shape that includes, of at least one of the crop rows and ridges in the image 40, a crop row or ridge located on the left side of the front wheel 104F to a crop row or ridge located on the right side.

[0151] As can be seen from the example image in Fig. 12, the distortion is larger in the periphery of the top view image than in the center. As a result, as shown in Fig. 19, for example, the peak value decreases and the interval between the peaks increases as the position of the scan line moves away from the center.

[0152] On the other hand, the crop rows or ridges to be detected, which are necessary for selecting the target path, are located near the front of the traveling agricultural machine. More specifically, it is sufficient to accurately detect the crop rows or ridges located around the wheels of the traveling device of the agricultural machine. In this embodiment, row detection is performed not on the entire image captured by the imaging device 120 but on a limited area, thereby making it possible to reduce the amount of calculations performed by the processing device 122 and the time required for calculations. In addition, since outliers caused by distortion in the periphery of the image can be excluded, the accuracy of row detection is also improved.

[0153] Selection of the search area 60 (area setting) depends on the position and orientation at which the imaging device 120 is attached to the agricultural machine 100, and further on the structure or shape of the agricultural machine 100. For example, after the imaging device 120 is attached to the agricultural machine 100, the range (shape, size, position) of the search area 60 may be determined manually while checking an image obtained from the imaging device 120 on a monitor screen. Also, the range of the search area 60 may be determined based on the optical performance of the imaging device 120, the attachment position, the model of the agricultural machine, etc., and input to the processing device 122.

[0154] The processing device 122 in this embodiment may be configured to detect at least a part of the wheel 10F from the image 40 as shown in Fig. 38 by using, for example, an image recognition technique. In this case, it is also possible to adaptively change the range of the search region 60 so that an area including at least a part of the detected front wheel 104F is selected as the search region 60.

[0155] The processing device 122 may estimate a positional relationship between the front wheels 104F and at least one of the detected crop rows 12 and ridges 16 based on an image of a portion of the front wheels 104F included in the search area 60. The processing device 122 may be configured to estimate a positional relationship between the agricultural machine 100 and at least one of the detected crop rows 12 and ridges 16 based on such positional relationship.

[0156] There are cases where the processing device 122 does not have information indicating the exact position of the front wheels 104F relative to the agricultural machine 100. Such information indicating the position is, for example, the coordinates of the front wheels 104F relative to the body coordinate system Σb fixed to the agricultural machine 100. Even if such coordinates are stored in advance in the storage device 28 of the processing device 122, the accuracy is lost when, for example, the user changes the tire size of the front wheels 104F or changes the distance between the left and right front wheels 104F. In such cases, the processing device 122 may detect a part of the front wheels 104F included in the search region 60 and estimate the position of the front wheels 104F relative to the agricultural machine 100 based on an image of the detected part of the front wheels 104F.

[0157] FIG. 39 is a schematic top view of a portion of ground 10 on which rows of crops 12 are provided. 9 shows a pair of front wheels 104F. Such a rectangular area 62 of the top view is a top view image generated by performing the above-mentioned homography transformation on the search region 60 of the image of FIG. 38. In FIG. 39, the vehicle body 110 shown in the search region 60 of FIG. 38 is omitted. In addition, since a part of the image of the front wheels 104F shown in the search region 60 is significantly deformed by the homography transformation, FIG. 39 shows the shape of a figure obtained by "parallel projecting" the front wheels 104F onto the reference plane Re. Furthermore, for reference, FIG. 39 shows a schematic tire tread (ground contact surface) CA where the front wheels 104F contact the ground 10. The center-to-center distance T of the left and right tire treads CA is the "tread width (track)".

[0158] In general, the position of the tire tread CA is known relative to the vehicle body 110 of the agricultural machine 100. Therefore, the positional relationship of the tire tread CA with respect to the top view image (rectangular area) 62 of the search region 60 is also known. However, by setting the search region 60 to include at least a part of one or more wheels as in this embodiment, the following effects can be obtained.

[0159] The structure of the vehicle body 110 differs depending on the model, and the tread width (the center distance of the tire tread CA) T may also differ depending on the model. Furthermore, even for the same model, the user may change the tread width T as described above. For this reason, selecting the shape and size of the search region 60 so as to include the wheels 104 shown in the image realizes image processing that can be adapted to a variety of models and can accommodate cases where the tread width T is changed by the user.

[0160] It is no longer necessary to input the position of the tire tread CA in advance as coordinates in the body coordinate system Σb. It becomes possible to automatically obtain the coordinates of the front wheel 104F or the tire tread CA in the body coordinate system Σb based on the image captured by the imaging device 120.

[0161] It is possible to monitor the position error between the edge line of the row determined by the row detection system or the target path generated based on the edge line and the wheels based on the images.

[0162] As described above, when a top view image of the ground is generated by homography transformation, the wheels are deformed. In order to accurately estimate the positional relationship of the wheels (particularly the tire tread CA) with respect to the edge line of the row or the target path, it is desirable to correct the homography transformation. This point will be described below.

[0163] FIG. 40 is a diagram showing a schematic positional relationship between points P3 and P4 included in a part of the front wheel 104F shown in the image 40 and corresponding points P3' and P4' obtained by perspectively projecting these points P3 and P4 onto the reference plane Re. The coordinates of the points P3 and P4 in the world coordinate system are (X3, Y3, Z3) and (X4, Y4, Z4), respectively. The coordinates of the corresponding points P3' and P4' in the world coordinate system are (X3', Y3', 0) and (X4', Y4', 0), respectively. As can be seen from FIG. 40, the points P3 and P4 are located higher than the reference plane Re. Therefore, when a top view image viewed from directly above the reference plane Re is generated by homography transformation, the X coordinate and Y coordinate of the corresponding points P3' and P4' on the reference plane Re are shifted from the X coordinate and Y coordinate of the points P3 and P4, respectively. Therefore, if a homography transformation is performed on image 40, which shows part of the front wheel 104F, to generate a top-view image, the image of the front wheel 104F will be formed in the top-view image with a distorted shape, making it difficult to estimate the accurate positional relationship.

[0164] In order to know the positional relationship between the front wheel 104F and the edge line of the crop row 12 or the ridge 16 based on such a top view image, the coordinates (X3', Y3', 0), ( It is preferable to estimate the center of the tire tread CA based on the distances X4', Y4', 0.

[0165] 40, if the height Ht of the front wheel 104F is known, the positions of points P3 and P4 on the front wheel 104F shown in the image on the front wheel 104F can be estimated from the shape in the image by a method such as pattern matching. If the positions of points P3 and P4 on the front wheel 104F are estimated, the center position of the tire tread CA can be estimated by correcting, for example, the coordinates (X3', Y3', 0) and (X4', Y4', 0) of the corresponding points P3' and P4'.

[0166] Thus, in this embodiment, by including at least a portion of the wheels within the search region, it becomes possible to monitor the positional relationship of the wheels with respect to the row detected within the search region using time-series images.

[0167] (Embodiment 4) Next, an embodiment of an agricultural machine equipped with the row detection system of the present disclosure will be described.

[0168] The agricultural machine in this embodiment includes the row detection system described above. The agricultural machine also includes a control system that performs control to realize automatic steering operation. The control system is a computer system that includes a storage device and a control device, and is configured to control the steering, running, and other operations of the agricultural machine.

[0169] In a normal automatic steering operation mode, the control device identifies the position of the agricultural machine by the positioning device, and controls the steering of the agricultural machine so that the agricultural machine travels along a target route based on a previously generated target route. Specifically, the control device controls the steering angle of the steering wheels (e.g., front wheels) of the agricultural machine so that the work vehicle travels along the target route in the field. The agricultural machine in this embodiment is equipped with an automatic steering device configured to perform not only such a normal automatic steering mode, but also automatic travel by "row following travel control" in a field where rows of crops and ridges are provided.

[0170] The positioning device has, for example, a GNSS receiver. Such a positioning device can identify the position of the work vehicle based on signals from GNSS satellites. However, when rows are in a field, even if the positioning device can measure the position of the agricultural machine with high accuracy, the spacing between the rows is narrow, and depending on how the crops are planted and the growth conditions, there is a high possibility that the running gear of the agricultural machine, such as the wheels, will protrude from the rows. However, in this embodiment, by using the row detection system described above, it is possible to detect rows that actually exist and perform appropriate automatic steering. That is, the automatic steering device provided in the agricultural machine in the embodiment of the present disclosure is configured to control the steering angle of the steering wheels based on the position of the edge line of the row determined by the row detection system.

[0171] In addition, in the agricultural machine of this embodiment, the processing device of the row detection system can monitor the positional relationship between the edge line of the row and the steering wheel based on the time-series color images. If a position error signal is generated from this positional relationship, the automatic steering device of the agricultural machine can appropriately adjust the steering angle to reduce the position error signal.

[0172] FIG. 41 is a perspective view showing an example of the appearance of the agricultural machine 100 in this embodiment. FIG. 42 is a side view showing a schematic example of the agricultural machine 100 with the work implement 300 attached. The agricultural machine 100 in this embodiment is an agricultural tractor (work vehicle) with the work implement 300 attached. The agricultural machine 100 is not limited to a tractor, and does not necessarily have to be equipped with the work implement 300. The row detection technology in the present disclosure can be used in small management machines that can be used for inter-furrow work such as ridge creation, inter-cultivation, soil piling, weeding, top dressing, and pest control, and in vegetable transplanters, for example. It can exert excellent effects.

[0173] The agricultural machine 100 in this embodiment includes an imaging device 120, a positioning device 130, and an obstacle sensor 136. Although one obstacle sensor 136 is illustrated in Fig. 41, the obstacle sensor 136 may be provided at multiple locations on the agricultural machine 100.

[0174] As shown in FIG. 42, the agricultural machine 100 includes a vehicle body 110, a prime mover (engine) 102, and a speed changer (transmission) 103. The vehicle body 110 is provided with tires 104 (wheels) and a cabin 105. The tires 104 include a pair of front wheels 104F and a pair of rear wheels 104R. A driver's seat 107, a steering device 106, an operation terminal 200, and a group of switches for operation are provided inside the cabin 105. One of the front wheels 104F and the rear wheels 104R may be a crawler instead of a tire. The agricultural machine 100 may be a four-wheel drive vehicle equipped with four tires 104 as drive wheels, or may be a two-wheel drive vehicle equipped with a pair of front wheels 104F or a pair of rear wheels 104R as drive wheels.

[0175] The positioning device 130 in this embodiment includes a GNSS receiver. The GNSS receiver includes an antenna that receives signals from GNSS satellites and a processing circuit that determines the position of the agricultural machine 100 based on the signals received by the antenna. The positioning device 130 receives GNSS signals transmitted from GNSS satellites and performs positioning based on the GNSS signals. GNSS is a general term for satellite positioning systems such as GPS (Global Positioning System), QZSS (Quasi-Zenith Satellite System, for example, Michibiki), GLONASS, Galileo, and BeiDou. The positioning device 130 in this embodiment is provided on the top of the cabin 105, but may be provided in another position.

[0176] The positioning device 130 can further supplement the position data by using a signal from an inertial measurement unit (IMU). The IMU can measure the tilt and minute movements of the agricultural machine 100. By supplementing the position data based on the GNSS signal with the data acquired by the IMU, the positioning performance can be improved.

[0177] In the example shown in FIG. 41 and FIG. 42, an obstacle sensor 136 is provided at the rear of the vehicle body 110. The obstacle sensor 136 may be provided at a portion other than the rear of the vehicle body 110. For example, one or more obstacle sensors 136 may be provided at any of the side, front, and cabin 105 of the vehicle body 110. The obstacle sensor 136 detects objects present around the agricultural machine 100. The obstacle sensor 136 may include, for example, a laser scanner or an ultrasonic sonar. When an object is present closer than a predetermined distance from the obstacle sensor 136, the obstacle sensor 136 outputs a signal indicating the presence of an obstacle. A plurality of obstacle sensors 136 may be provided at different positions on the body of the agricultural machine 100. For example, a plurality of laser scanners and a plurality of ultrasonic sonars may be provided at different positions on the body. By providing such a large number of obstacle sensors 136, blind spots in monitoring obstacles around the agricultural machine 100 can be reduced.

[0178] The prime mover 102 is, for example, a diesel engine. An electric motor may be used instead of a diesel engine. The transmission 103 can change the propulsive force and the travel speed of the agricultural machine 100 by changing the speed. The transmission 103 can also switch the agricultural machine 100 between forward and reverse.

[0179] The steering device 106 includes a steering wheel, a steering shaft connected to the steering wheel, and a power steering device that assists steering by the steering wheel. The front wheels 104F are steered wheels, and the turning angle (also called "steering angle") of the front wheels 104F is changed by a steering device. By operating the steering wheel, the traveling direction of the agricultural machine 100 can be changed. The steering angle of the front wheels 104F can be changed by operating the steering wheel. The power steering device includes a hydraulic device or an electric motor that supplies an auxiliary force for changing the steering angle of the front wheels 104F. When automatic steering is performed, the steering angle is automatically adjusted by the force of the hydraulic device or the electric motor under the control of a control device arranged in the agricultural machine 100.

[0180] A coupling device 108 is provided at the rear of the vehicle body 110. The coupling device 108 includes, for example, a three-point support device (also referred to as a "three-point link" or a "three-point hitch"), a PTO (Power Take Off) shaft, a universal joint, and a communication cable. The working implement 300 can be attached to and detached from the agricultural machine 100 by the coupling device 108. The coupling device 108 can control the position or attitude of the working implement 300 by raising and lowering the three-point link using, for example, a hydraulic device. In addition, power can be sent from the agricultural machine 100 to the working implement 300 via the universal joint. The agricultural machine 100 can make the working implement 300 perform a predetermined task while pulling the working implement 300. The coupling device may be provided at the front of the vehicle body 110. In that case, the working implement can be connected to the front of the agricultural machine 100.

[0181] The working machine 300 shown in Fig. 42 is, for example, a rotary cultivator. The working machine 300, which is towed or attached to a work vehicle such as a tractor while traveling along the row, may be any working machine that can be used for furrow work such as ridge making, inter-cultivation, soiling, weeding, fertilizing, and pest control.

[0182] 43 is a block diagram showing an example of a schematic configuration of the agricultural machine 100 and the work machine 300. The agricultural machine 100 and the work machine 300 can communicate with each other via a communication cable included in the coupling device 108.

[0183] The agricultural machine 100 in the example of FIG. 43 includes, in addition to the imaging device 120, the positioning device 130, the obstacle sensor 136, and the operation terminal 200, a driving device 140, a steering wheel sensor 150, a turning angle sensor 152, a control system 160, a communication interface (IF) 190, an operation switch group 210, and a buzzer 220. The positioning device 130 includes a GNSS receiver 131 and an inertial measurement unit (IMU) 125. The control system 160 includes a storage device 170 and a control device 180. The control device 180 includes a plurality of electronic control units (ECUs) 181 to 186. The work machine 300 includes a driving device 340, a control device 380, and a communication interface (IF) 390. Note that FIG. 43 shows components that are relatively highly related to the automatic steering or automatic traveling operation of the agricultural machine 100, and the illustration of other components is omitted.

[0184] The positioning device 130 performs positioning of the agricultural machine 100 using the GNSS. When the positioning device 130 includes an RTK receiver, in addition to the GNSS signals transmitted from a plurality of GNSS satellites, a correction signal transmitted from a reference station is used. The reference station may be installed around the field in which the agricultural machine 100 runs (for example, at a position within 10 km from the agricultural machine 100). The reference station generates a correction signal based on the GNSS signals received from the plurality of GNSS satellites and transmits it to the positioning device 130. The GNSS receiver 131 in the positioning device 130 receives the GNSS signals transmitted from the plurality of GNSS satellites. The positioning device 130 performs positioning by calculating the position of the agricultural machine 100 based on the GNSS signals and the correction signal. By using the RTK-GNSS, it is possible to perform positioning with an accuracy of, for example, an error of several centimeters. Position information including information on latitude, longitude, and altitude is acquired by highly accurate positioning using the RTK-GNSS. The positioning method is not limited to RTK-GNSS, and any positioning method (such as interferometric positioning or differential positioning) that can obtain position information with the required accuracy can be used. For example, VRS (Virtual Reference Station) or DGPS ( Positioning using the Differential Global Positioning System (DGPS) may also be performed.

[0185] The IMU 135 includes a three-axis acceleration sensor and a three-axis gyroscope. The IMU 135 may include an orientation sensor such as a three-axis geomagnetic sensor. The IMU 135 functions as a motion sensor and can output signals indicating various quantities such as the acceleration, speed, displacement, and attitude of the agricultural machine 100. The positioning device 130 can estimate the position and orientation of the agricultural machine 100 with higher accuracy based on the signal output from the IMU 135 in addition to the GNSS signal and the correction signal. The signal output from the IMU 135 can be used to correct or complement the position calculated based on the GNSS signal and the correction signal. The IMU 135 outputs a signal at a higher frequency than the GNSS signal. The position and orientation of the agricultural machine 100 can be measured at a higher frequency (for example, 10 Hz or more) by using the high-frequency signal. Instead of the IMU 135, a three-axis acceleration sensor and a three-axis gyroscope may be provided separately. The IMU 135 may be provided as a device separate from the positioning device 130.

[0186] The positioning device 130 may include other types of sensors in addition to the GNSS receiver 131 and the IMU 135. Depending on the environment in which the agricultural machine 100 travels, the position and orientation of the agricultural machine 100 can be estimated with high accuracy based on data from these sensors.

[0187] By using such a positioning device 130, it is also possible to create maps of the crop rows and furrows detected by the row detection systems 1000, 2000 described above.

[0188] The drive device 140 includes various devices necessary for the travel of the agricultural machine 100 and the drive of the work implement 300, such as the above-mentioned prime mover 102, the transmission 103, the differential including a differential lock mechanism, the steering device 106, and the coupling device 108. The prime mover 102 includes an internal combustion engine such as a diesel engine. The drive device 140 may include an electric motor for traction instead of or in addition to the internal combustion engine.

[0189] The steering wheel sensor 150 measures the rotation angle of the steering wheel of the agricultural machine 100. The turning angle sensor 152 measures the turning angle of the front wheels 104F, which are steered wheels. The measurement values ​​by the steering wheel sensor 150 and the turning angle sensor 152 are used for steering control by the control device 180.

[0190] The storage device 170 includes one or more storage media, such as a flash memory or a magnetic disk. The storage device 170 stores various data generated by each sensor and the control device 180. The data stored in the storage device 170 may include map data of the environment in which the agricultural machine 100 travels, and target route data for automatic steering. The storage device 170 also stores computer programs that cause each ECU in the control device 180 to execute various operations, which will be described later. Such computer programs may be provided to the agricultural machine 100 via a storage medium (e.g., a semiconductor memory or an optical disk) or an electric communication line (e.g., the Internet). Such computer programs may be sold as commercial software.

[0191] The control device 180 includes a plurality of ECUs. The plurality of ECUs include an ECU 181 for image recognition, an ECU 182 for speed control, an ECU 183 for steering control, an ECU 184 for automatic steering control, an ECU 185 for work machine control, an ECU 186 for display control, and an ECU 187 for buzzer control. The ECU 181 for image recognition functions as a processing device of the row detection system. The ECU 182 controls the prime mover 102 and the transmission 10 included in the drive device 140. 3, and the brake to control the speed of the agricultural machine 100. The ECU 183 controls the steering of the agricultural machine 100 by controlling the hydraulic device or the electric motor included in the steering device 106 based on the measurement value of the steering wheel sensor 150. The ECU 184 performs calculations and control to realize automatic steering operation based on signals output from the positioning device 130, the steering wheel sensor 150, and the turning angle sensor 152. During automatic steering operation, the ECU 184 sends a command to the ECU 183 to change the steering angle. The ECU 183 changes the steering angle by controlling the steering device 106 in response to the command. The ECU 185 controls the operation of the coupling device 108 to cause the working machine 300 to perform a desired operation. The ECU 185 also generates a signal to control the operation of the working machine 300, and transmits the signal from the communication IF 190 to the working machine 300. The ECU 186 controls the display of the operation terminal 200. The ECU 186 realizes various displays, such as a map of the farm field, detected crop rows or ridges, the position and target route of the agricultural machine 100 on the map, pop-up notifications, and setting screens, on the display device of the operation terminal 200. The ECU 187 controls the output of a warning sound by the buzzer 220.

[0192] Through the operation of these ECUs, the control device 180 realizes operation by manual steering or automatic steering. During normal automatic steering operation, the control device 180 controls the drive device 140 based on the position of the agricultural machine 100 measured or estimated by the positioning device 130 and the target route stored in the storage device 170. In this way, the control device 180 causes the agricultural machine 100 to travel along the target route. On the other hand, in a row following travel control mode in which the agricultural machine 100 travels along the rows, the ECU 181 for image recognition determines the edge lines of the crop rows or ridges from the detected crop rows or ridges, and generates a target route based on these edge lines. The control device 180 executes operations according to this target route.

[0193] The multiple ECUs included in the control device 180 can communicate with each other according to a vehicle bus standard such as CAN (Controller Area Network). In FIG. 43, each of the ECUs 181 to 187 is shown as an individual block, but the functions of each of these may be realized by multiple ECUs. Also, an on-board computer that integrates at least some of the functions of the ECUs 181 to 187 may be provided. The control device 180 may include ECUs other than the ECUs 181 to 187, and any number of ECUs may be provided depending on the functions. Each ECU includes a control circuit including one or more processors.

[0194] The communication IF 190 is a circuit that communicates with the communication IF 390 of the working machine 300. The communication IF 190 transmits and receives signals conforming to the ISOBUS standard such as ISOBUS-TIM between the communication IF 390 of the working machine 300. This makes it possible to cause the working machine 300 to perform a desired operation and to obtain information from the working machine 300. The communication IF 190 may communicate with an external computer via a wired or wireless network. The external computer may be, for example, a server computer in an agricultural management support system that centrally manages information related to a farm field on a cloud and supports agriculture by utilizing the data on the cloud.

[0195] The operation terminal 200 is a terminal through which a user executes operations related to the traveling of the agricultural machine 100 and the operation of the work implement 300, and is also referred to as a virtual terminal (VT). The operation terminal 200 may include a display device such as a touch screen, and / or one or more buttons. By operating the operation terminal 200, a user can execute various operations such as switching the automatic steering mode on / off, switching the cruise control on / off, setting the initial position of the agricultural machine 100, setting a target route, recording or editing a map, switching between 2WD / 4WD, switching the differential lock on / off, and switching the work implement 300 on / off. At least some of these operations are performed by operating the operation switch group 21. This can also be achieved by operating 0. The display on the operation terminal 200 is controlled by the ECU 186.

[0196] The buzzer 220 is an audio output device that emits a warning sound to notify a user of an abnormality. For example, the buzzer 220 emits a warning sound when the agricultural machine 100 deviates from a target route by a predetermined distance or more during automatic steering operation. Instead of the buzzer 220, a similar function may be realized by a speaker of the operation terminal 200. The buzzer 220 is controlled by the ECU 186.

[0197] The drive device 340 in the work machine 300 performs operations necessary for the work machine 300 to perform a predetermined task. The drive device 340 includes devices according to the application of the work machine 300, such as a hydraulic device, an electric motor, or a pump. The control device 380 controls the operation of the drive device 340. The control device 380 causes the drive device 340 to perform various operations in response to signals transmitted from the agricultural machine 100 via the communication IF 390. In addition, a signal according to the state of the work machine 300 can also be transmitted from the communication IF 390 to the agricultural machine 100.

[0198] In the above embodiments, the agricultural machine 100 may be an unmanned work vehicle that performs automatic driving. In that case, components that are necessary only for manned driving, such as a cabin, a driver's seat, a steering wheel, and an operation terminal, may not be provided in the agricultural machine 100. The unmanned work vehicle may perform operations similar to those in the above-described embodiments by autonomous driving or remote control by a user.

[0199] A system providing various functions in the embodiments can also be attached later to an agricultural machine that does not have those functions. Such a system can be manufactured and sold independently of the agricultural machine. A computer program used in such a system can also be manufactured and sold independently of the agricultural machine. The computer program can be provided, for example, by being stored in a computer-readable non-transitory storage medium. The computer program can also be provided by downloading via a telecommunication line (for example, the Internet). [Industrial Applicability]

[0200] The technology disclosed herein can be applied to agricultural machinery such as riding tillers, vegetable transplanters, and tractors. [Explanation of symbols]

[0201] 10 ground, 12 crop row, 14 intermediate area (work passage), 16 furrow, 40 image, 42 enhanced image, 44 top view image, 100 agricultural machine, 110 vehicle body, 120 imaging device, 122 processing device, 124 automatic steering device

Claims

1. an imaging device attached to an agricultural machine having one or more wheels, which captures images of a ground surface on which the agricultural machine travels to obtain time-series images including at least a portion of the ground surface; A processing device that processes the time-series images; Equipped with The processing device includes: selecting a search area for detecting at least one of a crop row and a ridge from the time series images, the search area having a size and shape including at least a portion of the one or more wheels; Queue detection system.

2. The processing device detects at least a portion of the one or more wheels from the time-series images; The system of claim 1 , further comprising: selecting as said search area an area including at least a portion of said detected one or more wheels.

3. The row detection system of claim 1 or 2, wherein the search area has a shape that includes at least one of the crop rows and furrows in the time series images, from a crop row or furrow located on the left side of the one or more wheels to a crop row or furrow located on the right side.

4. The row detection system according to claim 1 , wherein the processing device estimates a positional relationship between at least one of the detected crop rows and furrows and the one or more wheels based on an image of at least a portion of the one or more wheels included in the search area.

5. The row detection system according to claim 4 , wherein the processing device estimates a positional relationship between the agricultural machine and at least one of the detected crop rows and furrows based on the positional relationship.

6. 6. The row detection system according to claim 1, wherein the processing device detects the at least a portion of the one or more wheels included in the search area and estimates a position of the one or more wheels relative to the agricultural machine based on an image of the at least a portion of the detected one or more wheels.

7. The processing device acquires time-series color images from the imaging device; generating a top view image of at least the search area of ​​the ground from the time series color images, the top view image having enhanced color of the crop rows; classifying the top view image into first pixels whose color index value is equal to or greater than a threshold value and second pixels whose color index value is less than the threshold value; The row detection system of claim 1 , further comprising: a step of determining a position of an edge line of the crop row based on the index value of the first pixel.

8. The row detection system according to claim 1 , wherein the processing device generates and outputs a target path based on the position of the crop row or furrow.

9. The processing device includes: determining a first movement amount in an image plane of each of a plurality of feature points by feature point matching from a plurality of images acquired at different times of the time-series images; Each of the plurality of feature points is projected from the image plane onto a reference plane corresponding to the ground. a visual projection, and determining a second movement amount of each projection point within the reference plane based on the first movement amount; detecting a ridge on the ground by estimating heights of the plurality of feature points from the reference plane based on the second movement amount; 9. A queue detection system according to any one of the preceding claims.

10. The processing device includes: The height of the center point of the perspective projection from the reference plane is Hc, The height of the plurality of feature points from the reference plane is dH, The second movement amount of the characteristic point where dH is zero is L, The second movement amount of the characteristic point where dH is greater than zero is L+dL, 10. The system of claim 9, wherein the height of each feature point is determined to be Hc·(1.0−L / (L+dL)).

11. An agricultural machine equipped with a row detection system according to any one of claims 1 to 10, A running device including a steering wheel; an automatic steering device that controls the steering angle of the steering wheel based on the position of the crop row or furrow determined by the row detection system; Equipped with agricultural machinery.

12. 12. The agricultural machine according to claim 11, wherein the processing unit of the row detection system monitors a positional relationship between the crop row or furrow and the steering wheel based on the time series images and provides a position error signal to the automatic steering device.

13. 1. A computer-implemented method for detecting sequences, comprising: acquiring, from an imaging device attached to an agricultural machine having one or more wheels, time-series images of the ground on which the agricultural machine runs, the images including at least a portion of the ground; selecting a search area for detecting at least one of a crop row and a ridge from the time series images, such that the search area has a size and shape that includes at least a portion of the one or more wheels; The sequence detection method includes causing a computer to execute the following:

Citation Information

Patent Citations

  • Sensor for crop row

    JP1992325003A

  • Device for detecting line of crop

    JP1994014611A

  • Work implement and control method of the same

    JP2016208871A

Cited By

  • Vision guidance system and methods for agricultural machines

    WO2026146332A1