Next Article in Journal
Molecular Regulatory Networks Underlying Root Growth and Development in Crested Wheatgrass (Agropyron cristatum L.)
Previous Article in Journal
The Use of Food Industry By-Products in Pig Diets as a Challenge Option to Reduce the Environmental Footprint
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
This is an early access version, the complete PDF, HTML, and XML versions will be available soon.
Article

A Visual Intelligent Approach to Recognize Corn Row and Spacing for Precise Spraying

by
Yuting Zhang
1,
Zihang Liu
1,
Xiangdong Guo
2,* and
Guifa Teng
1,3,4,*
1
College of Information Science and Technology, Hebei Agricultural University, Baoding 071001, China
2
School of Software, Shanxi Agricultural University, No. 1 Mingxian South Road, Taigu District, Jinzhong 030801, China
3
Hebei Key Laboratory of Agricultural Big Data, No. 289 Lingyusi Street, Lianchi District, Baoding 071001, China
4
Hebei Digital Agriculture Industry Technology Research Institute, Shijiazhuang 056400, China
*
Authors to whom correspondence should be addressed.
Agriculture 2025, 15(22), 2389; https://doi.org/10.3390/agriculture15222389 (registering DOI)
Submission received: 16 October 2025 / Revised: 17 November 2025 / Accepted: 18 November 2025 / Published: 19 November 2025
(This article belongs to the Section Artificial Intelligence and Digital Agriculture)

Abstract

Precision spraying is a crucial goal for modern agriculture to achieve water and fertilizer conservation, reduced pesticide use, high yield, and green and sustainable development. This relies on the accurate identification of crop positions, high-precision path planning, and the positioning and control of intelligent agricultural machinery. For the precision production of corn, this paper proposes a new row detection method based on histogram peak detection and sliding window search, avoiding the issues of deep learning methods that are not conducive to lightweight deployment and large-scale promotion. Firstly, green channel segmentation and morphological operations are performed on high-resolution drone images to extract regions of interest (ROIs). Then, the ROIs are converted to a top-view image using perspective transformation, and a histogram analysis is performed using the find_peaks function to detect multiple peaks corresponding to row positions. Furthermore, a sliding window centered around the peak is constructed to search for complete single-row crop pixels in the vertical direction. Finally, the least squares method is used to fit the row curve, estimating the average row spacing (RowGap) and plant spacing (PlantGap) separately. The experimental results show that the accuracy of row detection reaches 93.8% ± 2.1% (n = 60), with a recall rate of 91.5% ± 1.8% and an F1 score of 0.925 ± 0.018. Under different growth stages, row numbers (6–8 rows), and weed interference conditions, the average row spacing measurement error is better than ±2.5 cm, and the plant spacing error is less than ±3.0 cm. Through field verification, this method reduces pesticide use by 23.6% and water consumption by 21.4% compared to traditional uniform spraying, providing important parameter support for field precision planting quality assessment and the dynamic monitoring of planting density, achieving variable irrigation and fertilization and water resource conservation.
Keywords: row line detection; plant spacing measurement; peak detection; sliding window; least squares method row line detection; plant spacing measurement; peak detection; sliding window; least squares method

Share and Cite

MDPI and ACS Style

Zhang, Y.; Liu, Z.; Guo, X.; Teng, G. A Visual Intelligent Approach to Recognize Corn Row and Spacing for Precise Spraying. Agriculture 2025, 15, 2389. https://doi.org/10.3390/agriculture15222389

AMA Style

Zhang Y, Liu Z, Guo X, Teng G. A Visual Intelligent Approach to Recognize Corn Row and Spacing for Precise Spraying. Agriculture. 2025; 15(22):2389. https://doi.org/10.3390/agriculture15222389

Chicago/Turabian Style

Zhang, Yuting, Zihang Liu, Xiangdong Guo, and Guifa Teng. 2025. "A Visual Intelligent Approach to Recognize Corn Row and Spacing for Precise Spraying" Agriculture 15, no. 22: 2389. https://doi.org/10.3390/agriculture15222389

APA Style

Zhang, Y., Liu, Z., Guo, X., & Teng, G. (2025). A Visual Intelligent Approach to Recognize Corn Row and Spacing for Precise Spraying. Agriculture, 15(22), 2389. https://doi.org/10.3390/agriculture15222389

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop