agricultural machinery
The agricultural machine uses an image recognition system and control device to ensure safe and accurate row-following travel, preventing damage to crop rows or furrows by only initiating travel when conditions permit.
Patent Information
- Application Number
- JP2023569278
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-12-24
- Filing Date
- 2022-12-07
- Publication Date
- 2025-09-08
- Estimated Expiration
- 2042-12-07
AI Technical Summary
Agricultural machinery using image recognition technology struggles to accurately determine row areas such as crop rows or furrows, leading to potential damage from wheels during automatic steering.
An agricultural machine equipped with an image recognition system that detects row areas, a traveling device with a steering wheel, and a control device to ensure accurate row-following travel by determining if conditions allow for safe passage, preventing unnecessary travel initiation when conditions are not suitable.
Prevents damage to crop rows or furrows by ensuring the agricultural machine only initiates row-following travel when conditions allow, maintaining the integrity of the field layout.
Smart Images

Figure 0007735430000009 
Figure 0007735430000010 
Figure 0007735430000011
Abstract
Description
[Technical Field]
[0001] The present disclosure relates to agricultural machinery. [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 into practical use. Work vehicles that not only automatically steer but also automatically control speed have also been put into practical use.
[0003] In addition, vision guidance systems are 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 that the cultivated land is photographed from diagonally above with an on-board camera, and the original image is then binarized, after which a planar projectively transformed image is generated. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] Japanese Patent Application Laid-Open No. 2016-208871 Summary of the Invention [Problem to be solved by the invention]
[0006] When agricultural machinery uses image recognition technology to automatically steer along row areas such as crop rows or furrows, it is necessary to determine the row areas with high positional accuracy so that the wheels do not crush the crop rows or furrows.
[0007] The present disclosure provides an agricultural machine that can solve such problems. [Means for solving the problem]
[0008] In an exemplary, non-limiting embodiment, the agricultural machine according to the present disclosure includes an image recognition system that detects row areas of at least one of crops and ridges laid on the ground of a field from acquired images, a traveling device including a steering wheel, a control device that controls the traveling device, and a start switch that commands the start of row-following traveling, in which the control device controls the traveling device so that it travels along the row area detected by the image recognition system, and the control device determines whether row-following traveling is possible based on the detection results of the image recognition system, and if row-following traveling is possible, starts row-following traveling in response to a command from the start switch to start row-following traveling, and if row-following traveling is not possible, does not start row-following traveling even if a command from the start switch to start row-following traveling is received.
[0009] In another exemplary, non-limiting embodiment, the agricultural machine according to the present disclosure includes an image recognition system that detects at least one of crops and ridges arranged on the ground of a field from an acquired image and determines a row area based on the detected at least one of the crops and ridges, a traveling device including a steering wheel, a command member that instructs the image recognition system to perform a calculation to determine the row area using the image recognition system, and a control device that performs row-following traveling by causing the traveling device to travel along the row area determined by the image recognition system.
[0010] A general or specific aspect 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. An apparatus may be composed of multiple devices. When an apparatus is composed of two or more devices, the two or more devices may be located in a single device or may be located separately in two or more separate devices. [Effects of the Invention]
[0011] According to an embodiment of the present disclosure, when the position and orientation of the agricultural machine make it difficult to perform row-following travel, the start of row-following travel is prevented, thereby preventing the wheels from trampling crop rows or furrows. [Brief explanation of the drawings]
[0012] [Figure 1] FIG. 1 is a block diagram schematically illustrating an example of a basic configuration of an agricultural machine according to the present disclosure. [Figure 2] FIG. 1 is a block diagram illustrating an example of the configuration of an image recognition system. [Figure 3] FIG. 1 is a diagram schematically illustrating an example in which a start switch is provided near the steering wheel of an agricultural machine. [Figure 4] 10 is a flowchart illustrating an example of a procedure for determining whether or not tracking travel is possible. [Figure 5] FIG. 10 is a perspective view showing another example of a display device. [Figure 6] FIG. 10 is a diagram showing an example of a screen displaying a notification such as characters and symbols indicating whether or not following vehicle travel is possible. [Figure 7] FIG. 2 is a block diagram schematically illustrating another example of the basic configuration of an agricultural machine according to the present disclosure. [Figure 8] 10 is a flowchart for explaining an example of the operation of a command member that commands the image recognition system to perform a calculation for determining a row region. [Figure 9]FIG. 1 is a diagram schematically illustrating an image of the ground captured by an imaging device attached to an agricultural machine. [Figure 10] FIG. 2 is a perspective view showing a schematic relationship between a body coordinate system Σb and a camera coordinate system Σc fixed to an agricultural machine, and a world coordinate system Σw fixed to the ground. [Figure 11] 1 is a top view showing a schematic diagram of a part of a field with multiple rows of crops on the ground. FIG. [Figure 12] 12 is a diagram schematically illustrating an example of an image captured by an imaging device of the agricultural machine illustrated in FIG. 11. FIG. [Figure 13] FIG. 10 is a top view schematically showing a state in which the position and orientation (angle in the yaw direction) of the agricultural machine have been adjusted. [Figure 14] 14 is a diagram showing an example of an image captured by an imaging device of the agricultural machine in the state shown in FIG. 13. FIG. [Figure 15] 1 is a block diagram schematically illustrating a configuration example of a processing device according to a first embodiment of the present disclosure. [Figure 16] 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 17] FIG. 10 is a diagram showing an enhanced image obtained by converting the RGB values of one frame of a time-series color image into an excess green index (ExG=2×grb). [Figure 18] 18 is a histogram of the excess green index (ExG) in the image of FIG. 17. [Figure 19] FIG. 10 is a diagram showing an example of a top-view image (bird's-eye view image) classified into first pixels (for example, crop pixels) and second pixels (background pixels). [Figure 20] 10 is a perspective view schematically showing the positional relationship between each of the camera coordinate system Σc1 and the camera coordinate system Σc2 and the reference plane Re. FIG. [Figure 21] FIG. 10 is a schematic diagram showing an example in which the direction of the crop rows in the top view image is parallel to the direction of the scanning lines. [Figure 22] 22 is a diagram schematically showing an example of an integrated value histogram obtained for the top view image of FIG. 21. FIG. [Figure 23]10 is a schematic diagram showing an example in which the direction of the crop rows in the top view image intersects with the direction of the scanning lines. FIG. [Figure 24] FIG. 24 is a diagram schematically illustrating an example of an integrated value histogram obtained for the top view image of FIG. 23. [Figure 25] 10 is a flowchart illustrating an example of an algorithm by which a processing device determines edge lines of a crop row according to an embodiment of the present disclosure. [Figure 26] FIG. 20 is a diagram showing an integrated value histogram obtained from the top view image of FIG. 19. [Figure 27] FIG. 2 is a block diagram illustrating a process executed by a processing device according to an embodiment of the present disclosure. [Figure 28] FIG. 10 is a diagram for explaining a form in which a top view image is divided into a plurality of blocks. [Figure 29] FIG. 29 is a diagram schematically illustrating the relationship between the position of the scanning line and the integrated value of the index value in each block of FIG. 28. [Figure 30] FIG. 30 is a diagram showing an example of the crop row centers in each block of FIG. 29 and an approximation line to the crop row centers. [Figure 31] FIG. 31 is a top view showing an example of an edge line of a crop row determined based on the approximation line of FIG. 30. [Figure 32] FIG. 10 is a diagram illustrating a method for dividing a part or all of a top-view image into multiple blocks and determining the position of an edge line for each of the multiple blocks when a crop row includes a curved portion. [Figure 33] 34 is a diagram schematically illustrating the relationship between the position of the scanning line and the integrated value (histogram) of the index value in each block of FIG. 33. FIG. [Figure 34] FIG. 34 is a diagram showing an example of the crop row center in each block of FIG. 33 and an approximation line to the crop row center. [Figure 35] FIG. 35 is a top view showing an example of an edge line of a crop row determined based on the approximation curve of FIG. 34. [Figure 36] FIG. 1 is a perspective view showing a row of ridges provided on the ground. [Figure 37]FIG. 2 is a diagram showing an image acquired from an imaging device at time t. [Figure 38] FIG. 2 is a diagram schematically illustrating the correspondence relationship of feature points between an image acquired from an imaging device at time t and an image acquired at time t+1. [Figure 39] FIG. 10 is a perspective view schematically showing the movement of feature points on the ridges and intermediate area (work passage) shown in an image captured by an imaging device. [Figure 40] 10 is a diagram schematically illustrating the relationship between the movement amount (first movement amount) of a feature point projected onto an image plane and the movement amount (second movement amount) of a feature point projected onto a reference plane. FIG. [Figure 41] FIG. 10 is a block diagram showing processing executed by a processing device according to a second embodiment of the present disclosure. [Figure 42] FIG. 10 is a diagram illustrating the relationship between the average height of feature points on a scan line and the position of the scan line. [Figure 43] FIG. 10 is a diagram illustrating an example of a basic configuration of an image recognition system according to a third embodiment of the present disclosure. [Figure 44] FIG. 10 is a diagram illustrating an example of an image acquired by a processing device from an imaging device. [Figure 45] FIG. 45 shows a part of the image in FIG. 44. [Figure 46] 1 is a top view showing a schematic view of a part of the ground on which rows of crops are provided; FIG. [Figure 47] 10 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 the reference plane Re. FIG. [Figure 48] FIG. 1 is a perspective view illustrating an example of the appearance of an agricultural machine according to an embodiment of the present disclosure. [Figure 49] 1 is a side view schematically illustrating an example of an agricultural machine with a work implement attached thereto. FIG. [Figure 50] 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 INVENTION
[0013] Hereinafter, embodiments of the present disclosure will be described. However, more detailed descriptions than necessary may be omitted. For example, detailed descriptions of already well-known matters and redundant descriptions of substantially identical configurations may be omitted. This is to avoid unnecessary redundancy in the following description and to facilitate understanding by those skilled in the art. Note that the inventors provide the accompanying drawings and the following description to enable those skilled in the art to fully understand the present disclosure, and do not intend for them to limit the subject matter described in the claims. In the following description, components having the same or similar functions are designated by the same reference numerals.
[0014] The following embodiments are examples, 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. Furthermore, one aspect can be combined with another aspect as long as no technical contradiction occurs.
[0015] In this disclosure, "agricultural machinery" broadly includes machines that perform basic agricultural tasks in fields, such as tilling, planting, and harvesting. Agricultural machinery is a machine that has the function and structure to perform agricultural tasks on the ground in a field, such as tilling, sowing, pest control, fertilizing, planting crops, or harvesting. These agricultural tasks are sometimes referred to as "ground work" or simply "work." In addition, the term "agricultural machinery" does not necessarily refer to cases where a work vehicle such as a tractor functions alone as an "agricultural machine," but rather the entire work vehicle and an implement attached to or towed by the work vehicle may function as a single "agricultural machine." Examples of agricultural machinery include tractors, riding cultivators, vegetable transplanters, mowers, and mobile field robots.
[0016] <Basic configuration example 1> Before describing the embodiments of the present disclosure in detail, an example of the basic configuration and operation of an agricultural machine according to the present disclosure will be described.
[0017] FIG. 1 is a block diagram schematically illustrating an example of the basic configuration of an agricultural machine according to the present disclosure. The agricultural machine 100 in this example includes an image recognition system 1000, a traveling device 145 including a steering wheel, and a control device 180 that controls the traveling device 145. As shown in FIG. 2, for example, the image recognition system 1000 includes an imaging device 120 such as a camera attached to the agricultural machine 100, and a processing device 122 that may be implemented by at least one computer. The image recognition system 1000 is configured to detect row regions of at least one of crops and ridges provided on the ground of a field from an image acquired by the imaging device 120. The method for detecting row regions using the image recognition system 1000 will be described in detail later.
[0018] The agricultural machine 100 according to the present disclosure can perform "row-following traveling" in addition to traveling by normal manual steering. "Row-following traveling" refers to traveling by automatic steering along a row area detected by the image recognition system 1000. In the row-following traveling mode, the control device 180 controls the traveling device 145 so that the machine travels along the row area detected by the image recognition system 1000. The direction of the steered wheels during row-following traveling is automatically controlled, for example, by a steering motor, without a human operating the steering wheel. Such row-following traveling is performed by the control device 180 controlling the traveling device 145 so that the wheels of the traveling device (all wheels including the steered wheels) move through an area (work passage) between two adjacent row areas. Therefore, during row-following traveling, the image recognition system 1000 can monitor the relationship between the position of the row area to be followed (for example, the position of the "edge" of the row area) and the position of the wheels with a high accuracy of about several centimeters.
[0019] In this disclosure, "wheel" means "wheel with tire" or "wheel with track." Hereinafter, when referring to the tire portion of a wheel, for example, the term "tire" will be used, and when referring to the metal "wheel" portion, for example, the term "metal wheel" will be used.
[0020] In this way, the image recognition system 1000 is configured not only to detect row areas from within an image, but also to calculate with high accuracy the relative position of the detected row area with respect to the agricultural machine 100 through calculations. The relative position of the row area with respect to the agricultural machine 100 is, for example, the coordinates of the row area in a local coordinate system fixed to the agricultural machine 100. When performing row-following traveling, the coordinates of the row area do not need to be converted into coordinates in a world coordinate system fixed to the ground. Therefore, while performing row-following traveling, the agricultural machine 100 does not need to accurately measure its own position (e.g., latitude and longitude) in the world coordinate system. However, if the agricultural machine 100 is equipped with a self-position estimation device, the coordinates of the row area in the local coordinate system fixed to the agricultural machine 100 may be converted into coordinates in a world coordinate system fixed to the ground to generate a map of the row area.
[0021] 1, the agricultural machine 100 according to the present disclosure includes a start switch 112 that commands the start of row-following travel. More specifically, the start switch 112 commands the start of row-following travel in which the control device 180 controls the traveling device 145 so that the agricultural machine 100 travels along the row area detected by the image recognition system 1000. In the example of FIG. 1, the start switch 112 is connected to the control device 180, but it may also be connected to the image recognition system 1000.
[0022] The start switch 112 may be provided near the driver's seat of the agricultural machine 100 or near the steering wheel. FIG. 3 is a diagram schematically showing an example in which the start switch 112 is provided near the steering wheel 118 of the agricultural machine 100. In this example, the start switch 112 is, for example, a lever that can be switched from a neutral position to up, down, forward, or backward. The start switch 112 is one of the members operated by the driver of the agricultural machine 100. The agricultural machine 100 is provided with various switches that are operated by the driver. Hereinafter, the driver of the agricultural machine 100 will be referred to as the "operator."
[0023] Referring again to Figure 1, the control device 180 is configured to determine whether or not line-following traveling is possible based on the detection results of the image recognition system 1000. If line-following traveling is possible, the control device 180 starts line-following traveling in response to a command to start line-following traveling issued by the start switch 112. However, if line-following traveling is not possible, the control device 180 does not start line-following traveling even if a command to start line-following traveling is issued by the start switch 112.
[0024] In one aspect, when the image recognition system 1000 detects a row area and detects a work aisle area of a predetermined width or more on either side of the row area, the control device 180 determines whether the steered wheel can pass through the work aisle area based on the position of the steered wheel. When the control device 180 determines that the steered wheel can pass through the work aisle area, it determines that line-following driving is possible. For example, when the width of the detected work aisle area is equal to or greater than the width of the steered wheel and the steered wheel is positioned within the work aisle area, the control device 180 determines that line-following driving is possible. At this time, it may also be determined that line-following driving is possible when the angle of the steering wheel relative to the row area is equal to or less than a predetermined value.
[0025] The above-mentioned determination procedure will be explained below with reference to Fig. 4. Fig. 4 is a flowchart showing an example of the procedure for determining whether or not the vehicle is in a state where follow-traffic traveling is possible.
[0026] First, in step S1, the control device 180 acquires the position and orientation of the steering wheels of the agricultural machine 100. The relative position of the steering wheels with respect to the agricultural machine 100 (coordinate values in a coordinate system fixed to the agricultural machine 100) may have a known value depending on the model of the agricultural machine 100. In this example, the steering wheels are the left and right front wheels. The left and right rear wheels move on the paths that the left and right front wheels pass through, respectively. The operator may input the positions of the wheels, including the steering wheels, to the control device 180 in advance. The measured value of the orientation of the steering wheels may be provided to the control device 180 from a steering angle sensor (turning angle sensor), for example.
[0027] In step S2, image recognition processing is started by the image recognition system 1000. Specifically, the control device 180 causes the image recognition system 1000 to start the image recognition processing. The image recognition processing may include finding row areas from the image acquired by the imaging device 120 (FIG. 2), detecting areas (work paths) between adjacent row areas, and performing calculations to determine the relative position of the row area with respect to the agricultural machine 100 ("determine the row area"). Steps S1 and S2 may be executed simultaneously, and the order thereof is not limited to the example in FIG. 4 and is arbitrary.
[0028] In step S3, the image recognition system 1000 determines whether or not a line region has been detected. If a line region has been detected (Yes), the process proceeds to step S4, and if a line region has not been detected (No), the process proceeds to step S7. If the process proceeds to step S7, it is determined that line-following travel is not possible. The determination of whether line-following travel is possible is made by the control device 180 based on the detection results of the image recognition system 1000.
[0029] In step S4, it is determined whether or not a work passage area has been detected. If a work passage area has been detected (Yes), the process proceeds to step S5, and if a work passage area has not been detected (No), the process proceeds to step S7.
[0030] In step S5, the control device 180 determines whether all wheels, including the steered wheel, can pass through the working passage area based on the position and orientation of the steered wheel. Specifically, it can determine whether the position of the steered wheel is within the working passage area and whether the orientation of the steered wheel is aligned with the direction in which the working passage extends. If passage is possible (Yes), the process proceeds to step S6; if passage is not possible (No), the process proceeds to step S7. If the process proceeds to step S6, it is determined that the vehicle is in a state where it can follow the process.
[0031] As described above, if the vehicle is not in a state where it can follow the path, the control device 180 will not start following the path even if the start switch 112 outputs a command to start following the path.
[0032] The agricultural machine 100 may be equipped with a notification means for notifying the operator whether or not file-following travel is possible. Examples of such notification means include a display device that displays an icon, text, or symbol, a light-emitting device such as an LED, and an acoustic device that emits sound or vibration, such as a buzzer or speaker. For example, if file-following travel is possible, an icon, text, or symbol indicating "file-following travel possible" may be displayed on the screen of the display device, and if file-following travel is not possible, an icon, text, or symbol indicating "file-following travel not possible" may be displayed on the screen of the display device. Furthermore, if file-following travel is not possible and the operator operates the start switch 112 to issue a command to start file-following travel, a voice such as "file-following travel is currently not possible" may be emitted from the audio device, or text may be displayed on the display device.
[0033] In the example of FIG. 3, a symbol indicating whether or not "following the vehicle" is possible may be displayed as a notification 116 on a display device 117 located around a steering wheel 118.
[0034] Fig. 5 is a perspective view showing another example of the display device 117. The display device 117 may be provided in an operation terminal 200 arranged near the driver's seat. As shown in Fig. 6, the display device 117 of the operation terminal 200 can display a notification 116 such as characters or symbols indicating whether or not following the line is possible. In Fig. 6, the line area displayed on the display device 117 is schematically depicted as a hatched bar-shaped area.
[0035] As shown in FIGS. 1 and 3 , the agricultural machine 100 may be equipped with a mode switch 114 that switches between an automatic steering mode and a manual steering mode. When the automatic steering mode is selected by the mode switch 114, the control device 180 can permit the start of row-following traveling by the start switch 112. Specifically, when the automatic steering mode is selected by the mode switch 114, for example, power may be supplied to the steering motor for automatic steering. Furthermore, the image recognition system 1000 may be configured to start image recognition processing for detecting row regions when the automatic steering mode is selected by the mode switch 114. "Start" in FIG. 4 can be executed in response to the selection of the automatic steering mode by the mode switch 114.
[0036] When the image recognition system 1000 starts the image recognition process in response to the automatic steering mode being selected by the mode switch 114, the image recognition system 1000 may be configured to execute the image processing in multiple stages. Such processing will be described later.
[0037] In the example of FIG. 3 , the mode switch 114 is provided near the steering wheel 118. In this example, the mode switch 114 is a push button. The mode switch 114 is switched from an OFF state to an ON state, for example, when switching from a manual steering mode to an automatic steering mode. Conversely, the mode switch 114 is switched from an ON state to an OFF state when switching from an automatic steering mode to a manual steering mode. In other words, the mode switch 114 is a switch that determines the start and end of the automatic steering mode. However, in the present disclosure, the start of the automatic steering mode does not immediately mean that the vehicle will start following-file traveling by automatic steering. As described above, when it is determined that the vehicle is in a state where following-file traveling is possible based on the detection results of the image recognition system 1000 and the operator issues a command to start following-file traveling using the start switch 112, the control device 180 starts following-file traveling.
[0038] In one embodiment, when the automatic steering mode is enabled and file-following traveling is possible, the file-following traveling mode is started when the operator switches the start switch 112, for example, from the neutral position to the downward position. Furthermore, when the operator switches the start switch 112, for example, from the neutral position to the upward position during file-following traveling, the output of a signal commanding the start of file-following traveling that has been output from the start switch 112 may be stopped, or a signal commanding the stop of file-following traveling may be output from the start switch 112. As described above, the start switch 112 is a switch that turns on the file-following traveling function of the agricultural machine 100, but the control device 180 in the present disclosure is configured not to immediately start file-following traveling even when a command to start file-following traveling is issued by the start switch 112. As described above, the image recognition system 1000 determines whether file-following traveling is possible, and validates the command from the start switch 112 only when it is determined that file-following traveling is possible. This process and operation prevents row-following travel from starting when row-following travel is not possible, making it possible to avoid a situation in which crop rows or furrows are trampled down by the wheels.
[0039] During trail following travel, the travel speed of the agricultural machine 100 can be controlled in accordance with the positions of operation members such as an accelerator pedal and a brake pedal operated by the operator. However, the travel speed of the agricultural machine 100 may also be automatically controlled by the control device 180.
[0040] <Basic configuration example 2> FIG. 7 is a block diagram schematically illustrating another example of the basic configuration of an agricultural machine according to the present disclosure.
[0041] The agricultural machine 100 in this example includes an image recognition system 1000, a traveling device 145, and a control device 180, similar to the agricultural machine 100 described above. The image recognition system 1000 detects at least one of a crop and a ridge on the ground of a field from an acquired image, and determines a row area based on the detected at least one of the crop and the ridge. Here, the process for "detecting at least one of a crop and a ridge" (first process) and the process for "determining a row area based on the detected at least one of a crop and a ridge" (second process) may be executed separately. In the first process, an area classified as a crop or a ridge is detected from the image. In the first process, it is not necessary to determine the exact position of the area classified as a crop or a ridge. In contrast, in the second process, the position of the row area required for row tracking is identified. In other words, the range of the crop or the ridge detected in the first process, i.e., the position of the edge, is calculated by computation. In this way, it is preferable that the first process for detecting the crop or the ridge is executed over a wide area of the image. Furthermore, the detection position accuracy may be low. In contrast, in the second process, the position of the row region is determined with the accuracy required for row-following traveling, which may increase the calculation load compared to the first process. For this reason, it is efficient to start the second process in response to a command from the operator to start row-following traveling.
[0042] The agricultural machine 100 in this example is equipped with a command member 119 that commands the image recognition system 1000 to perform a calculation (second process) to determine the row area using the image recognition system 1000. The calculation to determine the row area refers to a calculation to identify the position (extent or edge position) of the "row area" with a positional accuracy that enables row-following travel. In the present disclosure, such "determination of the row area" is distinguished from simply "detecting" the crop rows or furrows.
[0043] 7, for example, the first process (low position accuracy detection process) can be started in response to the operator selecting the automatic steering mode using the mode switch 114. Then, when the operator commands the second process (high position accuracy detection process) using the command member 119, the row area is determined with the high accuracy required for row following traveling.
[0044] The control device 180 may be configured to, when a calculation command is issued by the command member 119, execute a determination process to determine whether or not row-following travel is possible based on at least one of the detected crops and ridges.
[0045] Next, with reference to FIG. 8, an example of the function of the command member 119 that commands the image recognition system to perform a calculation for determining the row region will be described.
[0046] First, after the agricultural machine 100 is started, in step S20, the agricultural machine 100 is in a state where it can travel in the manual travel mode.
[0047] In step S21, it is determined whether or not the automatic steering mode is selected. Specifically, if the automatic steering mode is selected by, for example, the mode switch 114 shown in Fig. 7 (Yes), the process proceeds to step S22, and if the manual steering mode is selected (No), the process returns to step S20.
[0048] In step S22, the image recognition process is started. Here, for example, the process (first process) for "detecting at least one of the crop and the ridge" described above is executed. The image recognition process may also execute other processes.
[0049] In step S23, it is determined whether the command member 119 is in the ON state. Specifically, if the command member 119 has commanded the image recognition system 1000 to perform a calculation to determine the row region (Yes), the process proceeds to step S24, and if not (No), the process proceeds to step S26.
[0050] In step S24, the image recognition system 1000 starts a calculation to determine the row area. Then, in step S25, the control device 180 executes row-following traveling, in which the traveling device 145 travels with automatic steering along the row area determined by the image recognition system 1000.
[0051] During following vehicle travel, the process proceeds to step S23, where it is determined whether the command member 119 is in the ON state. If the command member 119 is switched from the ON state to the OFF state, the process proceeds to step S26.
[0052] In step S26, if the vehicle is currently following a line of vehicles (Yes), the process proceeds to step S27, and if the vehicle is not currently following a line of vehicles (No), the process proceeds to step S20.
[0053] When the process proceeds to step S27, the process stops the line-following traveling and proceeds to step S28. In step S28, the image recognition system 1000 stops the image recognition process.
[0054] In this example, the command member 119 functions as an element that issues a command from the operator to start row-following travel. When starting row-following travel, the image recognition system 1000 may select a region of interest to be subjected to image recognition processing and perform processing to make the region of interest during row-following travel smaller than the region of interest before row-following travel. Specifically, when the automatic steering mode is selected by the mode switch 114 and the process proceeds to step S22, image processing is started with a region of interest that includes multiple crop rows or ridges on both sides of the left and right wheels to determine a position where follow-up travel is possible. Then, when the command member 119 is switched to the ON state and the process proceeds to step S24, a narrower region of interest that includes the crop rows or ridges adjacent to the left and right wheels is selected as the region of interest. In this way, processing may be performed to change the range of the region of interest to be subjected to image recognition processing before and after row-following travel. In other words, when the automatic steering mode is selected by the operator operating the mode switch 114, detection of crop rows or ridges is started with a wider region of interest than during row-following travel.
[0055] When the agricultural machine 100 is located in front of a crop row or ridge and the crop row or ridge cannot be detected, or when the position of the crop row or ridge and the position and orientation of the steering wheel do not allow row-following travel, the control device 180 will not start row-following travel even if the operator issues a command to start row-following travel from the command member 119. When row-following travel is possible, when the operator issues a command to start row-following travel, the control device 180 sets the region of interest to a narrow range and starts row-following travel. Note that in this configuration, the image processing is divided into multiple stages, with the first processing being performed in step S22 and the second processing being performed in step S24, but it may also be configured to perform the same processing without dividing it into multiple stages.
[0056] The image recognition system 1000 may be configured to select an area to be calculated from the image and start the calculation when the command member 119 issues a command to perform a calculation for determining the line area. In this example, the command member 119 functions to command the start of line-following traveling in addition to issuing a command to perform the calculation. In other words, the command member 119 may also function as the start switch 112 in FIG. 1.
[0057] The mode switch in FIG. 7 is not essential, but if the agricultural machine 100 is equipped with the mode switch 114, it is desirable that the control device 180 be configured to perform contouring when the mode switch 114 switches to automatic steering and calculation is instructed by the command member 119.
[0058] When a calculation command is issued by the command member 119, the control device 180 preferably executes a determination process (Figure 4) to determine whether row-following travel is possible based on at least one of the detected crops and ridges, as in the above example.
[0059] An embodiment of the image recognition system 1000 shown in Fig. 1 or 7 will be described below, followed by a detailed description of an embodiment of the agricultural machine 100 according to the present disclosure.
[0060] (Image Recognition System Embodiment 1) First, an image recognition system according to a first exemplary embodiment of the present disclosure will be described. In this embodiment, crop row detection is performed as "row detection."
[0061] The image recognition system 1000 in this embodiment includes an imaging device 120 that is attached to the agricultural machine 100 when in use (FIG. 2). The imaging device 120 is fixed to the agricultural machine 100 so as to acquire time-series color images that include at least a portion of the ground.
[0062] FIG. 9 schematically shows how an imaging device 120 attached to an agricultural machine 100, such as a tractor or a riding cultivation machine, captures an image of the ground 10. In the example of FIG. 9, the agricultural machine 100 includes a travellable vehicle body 110, and the imaging device 120 is fixed to the vehicle body 110. For reference, FIG. 9 also shows a body coordinate system Σb having Xb, Yb, and Zb axes 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 can be set, for example, near the center of gravity of the agricultural machine 100. For ease of viewing, the figure shows the origin of the body coordinate system Σb as if it were 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 arrow F) when the agricultural machine 100 travels straight. The Yb axis corresponds to the direction directly to the right when looking from the coordinate origin in the positive direction of the Xb axis, and the Zb axis corresponds to the downward vertical direction.
[0063] 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 video at a frame rate of 3 frames per second (fps) or higher.
[0064] 10 is a perspective view schematically showing the relationship between the above-mentioned body coordinate system Σb, the camera coordinate system Σc of the image capture 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 orthogonal to each other, and the world coordinate system Σw has an Xw axis, a Yw axis, and a Zw axis that are orthogonal to each other. In the example of FIG. 10, the Xw axis and the Yw axis of the world coordinate system Σw are on a reference plane Re that extends along the ground 10.
[0065] The imaging device 120 is attached to a predetermined position on the agricultural machine 100 so as to face in 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 example shown in the figure, 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 depression angle Φ may be set to a negative value, in other words, the orientation of the camera optical axis λ1 may be set so that the depression angle Φ has a positive elevation angle.
[0066] When the agricultural machine 100 is traveling on the ground 10, the body coordinate system Σb and the camera coordinate system Σc translate relative to the world coordinate system Σw. If 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 relative 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 or roll directions, but moves approximately parallel to the ground 10.
[0067] FIG. 11 is a top view schematically illustrating a portion of a farm field in which multiple crop rows 12 are laid on the ground 10. The crop rows 12 are rows formed by planting crops continuously in one direction on the ground 10 of the farm field. In other words, the crop rows 12 are groups of crops planted in ridges in the field. Because each crop row 12 is thus formed by a group of crops planted in the field, the shape of the crop rows is complex, strictly speaking, depending on the shape and arrangement of the crops. The width of the crop rows 12 changes depending on the growth of the crops.
[0068] Between adjacent crop rows 12, there is a strip-shaped intermediate region 14 where 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 a single ridge in the width direction of the ridge, multiple crop rows 12 will be formed on the ridge. In other words, multiple crop rows 12 will be 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 multiple crop rows 12 formed on the ridge serves as the reference for the intermediate region 14. In other words, the intermediate region 14 is located 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 multiple crop rows 12.
[0069] The intermediate area 14 functions as an area (work path) through which the wheels of the agricultural machine 100 pass, and therefore the "intermediate area" may be referred to as the "work path."
[0070] In this disclosure, the "edge line" of a crop row refers to a reference line segment (which may include a curve) that defines a target path when an agricultural machine follows the row using automatic steering. Such a reference line segment may be defined as both ends of a strip-shaped area (work path) through which the wheels of the agricultural machine are allowed to pass. A specific method for determining the "edge line" of a crop row will be described later.
[0071] 11 shows a schematic diagram of an agricultural machine 100 entering a field where a crop row 12 is laid. This agricultural machine 100 is equipped with left and right front wheels (steered wheels) 104F and left and right rear wheels 104R as traveling devices 145, and pulls a work machine (implement) 300. The front wheels 104F are steered wheels.
[0072] In the example of FIG. 11 , thick dashed arrows L and R are drawn on the work paths 14 located on both sides of a single central crop row 12. When the agricultural machine 100 travels along the target path indicated by the solid arrow C, the front wheels 104F and rear wheels 104R of the agricultural machine 100 are required to move along the arrows L and R within the work path 14 so as not to step on the crop row 12. In this embodiment, the image recognition system 1000 can detect the edge line E of the crop row 12 using the imaging device 120 attached to the agricultural machine 100. This allows the control device 180 and the traveling device 145 to control the steering and traveling of the agricultural machine 100 so that the front wheels (steered wheels) 104F and rear wheels 104R move along the work path 14 along the arrows L and R. Controlling the steering and traveling of the agricultural machine 100 based on the edge line E of the crop row in this way may be referred to as "row-following traveling control."
[0073] The agricultural machine 100 of this embodiment is capable of traveling in an automatic steering mode for performing file-following traveling, and in a normal manual steering mode. To allow the operator to switch between the automatic steering mode and the manual steering mode, the agricultural machine 100 is provided with a mode switch 114 shown in FIGS. 1 and 3. When performing file-following traveling, the operator operates the mode switch 114 to select the automatic steering mode. When the automatic steering mode is selected by the mode switch 114, the image recognition system 1000 starts image recognition processing based on the image acquired by the imaging device 120.
[0074] Fig. 12 is a diagram schematically illustrating an example of an image 40 acquired by the imaging device 120 of the agricultural machine 100 shown in Fig. 11. Theoretically, multiple crop rows 12 and an intermediate area (work path) 14 extending parallel to one another on the ground 10 intersect at a vanishing point P0 on the horizon 11. The reason that the vanishing point P0 is located in the area on the right side of the image 40 is because, as shown in Fig. 11, 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).
[0075] In this embodiment, using a method described below, 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. 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 while traveling along the crop row. 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 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 enables precise automatic steering according to the growing conditions of the crop, which is difficult to achieve with automatic steering technology that uses a positioning system such as GNSS.
[0076] However, as shown in FIG. 11 , if the orientation of the agricultural machine 100 and the direction in which the work passage 14 extends do not match, automatic steering may not be able to move the front wheels 104F and rear wheels 104R of the agricultural machine 100 through the work passage 14 along the arrows L and R. As described above, the image recognition system 1000 determines whether or not line-following traveling is possible based on the position and orientation of the steered wheels (front wheels 104F). If the image recognition system 1000 determines that line-following traveling is not possible, the operator is notified of this. In response to the notification, the operator adjusts the position and / or orientation of the agricultural machine 100 by manual steering.
[0077] Fig. 13 is a top view that schematically 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 the position error with respect to the target path (arrow C). Fig. 14 is a diagram showing 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. 13 are positioned on the lines indicated by arrows L and R in the work aisle 14, respectively.
[0078] After the image recognition system 1000 determines that line-following travel is not possible, if the state of the agricultural machine 100 changes to, for example, the state shown in Fig. 13 due to manual steering by the operator, the image recognition system 1000 may determine that line-following travel is possible and notify the operator of this. In this embodiment, automatic steering does not start until the operator issues a command to start line-following travel using the start switch 112 in Fig. 1 after receiving the notification. In this state, if the operator operates the start switch 112 to issue a command to start line-following travel, the control device 180 permits the start of line-following travel using automatic steering.
[0079] When the automatic steering-based tracking travel starts and the agricultural machine 100 travels along the target path C indicated by the arrow C in the center of FIG. 13, the control device 180 and the traveling device 145 in the agricultural machine 100 control the steering angles of the steering wheels so that the front wheels 104F and the rear wheels 104R do not deviate from the work passage 14.
[0080] The configuration and operation of an image recognition system according to an embodiment of the present disclosure will be described in detail below.
[0081] 2, the image recognition system 1000 according to this embodiment includes the above-described 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 is connected to a control device 180 included in the agricultural machine 100.
[0082] 2 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 image capture device 120 by a serial signal line such as a wire harness so as to receive image data output by the image capture device 120. A part of the image recognition process performed by the processing device 122 may be performed inside the image capture device 120 (inside the camera module).
[0083] 15 is a block diagram showing an example of the 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.
[0084] The processor 20 is a semiconductor integrated circuit, also referred to as a central processing unit (CPU) or microprocessor. The processor 20 may include a graphics processing unit (GPU). The processor 20 sequentially executes a computer program containing a predetermined set of instructions stored in a read-only memory (ROM) 22, thereby implementing the processing required for the sequence detection of the present disclosure. Part or all of the processor 20 may be a field programmable gate array (FPGA), application specific integrated circuit (ASIC), or application specific standard product (ASSP) equipped with a CPU.
[0085] 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 CAN (Controller Area Network) or the like, or wireless communication conforming to the Bluetooth (registered trademark) standard and / or the Wi-Fi (registered trademark) standard.
[0086] The storage device 28 can store data of images acquired from the imaging device 120 or images in the process of being processed. Examples of the storage device 28 include a hard disk drive or a nonvolatile semiconductor memory.
[0087] The hardware configuration of the processing device 122 is not limited to the above example. It is not necessary for 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 have one or more computers located outside the agricultural machine 100 function as part or all of the processing device 122. For example, a server computer connected to a network can function as part or all of the processing device 122. On the other hand, a computer mounted on the agricultural machine 100 may perform all of the functions required of the processing device 122.
[0088] 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 being detected is enhanced. (S2) From the enhanced image, a top view image of the ground is generated, in which first pixels having a crop row color index value equal to or greater than a threshold value and second pixels having this index value less than the threshold value are classified. (S3) Determine the position of the edge line of the crop row based on the index value of the first pixel.
[0089] Specific examples of operations S1, S2, and S3 will be described in detail below.
[0090] A time-series color image is a collection of images captured by the imaging device 120 in a time series. Each image is composed of a group of pixels per frame. For example, if the imaging device 120 outputs images at a frame rate of 30 frames per second, the processing device 122 can acquire a new image at intervals of approximately 33 milliseconds. The speed at which an agricultural machine 100, such as a tractor, travels in a field is relatively slow compared to the speed of an ordinary automobile traveling on a public road, and may be, for example, approximately 10 kilometers per hour or less. At a speed of 10 kilometers per hour, the distance traveled in approximately 33 milliseconds is approximately 6 centimeters. For this reason, the processing device 122 may acquire images at intervals of, for example, 100 to 300 milliseconds, and does not need to process all frames of images captured by the imaging device 120. The acquisition interval for images to be processed by the processing device 122 may be automatically changed by the processing device 122 depending on the traveling speed of the agricultural machine 100.
[0091] FIG. 16 is an image corresponding to image 40 of one frame in a time-series color image sequence acquired by an imaging device (in this example, a monocular camera) mounted on an agricultural machine. The image in FIG. 16 shows rows of crops (crop rows) planted in rows on the ground in a farm field. In this example, the rows of crops are arranged approximately parallel and at equal intervals on the ground, 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 ahead 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 an 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.
[0092] In operation S1, the processing device 122 in FIG. 2 generates an image (enhanced image) in which the color of the crop rows, which are the detection target, is enhanced based on the time-series color images acquired from the imaging device 120. Crops contain 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. Therefore, the spectrum of sunlight reflected by crops exhibits relatively higher 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 rows" is typically green. However, as will be described later, the "color of the crop rows" is not limited to green.
[0093] The image sensor in the imaging device 120 has a large number of photodetector cells arranged in rows and columns. Each photodetector cell corresponds to a picture element (pixel) that makes up 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 photodetector 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 "RGB value." When the R value, G value, and B value are used, a color can be specified by coordinate values in the RGB color space.
[0094] When the color of the crop rows being detected is green, an enhanced image that emphasizes the color of the crop rows is an image in which the RGB values of each pixel in a color image captured by an imaging device are converted into pixel values in which the weight of the G value is relatively large. This 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 normalization factor. Hereinafter, the normalized RGB values are referred to as rgb values, and are 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 the Excess Green Index (ExG).
[0095] FIG. 17 is a diagram showing an enhanced image 42 obtained by converting the RGB values in the image of FIG. 16 into "2×grb." As a result of this conversion, pixels in the image 42 of FIG. 17 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. This conversion results in an image (enhanced image) 42 in which the color of the crop rows to be detected ("green" in this example) is emphasized. Relatively bright pixels in the image of FIG. 17 are pixels with a relatively large green component, and belong to the crop area.
[0096] As a "color index value" for enhancing the color of crops, 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). Also, 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 crop rows."
[0097] Note that each row of crops may be covered with a sheet called "mulch." In such cases, the "color of the crop row" refers to the "color of the object that is arranged in a row covering the crops." Specifically, if the color of the sheet is achromatic black, the "color of the crop row" refers to "black." Also, if the color of the sheet is red, the "color of the crop row" refers to "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).
[0098] To generate an enhanced image that emphasizes the "color of the crop rows," conversion from the RGB color space to the HSV color space can be used. The HSV color space is a color space composed of three components: hue, saturation, and value. Using color information converted from the RGB color space to the HSV color space, low-saturation colors such as black or white can be detected. To detect "black" using the OpenCV library, simply set the hue to its maximum range (0-179), the saturation to its maximum range (0-255), and the value to its maximum range (0-30). To detect "white," simply set the hue to its maximum range (0-179), the saturation to its maximum range (0-255), and the value to its maximum range (200-255). Pixels with hue, saturation, and value values within these ranges are the pixels whose color is to be detected. To detect green pixels, for example, simply set the hue range to 30-90.
[0099] By generating an image (enhanced image) in which the color of the target crop rows is emphasized, it becomes easier to separate (extract) the crop row area from the other background areas (segmentation).
[0100] Next, operation S2 will be described.
[0101] In operation S2, the processing device 122 generates a top-view image from the enhanced image 42, in which pixels are classified into first pixels having a crop row color index value equal to or greater than a threshold value and second pixels having this index value less than the threshold value. The top-view image is an image viewed from above the ground.
[0102] In this embodiment, the aforementioned excess green index (ExG) is used as the index value for the color of the crop row, and the discrimination threshold is determined using discriminant analysis (Otsu's binarization). FIG. 18 is a histogram of the excess green index (ExG) in the enhanced image 42 of FIG. 17. The horizontal axis of the histogram represents the excess green index (ExG), and the vertical axis represents the number of pixels in the image (corresponding to frequency of occurrence). FIG. 18 also shows a dashed line indicating the threshold value Th calculated using the discriminant analysis algorithm. The pixels in the enhanced image 42 are classified into two classes based on this threshold value Th. To the right of the dashed line indicating the threshold value Th, the frequency of occurrence of pixels whose excess green index (ExG) is equal to or greater than the threshold value is shown, and these pixels are presumed to belong to the crop class. In contrast, to the left of the dashed line indicating the threshold value Th, the frequency of occurrence of pixels whose excess green index (ExG) is less than the threshold value is shown, and these pixels are presumed to belong to the class of cover 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 for determining the threshold is not limited to the above example, and the threshold may be determined using other methods that utilize machine learning, for example.
[0103] By assigning each pixel constituting the enhanced image 42 to either a "first pixel" or a "second pixel," it is possible to extract a detection target area from the enhanced image 42. In addition, by assigning "zero" to the pixel value of the "second pixel" or by 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.
[0104] FIG. 19 shows an example of a top-view image 44 of the ground, viewed from above, classified into first and second pixels. The top-view image 44 in FIG. 19 was created from the enhanced image 42 in FIG. 17 using the image conversion technology described below. 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 with a brightness set to zero). The area formed by the second pixels is primarily an area where the soil surface is visible. In the top-view image 44 in FIG. 19, black triangular areas exist at the left and right corners of the bottom edge. These triangular areas correspond to areas not visible in the enhanced image 42 in FIG. 17. Note that in the image 40 in FIG. 16 and the enhanced image 42 in FIG. 17, distortion of lines that should be straight is observed in the periphery of the image. This image distortion occurs due to the performance of the camera lens and can be corrected using the camera's internal parameters. Processing such as crop area enhancement, masking, distortion correction, etc. can be called pre-processing, but pre-processing may also include other processing.
[0105] The top-view image 44 in Figure 19 is a bird's-eye view image of a reference plane Re parallel to the ground, viewed from directly above in the normal direction of the reference plane Re. This bird's-eye view image can be generated from the enhanced image 42 in Figure 17 by homography transformation (planar projective transformation). Homography transformation is a type of geometric transformation that can transform points on a certain plane in three-dimensional space into points on any other plane.
[0106] 20 is a perspective view schematically illustrating the positional relationship between the reference plane Re and the camera coordinate system Σc1 of the imaging device in a first posture (position and orientation: pose) and the camera coordinate system Σc2 of the imaging device in a second posture. In the illustrated example, the camera coordinate system Σc1 is inclined so that its Zc axis intersects the reference plane Re at an angle. The imaging device in the first posture corresponds to an imaging device attached to an 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 positioned so that a bird's-eye image of the reference plane Re viewed from directly above in the normal direction of the reference plane Re can be obtained.
[0107] A virtual image plane Im1 exists at a position on the Zc axis away from the origin O1 of the camera coordinate system Σc1 by the camera's focal length. The image plane Im1 is orthogonal to the Zc axis and the camera optical axis λ1. Pixel positions on the image plane Im1 are defined by an image coordinate system having mutually orthogonal u and v axes. For example, assume that 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 Figure 20, the Xw and Yw axes 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.
[0108] Points P1 and P2 on the reference plane Re are transformed into points p1 and p2 on the image plane Im1 of the imaging device in the 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.
[0109] When the imaging device is in the second orientation, a virtual image plane Im2 exists at a position that is the focal length of the camera on the Zc axis 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 has axes P1 and P2 on the reference plane Re, which are projected by perspective projection onto 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 * ) is located at the pixel position indicated by the coordinates.
[0110] Given the positional relationship of the camera coordinate systems Σc1 and Σc2 with respect to the reference plane Re (world coordinate system Σw), a 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 x 3-column transformation matrix H.
number
[0111] The contents of the transformation matrix H are as follows: 11 , h 12 , , h 32 It is defined by the numerical value of
number
[0112] 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.
[0113] 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
[0114] The following equation is derived from the above two equations. As is clear from this equation, the transformation matrix H is H2H1 -1 is equal to H1 -1 is the inverse matrix of H1.
number
[0115] The contents of the transformation matrices H1 and H2 depend on the reference plane Re, so when the position of the reference plane Re changes, the contents of the transformation matrix H also change.
[0116] By using such homography transformation, it is possible to generate a top-view image of the ground from an image of the ground captured by an imaging device in a first orientation (an imaging device attached to an agricultural machine). In other words, homography transformation allows the coordinates of any point on the image plane Im1 of the imaging device 120 to be converted into the coordinates of a point on the image plane Im2 of a virtual imaging device in a predetermined orientation with respect to the reference plane Re.
[0117] 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.
[0118] In the above description, it was assumed that all points in three-dimensional space (e.g., P1, P2) are located on the reference plane Re (e.g., Z1 = Z2 = 0). If the height of the crop relative to the reference plane Re is not 0, the positions of corresponding points will shift from their correct positions in the top-view image after homography transformation. To suppress an increase in the amount of shift, it is desirable that the height of the reference plane Re be close to the height of the crop to be detected. The ground 10 may have unevenness such as ridges, furrows, and grooves. In such cases, the reference plane Re may be displaced upward from the bottom of such unevenness. The distance of the displacement can be appropriately set according to the unevenness of the ground 10 on which the crop is cultivated.
[0119] Furthermore, when the agricultural machine 100 is traveling on the ground 10, if a roll or pitch movement occurs in the vehicle body 110 (see FIG. 9), the attitude of the image capture device 120 changes, which may change the contents of the transformation matrix H1. In such a case, if the roll and pitch rotation angles of the vehicle body 110 are measured by the IMU, it is possible to correct the transformation matrix H1 and the transformation matrix H in accordance with the change in attitude of the image capture device.
[0120] The processing device 122 in this embodiment generates a top view image of the ground viewed from above using the above-mentioned method, in which the crop row color index value is classified into first pixels whose index value is greater than or equal to a threshold value and second pixels whose index value is less than the threshold value. Then, the processing device 122 executes operation S3.
[0121] Next, operation S3 will be described.
[0122] In operation S3, the processing unit 122 determines the position of the edge line of the crop row based on the index value of the first pixel. Specifically, the processing unit 122 accumulates the index values of the first pixels (pixels whose color index value is equal to or greater than a threshold) along multiple scan lines in the top-view image.
[0123] FIG. 21 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 vertical direction of the image (v-axis direction). FIG. 21 shows a number of scanning lines (dashed lines) S that are parallel to the vertical direction of the image (v-axis direction). The processing device 122 accumulates the index values of pixels located on multiple scanning lines S for each scanning line S to obtain an accumulated value.
[0124] FIG. 22 is a diagram schematically illustrating the relationship between the position of the scanning line S and the integrated value of the index value (a histogram of the integrated value) obtained for the top-view image of FIG. 21. The horizontal axis of FIG. 22 indicates the position of the scanning line S in the horizontal direction of the image (the u-axis direction). In the top-view image 44, if many 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 will be large. On the other hand, if many 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 will be small. Note that in this embodiment, the intermediate region (work passage) 14 is masked, and the index value of the second pixel is zero.
[0125] The histogram in FIG. 22 shows concave regions where the integrated value is zero or close to zero, and convex regions 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 positions of the edge lines of the crop rows 12 are determined as predetermined positions on both sides of the peak integrated value in the convex regions, specifically, the positions of the scan lines S having integrated values that are a predetermined percentage of the peak integrated value (for example, a value selected from the range of 60% to 90%). The ends of the arrow W in FIG. 22 indicate the positions of the edge lines of each crop row 12. In the example of FIG. 22, the positions of the edge lines of each crop row 12 are the positions of the scan lines S having a value that is 80% of the peak integrated value of each crop row 12.
[0126] 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 (pixel count) is not counted for the top-view image binarized based on the classification of the first and second pixels. When the number of first pixels is counted, for example, if there are many pixels (classified as first pixels) that slightly exceed the threshold Th due to fallen leaves or weeds, the count value of the first pixels will increase. In contrast, accumulating the index values of the crop row color of the first pixels, rather than the number of first pixels, as in the embodiment of the present disclosure, reduces erroneous determinations due to fallen leaves or weeds and improves the robustness of row detection.
[0127] Fig. 23 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. 11 and Fig. 12 , 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 vertical direction of the image (v-axis direction), as in the example of Fig. 23 .
[0128] FIG. 23 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 these multiple scanning lines S for each scanning line S to obtain an accumulated value, a histogram of the accumulated values is obtained as shown in FIG. 24. FIG. 24 is a diagram schematically showing 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. 23. The edge lines of the crop rows 12 cannot be determined from this histogram.
[0129] FIG. 25 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.
[0130] In step S10, the direction (angle) of the scanning line S is set. Here, the angle θ is the clockwise angle based on the u axis in the image coordinate system (see FIGS. 21 and 23). The range for searching the angle θ can be set to, for example, 60 to 120 degrees, and the angle increment can be 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.
[0131] In step S12, the index values for the pixels on the scanning line S extending in the direction of each angle θ are integrated to create a histogram of the integrated values. The histogram will show a different distribution depending on the angle θ.
[0132] In step S14, from the multiple histograms thus obtained, a histogram is selected in which the boundaries between convex and concave portions are sharp, as shown in FIG. 22, and the crop rows 12 are clearly distinguished from the intermediate region 14, and the angle θ of the scanning line S that generates that histogram is determined.
[0133] In step S16, an edge line of each crop row 12 is determined from the peak value of the histogram corresponding to the angle θ determined in step S14. As described above, the position of the scan line S having an integrated value that is, for example, 0.8 times the peak may be adopted as the edge line.
[0134] When searching for the direction (angle) of the scanning line S, a histogram of the integrated values on the scanning line S at each angle θ may be created each time the angle θ is changed by 1 degree within the search range. Feature quantities (e.g., depth of recesses / height of protrusions, differential values of envelopes, etc.) may be calculated from the waveform of the histogram, and it may be determined whether the direction of the crop rows 12 and the direction of the scanning line S are parallel or not based on the feature quantities.
[0135] The method for determining the angle θ is not limited to the above example. If the direction in which the crop rows extend is known through measurement, the direction of the agricultural machine 100 may be measured using 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.
[0136] FIG. 26 is a diagram showing an example of an integrated value histogram created from the top-view image of FIG. 19. For the convex portion of the histogram located in the center, the scanning line position 0.8 times the peak value is set as the position of edge line E. In this histogram, the peak of the convex portion 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. 19, there is little image distortion in the center of the top-view image, but the image distortion increases as the distance from the center to the left and right increases, and the black triangular areas located on both sides of the bottom side decrease the integrated value.
[0137] When crop row detection is used to guide agricultural machinery, the crop rows that need to be detected accurately are those in the center or its periphery of the image, so distortions in the areas near the left and right ends of the top-view image can be ignored.
[0138] FIG. 27 is a block diagram showing a series of processes executed by the processing device 122 in this embodiment. As shown in FIG. 27, 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, such as that shown in FIG. 23. The processing device 122 further executes scan line direction determination 36 and edge line position determination 37 to obtain the positions of the edge lines of the crop rows. Thereafter, the processing device 122, or a path generation device that has received information indicating the positions of the edge lines from the processing device 122, can execute target path generation 38 for the agricultural machine based on the edge lines. The target path can be generated so that the wheels of the agricultural machine are maintained within the intermediate region (work path) 14 between the edge lines E. For example, the target path can be generated so that the center in the width direction of a tire mounted on a metal wheel passes through the center of two edge lines located at both ends of the intermediate region (work path) 14. According to such a target route, even if the agricultural machine deviates from the target route by a few centimeters while traveling, it is possible to reduce the possibility of the tires entering the crop rows.
[0139] It has been confirmed that the embodiments of the present disclosure enable highly accurate detection of crop rows by suppressing the effects of sunlight conditions that change depending on weather conditions such as front lighting, back lighting, sunny days, cloudy days, and fog, as well as the time of day. It has also been confirmed that highly robust detection of crop rows is possible even when 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.
[0140] In the above embodiment, the homography transformation is performed after determining a binarization threshold and extracting a crop region based on 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. 27, the homography transformation 35 may be performed between the enhanced image generation 33 and the crop row extraction 34, or between the image acquisition 32 and the enhanced image generation 33.
[0141] A modified example of the sequence detection method executed by the image recognition system according to the present disclosure will now be described.
[0142] FIG. 28 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.
[0143] In this modified example, the processing device 122 divides part or all 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 form a continuous band shape in the horizontal direction of 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.
[0144] FIG. 29 is a diagram showing a schematic diagram of the relationship between the position of the scanning line S and the accumulated index value (accumulated value histogram) for each of blocks B1, B2, and B3 in the top-view image of FIG. 28. When accumulating, the scanning line S is always parallel to the vertical direction of the image. The index value is accumulated 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) resulting from the intermediate region (work passage) 14, even if the crop row 12 extends at an angle. This eliminates the need to change the angle of the scanning line S.
[0145] The two ends of the arrow W in Figure 29 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 Figure 28, the direction of the crop rows 12 is inclined with respect to the direction of the scan line S. For this reason, as described above, if the scan line position showing a value 0.8 times the peak value of the integrated value histogram is used as the position of the edge line E of the crop row 12, then the position of such edge line E corresponds to the two ends of the "width" that passes through the vicinity of the center of the crop row 12 in each of the blocks B1, B2, and B3.
[0146] FIG. 30 shows the crop row centers Wc for each of the blocks B1, B2, and B3 in FIG. 29. The crop row centers Wc are determined from the centers of the arrows W that define the crop row edge lines determined from the integrated value histogram in FIG. 29, and are located at the center of each block in the vertical direction of the image. FIG. 30 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 determined so as to minimize the root mean square of the distance (error) from multiple crop row centers Wc for each crop row 12. Such an approximation line 12C corresponds to a line that passes through the center of the crop row 12.
[0147] Figure 31 is a top view showing an example of edge lines E of crop rows 12 determined from the approximation line 12C in Figure 30. 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.
[0148] 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 determined 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 determine the integrated value histogram, but the number of blocks may be four or more. The shape of the blocks is also not limited to the above example. Within the top-view image, the blocks may have a continuous band shape in either the horizontal or vertical direction of the image. The processing device 122 can determine the edge line of the crop row by dividing the image into band-shaped blocks extending in a direction different from the traveling direction of the agricultural machine 100.
[0149] Fig. 32 schematically shows a state in which the crop rows 12 in the top-view image 44 include curved portions. Fig. 33 schematically shows integrated value histograms for each of blocks B1, B2, and B3 in the top-view image 44 in Fig. 32.
[0150] Figure 34 is a diagram showing examples of the crop row centers Wc in each of the blocks B1, B2, and B3 in Figure 33, and an approximation line 12C for each crop row center Xc. In this example, the approximation line 12C is a curve (e.g., a higher-order curve such as a cubic curve) determined so as to minimize the root 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 that passes through the center of the crop row 12, which has a curved portion.
[0151] Figure 35 is a top view showing an example of edge lines E of the crop rows 12 determined from the approximation line of Figure 34. The edge lines E are generated in a manner similar to that described with reference to Figure 31. 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.
[0152] As explained above, by dividing the 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.
[0153] Any of the above sequence detection methods may be implemented in a computer and performed by causing the computer to perform the desired operations.
[0154] As can be seen from the above explanation, it is desirable to increase the number of scan lines and reduce the length of each block in the vertical direction of the image in order to determine the position of the edge line E of the crop row 12 with high positional accuracy. However, performing row detection using the above method for all of the time-series images acquired by the imaging device 120 or for the entire range of each image may increase the computational load on the processing device 122.
[0155] As described above, after the image recognition system 1000 starts image processing in response to the operator selecting the automatic steering mode using the mode switch 114, low-position accuracy detection processing may be performed until a row region such as a crop row is detected. This low-position accuracy detection processing may be performed, for example, on a portion of images selected from a time-series image acquired by the imaging device 120. When a row region is detected, it is desirable to start detection processing with increased position accuracy by increasing the number of scanning lines, reducing the length of each block in the vertical direction of the image, or increasing the number of blocks. Once a row region is detected and it is determined that row-following travel is possible, the operator may issue a command to start row-following travel using the start switch 112, and then detection processing with increased accuracy may be started.
[0156] In this way, by dividing the processing performed by the image recognition system 1000 into two or more stages, it is possible to effectively reduce the computational load on the processing device 122. Furthermore, since the computation for determining the row region, which is executed with high positional accuracy, imposes a high computational load on the processing device 122 of the image recognition system 1000, it is desirable to start the execution using a command from the command member 119 (FIG. 7) as a trigger.
[0157] The blocks can be set within a region (region of interest) selected from the image to determine row detection. When starting row tracking, the image recognition system 1000 may select a region of interest to be subjected to image recognition processing and perform processing to reduce the region of interest during row tracking compared to the region of interest before row tracking. Specifically, before row tracking, a region of interest estimated to include, for example, two rows of crops on both sides of the left and right wheels is selected as the region of interest to determine a position where tracking is possible. In contrast, when starting row tracking, a region of interest that includes the crop rows adjacent to the left and right wheels is selected as the region of interest. In this way, when starting row tracking, the region of interest is reduced in at least the lateral width direction from the region of interest before row tracking, and a relatively narrower region including the row region to be tracked is selected as the region of interest, thereby reducing the computational load on the processing device 122.
[0158] (Image Recognition System Embodiment 2) Row detection by an image recognition system according to a second exemplary embodiment of the present disclosure will be described. In this embodiment, ridge detection is performed as "row detection."
[0159] FIG. 36 is a perspective view showing a row of ridges 16 on the ground 10. A "ridge" is a location where plants are planted in rows or planted in rows. It is a convex, generally linear, raised area with high mounds of soil spaced apart. 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. 36 shows a schematic representation of a ridge 16 with a trapezoidal cross-section. Actual ridges do not have the simple shape shown in FIG. 36. Between two adjacent ridges 16 is an intermediate region 14, called a furrow space. The intermediate region 14 functions as a work passage. Crops may be planted on the ridges 16, or they may be unplanted, with only the soil exposed. Each ridge 16 may also be covered with mulch.
[0160] The height, width, and spacing of the ridges 16 do not need to be uniform and may vary depending on the location. The height of the ridges 16 is generally the difference in elevation 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.
[0161] In the example of Figure 36, the edge lines of the ridges 16 are clear. However, in reality, the ridges 16 are part of the ground surface 10 that continues from the intermediate region 14, and as described above, the "cross-sectional shapes" of the ridges 16 vary, 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 peak of each ridge 16 and at a height that is a predetermined percentage of the peak. The position of the edge line is, for example, a position that has a height that is 0.8 times the peak of each ridge 16.
[0162] 2, the image recognition 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 the configuration of the processing device 122 in the first embodiment.
[0163] 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. (S21) A first movement amount within the image plane of each of a plurality of feature points is obtained by feature point matching from a plurality of images acquired at different times in the time-series images. (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 within the reference plane is calculated based on the first movement amount. (S23) Based on the second movement amount, the heights of the plurality of feature points from the reference plane are estimated to detect ridges on the ground. Specific examples of operations S21, S22, and S23 will be described in detail below.
[0164] First, operation S21 will be described. In operation S11, a first movement amount within an image plane of each of a plurality of feature points is determined by feature point matching from a plurality of images acquired at different times in the time-series images. The time-series images are a collection of images acquired in time series by the imaging device 120 through photography. The time-series images do not need to be color images, but may be color images. When the imaging device 120 outputs time-series color images, the processing device 122 may grayscale the color images to be processed in the time-series color images. As described in the first embodiment, each image is composed of a group of pixels in units of frames. The frame rate is also as described in the first embodiment.
[0165] Figure 37 shows image 40(t), one frame in a time-series of images captured at time t by an imaging device (monocular camera in this example) 122 mounted on agricultural machine 100. In this example, no crops are planted on ridge 16. The data for image 40(t) captured by the monocular camera does not contain depth information. For this reason, it is not possible to determine the difference in elevation between ridge 16 and intermediate region 14 from a single image 40(t).
[0166] The imaging device 120 acquires an image 40(t+1), an image 40(t+2), an image 40(t+3), and so on in chronological order not only at time t but also at other times, for example, at times t+1, t+2, t+3, and so on. The multiple images acquired in chronological order by the imaging device 120 while the agricultural machine 100 is traveling may each include the same area of the ground 10 in a partially overlapping manner.
[0167] In this embodiment, the processing device 122 extracts feature points from image 40(t), image 40(t+1), .... A "feature point" is a pixel whose brightness value or color can be distinguished from surrounding pixels, and whose position can be identified within the image. Extracting feature points within an image makes it possible to match multiple images of the same scene. In areas of an image where brightness 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 of the image where brightness value or color changes locally. A feature point is a pixel or group of pixels that has a "local feature."
[0168] 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), etc., acquired 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. Examples of image processing feature point extraction algorithms include SIFT (Scale-Invariant Feature Transform), SURF (Speed-Up Robust Feature), KAZE, and A-KAZE (Accelerated-KAZE). Like SIFT or SURF, KAZE and A-KAZE are highly robust feature point extraction algorithms that are resistant to changes in scaling, rotation, and lighting. Unlike SIFT and SURF, KAZE and A-KAZE do not use a Gaussian filter. Therefore, KAZE and A-KAZE are less susceptible to changes in rotation, scale, and brightness, and can extract feature points even from areas of the image where brightness and color change are relatively small. This makes it easy to extract feature points suitable for feature point matching even from images such as soil surfaces. A-KAZE also has the advantage of being more robust and capable of increasing processing speed compared to KAZE. 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.
[0169] 38 schematically shows the correspondence between feature points in 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.
[0170] A feature point matching algorithm is used to associate multiple feature points extracted from image 40(t) with multiple corresponding feature points in image 40(t+1). In FIG. 38, 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) using A-KAZE. The number of feature points to be extracted can be determined based on the number of images processed per second.
[0171] After performing this feature point matching, the processing device 122 calculates the amount of movement (first movement amount) within 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 indicates different values due to the physical height difference of the feature points on the ground 10.
[0172] FIG. 39 is a perspective view schematically showing the movement of the ridge 16 and the intermediate region (work passage) 14 shown in images acquired by the imaging device 120, and also shows an image 40(t) and an image 40(t+1) schematically. FIG. 39 also shows a state in which point F1 on the ridge 16 and point F2 on the intermediate region (between the furrows or the work passage) 14 move horizontally to the left side of the drawing. This horizontal movement is a relative motion caused by the imaging device 120, which is fixed to the agricultural machine 100, moving to the right together with the agricultural machine 100. For simplicity, FIG. 39 shows the 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. The height of the origin O of the camera coordinate system Σc is Hc. In the example shown, the ridge 16 is a simplified ridge having a height dH.
[0173] Image 40(t) in Figure 39 shows feature point f1 of ridge 16 and feature point f2 of intermediate region 14. These feature points f1 and f2 are examples of many feature points extracted using a feature point extraction algorithm such as A-KAZE. Image 40(t+1) shows feature points f1 and f2 after movement. For reference, image 40(t+1) also includes an arrow A1 indicating the movement of feature point f1 from time t to time t+1 and an arrow A2 indicating the movement of feature point f2. The length of arrow A1 (corresponding to the first movement amount) is greater than the length of arrow A2 (corresponding to the first movement amount). Thus, the movement amount of a feature point in an image (first movement amount) varies depending on the distance from the origin O of the camera coordinate system Σc to the corresponding point on the subject. This is due to the geometric properties of perspective projection.
[0174] Feature points f1 and f2 in image 40(t) are respectively points obtained by perspectively projecting 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, feature points f1 and f2 in image 40(t+1) are respectively points obtained by perspectively projecting 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. Because perspective projection is a bidirectional relationship, points F1 and F2 can also be said to be points obtained by perspectively projecting feature points f1 and f2 in image 40(t) onto the ground 10. Similarly, points F1* and F2* can also be said to be points obtained by perspectively projecting feature points f1 and f2 in image 40(t) onto the ground 10.
[0175] 39, 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*. The distances of these movements are both equal to the distance traveled by the agricultural machine 100 between time t and time t+1 (horizontal movement distance). In contrast, the amounts of movement of feature points f1 and f2 on the image plane Im1 of the imaging device 120 are different from each other.
[0176] 40 is a diagram schematically showing the relationship between the amount of movement (L) of point F1 on ridge 16 corresponding to feature point f1 on image plane Im1 of imaging device 120 and the amount of movement (second amount of movement L+dL) of point F1p projected onto reference plane Re (projected point). In this example, the height of reference plane Re is made to coincide with the height of intermediate region (inter-furrow) 14, and the height of ridge 16 is set to dH.
[0177] As can be seen from Figure 40, 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 F1p perspectively projected onto reference plane Re (projected point) is expressed as L + dL, which is longer than L. This is because point F1 on the ridge 16 is located higher 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 image plane Im1 also increases.
[0178] The following formula can be derived from the ratio of the side lengths (similarity ratio) of the two similar triangles shown in Figure 40.
number
[0179] By transforming the above equation, the following equation is obtained.
number
[0180] The processing device 122 in this embodiment executes operation S22 to estimate the magnitude of the unevenness in the ground surface 10 based on the above equation. That is, each of the multiple feature points is perspectively projected from the image plane onto a reference plane Re corresponding to the ground surface 10, and the second movement amount (L+dL) of each projected point within the reference plane Re is calculated based on the first movement amount. The distance L in the above equation can be obtained by measuring the travel distance of the agricultural machine 100. Furthermore, the height Hc of the origin O of the camera coordinate system from the reference plane Re is known. Therefore, once the second movement amount (L+dL) is known, the height dH of the ridge 16 can be calculated from equation 7. The second movement amount (L+dL) can then be calculated from the first movement amount.
[0181] After performing operation S22, the processing unit 122 performs operation S23.
[0182] 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 ridges 16 of the ground surface 10.
[0183] As described above, 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 multiple 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.
[0184] 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 movement. Next, the processing device 122 transforms the coordinates of each feature point into the coordinates of the corresponding point on the reference plane Re by homography transformation, and then obtains a second movement amount from the coordinates on the reference plane Re before and after movement.
number
[0185] Fig. 41 is a block diagram showing a series of processes executed by the processing device 122 in the second embodiment. As shown in Fig. 41, 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 the many 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.
[0186] As described in the first embodiment, multiple scan lines are set in this embodiment. However, in this embodiment, the average height of the feature points is calculated along each scan line. Furthermore, by changing the direction (angle) of the scan line, the direction of the ridges can be found from the distribution of the average heights of the feature points. Once the direction of the ridges 16 can be determined, the edge lines of the ridges 16 can be determined using a method similar to that used to determine the edge lines of the crop rows 12. Note that, as described with reference to Figure 28 and other figures, if a method of dividing the image into multiple blocks is adopted, the scan line direction determination 56 can be omitted.
[0187] 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.
[0188] Figure 42 is a diagram showing the relationship between the average height of feature points on scan lines parallel to the direction in which the ridges extend and the position of the scan lines. In the graph of Figure 42, the horizontal axis represents the position of the scan line, and the vertical axis represents 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 reaches its peak corresponds to the center of the ridge. The curve representing the average height forms a valley midway between two adjacent peaks. This valley corresponds to the vicinity of the center of the intermediate region (furrow space or work passage) 14.
[0189] In this embodiment, the processing device 122 determines the positions on both sides of the peak position indicated by the height average value, which have a height that is a predetermined proportion (for example, 0.8 times) of the peak, as the edge lines of the ridges. Above the graph in Fig. 42, white arrows are written indicating the positions of the edge lines of each of the two ridges in the image.
[0190] In this embodiment, too, as described with reference to FIGS. 28 to 35, an image may be divided into a plurality of blocks, and the average value of the heights of feature points on the scanning line may be calculated for each block.
[0191] According to this embodiment, row detection does not depend on the "color of the crop row," which has the advantage that it is less affected by the type of crop or sunlight conditions. We have confirmed that it is possible to detect not only high ridges such as the "raised ridges" often created in vegetable cultivation, but also relatively low ridges in the range of 5 to 10 centimeters in height.
[0192] The processing device 122 may simultaneously or selectively detect the crop row in the first embodiment and the ridge in the second embodiment. When a crop is planted in a ridge, 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.
[0193] 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. 29 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. 42. For example, when a target route is generated based on the edge lines of detected crop rows and the agricultural machine is traveling along the target route, ridge detection may be performed in the background at a point 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.
[0194] In addition, in the case 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 operator's selection.
[0195] In this embodiment, when starting line-following traveling, the image recognition system 1000 may also select a region of interest to be subjected to image recognition processing and perform processing to make the region of interest during line-following traveling smaller than the region of interest before line-following traveling. Specifically, before line-following traveling, in order to determine a position where line-following traveling is possible, a range estimated to include two rows of ridges on both sides of the left and right wheels is selected as the region of interest. When line-following traveling is started, a range including adjacent ridges on both sides of the left and right wheels is selected as the region of interest. In this way, when line-following traveling, the region of interest before line-following traveling is reduced in at least the left and right width direction, and a relatively narrow range including the line region to be followed is selected as the region of interest, thereby reducing the computational load on the processing device 122.
[0196] (Image Recognition System Embodiment 3) The following describes the sequence detection in the third exemplary embodiment of the present disclosure, where the selection of the region of interest will be described in detail.
[0197] 43 shows an example of the basic configuration of an image recognition system 1000 according to this embodiment. The image recognition system 1000 includes a processing device 122 having the same hardware configuration as in the other embodiments. The processing device 122 selects a region of interest for detecting at least one of a crop row and a ridge from the time-series images. The region of interest has a size and shape that includes at least a portion of a wheel.
[0198] Figure 44 shows an example of an image 40 acquired by the processing device 122 from the imaging device 120. The image 40 is one of a series of images. The image 40 shows the crop rows 12, the intermediate region 14, part of the vehicle body 110 of the agricultural machine 100, and part of the front wheel 104F. For reference, edge lines are indicated by white lines in Figure 44.
[0199] Fig. 45 is a diagram showing a portion of the image in Fig. 44. In Fig. 45, a portion of the vehicle body 110 of the agricultural machine 100 and a portion of the front wheel 104F shown in image 40 are surrounded by a white line. In image 40 in Fig. 45, an example of a region of interest 60 is shown by a trapezoidal dashed line that includes a portion of the front wheel 104F. This region of interest 60 has a shape that includes, of at least one of the crop rows and ridges in image 40, the crop row or ridge located on the left side of the front wheel 104F to the crop row or ridge located on the right side.
[0200] As can be seen from the example image in Fig. 19, even in a top-view image, distortion is greater in the periphery than in the center. As a result, as shown in Fig. 26, for example, the peak value decreases and the interval between peaks increases as the position of the scan line moves away from the center.
[0201] On the other hand, the crop rows or furrows 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 furrows located around the wheels of the traveling device of the agricultural machine. In this embodiment, by performing row detection on only a partial area rather than the entire image acquired by the imaging device 120, it is possible to reduce the amount of calculations performed by the processing device 122 and the time required for calculation. In addition, outliers caused by distortion in the periphery of the image can be excluded, thereby improving the accuracy of row detection.
[0202] Selection of the region of interest 60 (region setting) depends on the position and orientation at which the imaging device 120 is attached to the agricultural machine 100, as well as the structure or shape of the agricultural machine 100. For example, after attaching the imaging device 120 to the agricultural machine 100, the extent (shape, size, position) of the region of interest 60 may be determined manually while checking an image obtained from the imaging device 120 on a monitor screen. Alternatively, the extent of the region of interest 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.
[0203] The processing device 122 in this embodiment may be configured to detect at least a portion of the wheel 10F from the image 40 as shown in Fig. 45 using, for example, image recognition technology. In this case, it becomes possible to adaptively change the range of the region of interest 60 so that an area including at least a portion of the detected front wheel 104F is selected as the region of interest 60.
[0204] The processing device 122 may estimate a positional relationship between the front wheel 104F and at least one of the detected crop rows 12 and ridges 16 based on an image of the portion of the front wheel 104F included in the region of interest 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 a positional relationship.
[0205] There are cases where the processing device 122 does not have information indicating the accurate 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, accuracy will be lost if, for example, the operator changes the tire size of the front wheels 104F or changes the spacing between the left and right front wheels 104F. In such cases, the processing device 122 may detect a portion of the front wheels 104F included in the region of interest 60 and estimate the position of the front wheels 104F relative to the agricultural machine 100 based on an image of the detected portion of the front wheels 104F.
[0206] FIG. 46 is a top view diagram of a portion of the ground 10 on which the crop rows 12 are provided. A pair of front wheels 104F are depicted in FIG. 46. The rectangular area 62 in this top view diagram is a top-view image generated by performing the above-described homography transformation on the region of interest 60 of the image in FIG. 45. The vehicle body 110 shown in the region of interest 60 in FIG. 45 is omitted from FIG. 46. Furthermore, because the image of the portion of the front wheels 104F shown in the region of interest 60 is significantly deformed by the homography transformation, FIG. 46 depicts the shape of the front wheels 104F as "parallel projections" onto the reference plane Re. Furthermore, for reference, FIG. 46 also depicts a schematic representation of the tire treads (contact surfaces) CA where the front wheels 104F contact the ground 10. The center-to-center distance T between the left and right tire treads CA is the "tread width (track)."
[0207] Generally, the position of the tire tread CA relative to the vehicle body 110 of the agricultural machine 100 is known. Therefore, the positional relationship of the tire tread CA relative to the top view image (rectangular area) 62 of the region of interest 60 is also known. However, by setting the region of interest 60 to include at least a portion of one or more wheels, as in this embodiment, the following effects can be obtained.
[0208] The structure of the vehicle body 110 varies depending on the model, and the tread width T (the center-to-center distance of the tire tread CA) may also vary depending on the model. Furthermore, even for the same model, the operator may change the tread width T, as described above. Therefore, selecting the shape and size of the region of interest 60 so that it includes the wheels 104 shown in the image enables image processing that is compatible with a variety of models and can accommodate cases where the tread width T is changed by the operator.
[0209] It is no longer necessary to input the position of the tire tread CA as coordinates in the body coordinate system Σb in advance. Based on the image captured by the imaging device 120, it becomes possible to automatically obtain the coordinates of the front wheel 104F or the tire tread CA in the body coordinate system Σb.
[0210] It is possible to monitor the position error between the wheel and the edge line of the row determined by the image recognition system, or the target path generated based on the edge line, based on the image.
[0211] As mentioned 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 row edge line or the target path, it is desirable to correct the homography transformation. This point will be explained below.
[0212] FIG. 47 is a diagram schematically illustrating the positional relationship between points P3 and P4 included in a portion 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. 47, 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 and Y coordinates of the corresponding points P3' and P4' on the reference plane Re are shifted from the X and Y coordinates of the points P3 and P4, respectively. Therefore, when 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 is formed in a distorted shape in the top-view image, making it difficult to estimate the accurate positional relationship.
[0213] To determine the positional relationship between the front wheel 104F and the edge line of the crop row 12 or ridge 16 based on such a top-view image, it is preferable to estimate the center of the tire tread CA based on the coordinates (X3', Y3', 0) and (X4', Y4', 0) of the corresponding points P3' and P4'.
[0214] 47, 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 can be estimated from the shape in the image using a technique such as pattern matching. Once 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'.
[0215] Thus, in this embodiment, by including at least a part of the wheels within the region of interest, it becomes possible to monitor the positional relationship of the wheels with respect to the row detected from within the region of interest using time-series images.
[0216] (Embodiment of agricultural machinery) Next, we will explain embodiments of agricultural machines equipped with the image recognition systems of embodiments 1 to 3. Note that the procedure or algorithm for row detection by the image recognition system is not limited to the procedure or algorithm described in the above embodiments 1 to 3.
[0217] The agricultural machine in this embodiment is equipped with the image recognition 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, traveling, and other operations of the agricultural machine.
[0218] The control device may be configured to, in a normal automatic steering operation mode, identify the position of the agricultural machine using the positioning device, and, based on a target route generated in advance, control the steering of the agricultural machine so that the agricultural machine travels along a target route. Specifically, the control device may control 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 travel not only in this normal automatic steering mode, but also using "row-following travel control" in a field where rows of crops and ridges are provided.
[0219] The positioning device includes, for example, a GNSS receiver. Such a positioning device can identify the position of a work vehicle based on signals from GNSS satellites. However, when rows are present in a field, even if the positioning device can accurately measure the position of the agricultural machine, the rows are narrow, and depending on the way the crops are planted and their growing conditions, there is a high possibility that the agricultural machine's running gear, such as wheels, may extend beyond the rows. However, in this embodiment, by using the image recognition system described above, it is possible to detect rows that actually exist and perform appropriate automatic steering. That is, the automatic steering device (control 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 row edge line determined by the image recognition system.
[0220] Furthermore, in the agricultural machine of this embodiment, the processing device of the image recognition system can monitor the positional relationship between the row edge line 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.
[0221] Fig. 48 is a perspective view showing an example of the appearance of the agricultural machine 100 according to this embodiment. Fig. 49 is a side view schematically showing an example of the agricultural machine 100 with the work implement 300 attached. The agricultural machine 100 according to 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 according to the present disclosure can be used to great effect in small cultivators and vegetable transplanters that can be used for inter-furrow work such as ridge creation, inter-cultivation, hilling, weeding, top dressing, and pest control, for example.
[0222] 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. 48, the obstacle sensor 136 may be provided at multiple locations on the agricultural machine 100.
[0223] As shown in FIG. 49, the agricultural machine 100 includes a vehicle body 110, a prime mover (engine) 102, and a transmission 103. The vehicle body 110 is provided with wheels 104 and a cabin 105. The wheels 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. The group of switches may include a start switch 112, a mode switch 114, and a command member 119 shown in FIGS. 1 and 7. One or both of the front wheels 104F and the rear wheels 104R may be replaced with wheels (crawlers) equipped with tracks rather than wheels with tires. The agricultural machine 100 may be a four-wheel drive vehicle having four wheels 104 as drive wheels, or may be a two-wheel drive vehicle having a pair of front wheels 104F or a pair of rear wheels 104R as drive wheels.
[0224] 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 top of the cabin 105, but may be provided in another position.
[0225] The positioning device 130 can further supplement the position data by using signals 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 signals with data acquired by the IMU, it is possible to improve the positioning performance.
[0226] In the examples shown in FIGS. 48 and 49 , an obstacle sensor 136 is provided at the rear of the vehicle body 110. The obstacle sensor 136 may also be provided at a location 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 and front of the vehicle body 110, and the cabin 105. The obstacle sensor 136 detects objects present around the agricultural machine 100. The obstacle sensor 136 may include, for example, a laser scanner and / or an ultrasonic sonar. When an obstacle is present within a predetermined detection area (search area) of the obstacle sensor 136, the obstacle sensor 136 outputs a signal indicating the presence of an obstacle. Multiple obstacle sensors 136 may be provided at different positions on the body of the agricultural machine 100. For example, multiple laser scanners and multiple ultrasonic sonars may be provided at different positions on the body. By providing such a large number of obstacle sensors 136, it is possible to reduce blind spots in monitoring obstacles around the agricultural machine 100.
[0227] 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 travel speed of the agricultural machine 100 by changing speeds. The transmission 103 can also switch the agricultural machine 100 between forward and reverse travel.
[0228] 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 steerable wheels, and the traveling direction of the agricultural machine 100 can be changed by changing the turning angle (also referred to as the "steering angle"). When manual steering is performed, the steering angle of the front wheels 104F can be changed by the operator operating the steering wheel. The power steering device includes a hydraulic device or an electric motor that supplies an assisting 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 (steering motor) under control of a control device arranged in the agricultural machine 100.
[0229] 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 "three-point hitch"), a PTO (Power Take Off) shaft, a universal joint, and a communication cable. The coupling device 108 can attach and detach the work implement 300 to the agricultural machine 100. The coupling device 108 can raise and lower the three-point link using, for example, a hydraulic device, to control the position or attitude of the work implement 300. In addition, power can be transmitted from the agricultural machine 100 to the work implement 300 via the universal joint. The agricultural machine 100 can cause the work implement 300 to perform a predetermined task while towing the work implement 300. The coupling device may be provided at the front of the vehicle body 110. In this case, the work implement can be connected to the front of the agricultural machine 100.
[0230] The implement 300 shown in Figure 49 is, for example, a rotary cultivator. The implement 300, which is towed by or attached to a work vehicle such as a tractor when traveling along the rows, can be any implement that can be used for inter-row work such as ridge making, inter-cultivation, soiling, weeding, fertilizing, and pest control.
[0231] 50 is a block diagram showing an example of a schematic configuration of the agricultural machine 100 and the work implement 300. The agricultural machine 100 and the work implement 300 can communicate with each other via a communication cable included in the coupling device 108.
[0232] In the example of FIG. 50 , the agricultural machine 100 includes an imaging device 120, a positioning device 130, an obstacle sensor 136, and an operation terminal 200, as well as a drive unit 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 multiple electronic control units (ECUs) 181 to 186. The work implement 300 includes a drive unit 340, a control device 380, and a communication interface (IF) 390. Note that FIG. 50 shows components that are relatively closely related to the automatic steering or automatic driving operation of the agricultural machine 100, and does not show other components.
[0233] The positioning device 130 uses GNSS to locate the position of the agricultural machine 100. If the positioning device 130 is equipped with an RTK receiver, correction signals transmitted from a reference station are used in addition to GNSS signals transmitted from multiple GNSS satellites. The reference station may be installed around the field in which the agricultural machine 100 travels (for example, within 10 km of the agricultural machine 100). The reference station generates correction signals based on the GNSS signals received from the multiple GNSS satellites and transmits them to the positioning device 130. A GNSS receiver 131 in the positioning device 130 receives GNSS signals transmitted from the multiple 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 signals. By using RTK-GNSS, it is possible to perform positioning with an accuracy of, for example, a few centimeters. Position information including latitude, longitude, and altitude information is acquired through high-precision positioning using RTK-GNSS. The positioning method is not limited to RTK-GNSS, and any positioning method (such as interferometric positioning or relative positioning) that can obtain position information with the required accuracy can be used. For example, positioning using a Virtual Reference Station (VRS) or a Differential Global Positioning System (DGPS) may be performed.
[0234] The IMU 135 includes a three-axis acceleration sensor and a three-axis gyroscope. The IMU 135 may also include a direction 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, velocity, 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 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 correction signal. The IMU 135 outputs a signal at a higher frequency than the GNSS signal. The high-frequency signal can be used to measure the position and orientation of the agricultural machine 100 at a higher frequency (for example, 10 Hz or higher). Instead of the IMU 135, a three-axis acceleration sensor and a three-axis gyroscope may be provided separately. The IMU 135 may also be provided as a device separate from the positioning device 130.
[0235] 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.
[0236] By using such a positioning device 130, it is also possible to create a map of the crop rows and furrows detected by the image recognition system 1000 described above.
[0237] 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 aforementioned prime mover 102, transmission 103, differential device including a differential lock mechanism, steering device 106, and 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.
[0238] 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 of the steering wheel sensor 150 and the turning angle sensor 152 are used for steering control by the control device 180.
[0239] 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.
[0240] The control device 180 includes multiple ECUs. The multiple 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 implement 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 image recognition system. The ECU 182 controls the speed of the agricultural machine 100 by controlling the prime mover 102, the transmission 103, and the brakes included in the drive unit 140. 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 measurement values of the steering wheel sensor 150. The ECU 184 performs calculations and control to achieve 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 change the steering angle to the ECU 183. 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 work implement 300 to perform a desired operation. The ECU 185 also generates a signal to control the operation of the work implement 300 and transmits the signal from the communication IF 190 to the work implement 300. The ECU 186 controls the display of the operation terminal 200. For example, the ECU 186 realizes various displays on the display device of the operation terminal 200, such as a map of the farm field, detected crop rows or furrows, the position and target route of the agricultural machine 100 on the map, pop-up notifications, and setting screens. The ECU 187 controls the output of a warning sound by the buzzer 220.
[0241] 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 image recognition ECU 181 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.
[0242] The multiple ECUs included in the control device 180 can communicate with each other in accordance with a vehicle bus standard such as CAN (Controller Area Network). In FIG. 50, 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.
[0243] The communication IF 190 is a circuit that communicates with the communication IF 390 of the work implement 300. The communication IF 190 transmits and receives signals compliant with ISOBUS standards such as ISOBUS-TIM to and from the communication IF 390 of the work implement 300. This makes it possible to cause the work implement 300 to perform desired operations and to obtain information from the work implement 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 a farming support system that centrally manages information about farm fields on the cloud and supports agriculture by utilizing data on the cloud.
[0244] The operation terminal 200 is a terminal through which the operator 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, the operator 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 and 4WD, switching the differential lock on / off, and switching the work implement 300 on / off. At least some of these operations can also be realized by operating the operation switch group 210. The display on the operation terminal 200 is controlled by the ECU 186.
[0245] The buzzer 220 is an audio output device that emits a warning sound to alert the operator of an abnormality. For example, the buzzer 220 emits a warning sound when the agricultural machine 100 deviates from the target route by a predetermined distance or more during automatic steering operation. The buzzer 220 may emit a warning sound when the operator operates the start switch 112 to issue a command to start file-following traveling when file-following traveling is not possible. 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.
[0246] 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 appropriate for the intended use 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. The control device 380 can also transmit signals appropriate to the state of the work machine 300 from the communication IF 390 to the agricultural machine 100.
[0247] In the above embodiments, the agricultural machine 100 may be an unmanned work vehicle that performs automatic driving. In that case, components that are only required 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 embodiments by autonomous driving or by remote control by an operator.
[0248] A system providing various functions in the embodiments can also be retrofitted 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 on a computer-readable non-transitory storage medium. The computer program can also be provided by downloading via a telecommunications line (for example, the Internet). [Industrial Applicability]
[0249] The technology of the present disclosure can be applied to agricultural machinery such as riding tillers, vegetable transplanters, and tractors, for example. [Explanation of symbols]
[0250] 10···ground, 12···crop row, 14···intermediate area (work passage), 16···furrow, 40···image, 42···enhanced image, 44···top view image, 100···agricultural machinery, 110···vehicle body, 120···imaging device, 122···processing device, 1000···image recognition system
Claims
1. an image recognition system that detects row regions of at least one of crops and ridges provided on the ground of the field from the acquired image; a running device including a steering wheel; a control device that controls the traveling device; a start switch that commands the control device to control the traveling device so that the robot travels along the row area detected by the image recognition system; and Equipped with the control device determines whether or not a line-following traveling mode is possible based on the detection result of the image recognition system, and if the line-following traveling mode is possible, starts the line-following traveling mode in response to a command to start the line-following traveling mode by the start switch, and if the line-following traveling mode is not possible, does not start the line-following traveling mode even if a command to start the line-following traveling mode by the start switch is received, When the image recognition system detects the row area and detects a work passage area of a predetermined width or more on both sides or one side of the row area, the control device determines whether the steering wheel can pass through the work passage area based on the position of the steering wheel, and when it determines that the steering wheel can pass through the work passage area, it determines that the agricultural machine is in a state where it can perform row following travel.
2. The agricultural machine according to claim 1 , further comprising a notification unit that notifies an operator whether or not the following travel is possible.
3. 3. The agricultural machine according to claim 1, wherein the control device determines that the vehicle is in a state where it can follow the procession when an angle of the steering wheels relative to the procession area is equal to or smaller than a predetermined value.
4. Equipped with a mode switch to switch between automatic steering mode and manual steering mode, 3. The agricultural machine according to claim 1, wherein the control device permits start of follow-up traveling by the start switch when the automatic steering mode is selected by the mode switch.
5. The agricultural machine according to claim 4 , wherein the image recognition system starts an image recognition process for detecting the row region when the automatic steering mode is selected by the mode switch.
6. an image recognition system that detects at least one of a crop and a ridge on the ground of the field from the acquired image and determines a row area based on the detected at least one of the crop and the ridge; a running device including a steering wheel; a command member that commands the image recognition system to perform a calculation to determine the row region; a control device that performs line-following traveling by causing the traveling device to travel along the line area determined by the image recognition system; Equipped with when the command member issues a command to perform the calculation, the image recognition system selects an area of interest to be subjected to the calculation from the image, and starts a first process for detecting at least one of a crop and a ridge as the calculation before the following travel; When the image recognition system detects at least one of the crop and the ridge, it starts a second process for determining a row area in response to a command from an operator to start the row-following traveling, and makes the area of interest during the row-following traveling smaller than the area of interest before the row-following traveling.
7. The agricultural machine according to claim 6, wherein, when the command member is issuing a command to perform the calculation, the control device executes a process of determining whether or not the following-row traveling is possible based on at least one of the detected crops and ridges.
8. 7. The agricultural machine according to claim 6, wherein the image recognition system selects an area of interest to be subjected to image recognition processing, and sets the area of interest during the line-following traveling to be smaller than the area of interest before the line-following traveling.
9. The agricultural machine according to claim 6 , wherein the image recognition system, when the command member issues a command to perform the calculation, selects an area to be subjected to the calculation from the image and starts the calculation.
10. The agricultural machine according to claim 7, wherein the command member commands the start of the tracking travel in addition to commanding the calculation.
11. Equipped with a mode switch to switch between automatic steering mode and manual steering mode, 10. The agricultural machine according to claim 6, wherein the control device executes the contouring traveling when the automatic steering mode is selected by the mode switch and the calculation is instructed by the command member.
Citation Information
Patent Citations
Traveling control device
JP2016146061A
Work implement and control method of the same
JP2016208871A
Automatic harvesting system
JP2020124175A
Obstacle detection system
JP2021065115A