Abstract
This paper presents an innovative approach to agricultural management by integrating YOLOv5 for real-time detection and a modified SORT tracker for tracking two critical classes in agriculture: cabbage and weed. By deploying YOLOv5 on each video frame and updating the SORT tracker with current detections, we uniquely identify every cabbage and weed plant, allowing for precise monitoring and analysis. This method not only enables the collection of detailed data on the area covered by cabbage and weeds but also facilitates the calculation of free area, providing invaluable insights for optimizing crop management and reducing weed-related losses.