A field is not a production line. Plants grow at their own pace, the light changes by the hour, soil, leaves and shadows blend into one another, and the same object, a wheat leaf, a grape, a weed, never looks the same twice. Yet this is the setting in which machine vision is expected to count, measure, sort and diagnose. Computer vision in agriculture has taken shape over about fifteen years around a few simple ideas: a well-placed camera sees what no human eye can monitor at scale, and a model trained on reliable examples turns that image into an agronomic decision.
This article opens a series of fifteen texts. It sets the frame: what the field is, which sensors and tasks make it up, why it differs from urban or industrial projects, how the data chain is built and how to judge a model. The following articles go deeper into each point, starting with on-board cameras on farm machinery, then sorting and grading after harvest.
What computer vision in agriculture covers
Computer vision in agriculture groups all the applications in which a still or moving image is analysed automatically to make a decision or produce a measurement on a farm, in an orchard, a greenhouse, a livestock building or a packing station. The scope is deliberately broad, because uses extend from the plot to the plate. First come field applications: locating weeds for targeted treatment, monitoring the health of foliage, estimating the growth stage, counting fruit and bunches, measuring emergence density. Next come applications under cover, where the greenhouse offers a more stable environment but brings its own lighting and humidity difficulties. Livestock applications track animals, their posture, their movements, their feeding behaviour. Finally, after harvest, sorting and grading lines assess the colour, size and defects of each fruit or vegetable. What links these uses lies less in the technology than in the nature of the observed object: a living organism, variable, whose appearance depends on species, variety, stage, season, soil, weather and farming practices. A project in computer vision in agriculture therefore faces from the start a variability that more standardised fields ignore. A weld defect follows a specification; a spot on a leaf depends on the plant, the light and the time of the shot.The sensors and platforms behind computer vision in agriculture
The first decision in any project in computer vision in agriculture concerns how images are acquired. Five platforms dominate. Cameras mounted on machines, fixed to a sprayer, a tractor, a combine or a weeding tool, observe the soil or the crop at working speed. They produce a continuous stream at high spatial resolution, but are subject to vibration, dust and changes in light. One article in the series is devoted to them. Unmanned aircraft fly over the plot at low altitude and cover several hectares per flight. They give an overview of the plot, useful for mapping heterogeneity, but ground resolution is lower than that of a camera mounted on a tool. Resolution is the quantity that settles most platform choices. For a drone, the ground sampling distance follows from the flight altitude, the pixel size of the sensor and the focal length of the lens. With a 5 micrometre pixel, an 8.8 millimetre lens and a flight at 30 metres, each pixel covers about 17 millimetres of ground. A weed 5 centimetres wide then occupies around three pixels across, which is enough to see that something is there and not enough to tell two young species apart. Flying lower improves the resolution but reduces the area covered per battery, so the platform is chosen from the size of the smallest object that the decision requires. This calculation is an illustration, not a specification. Satellites provide regular coverage at large scale, with resolutions from tens of metres to a metre depending on the constellation. They suit monitoring of extended areas, rarely the identification of an individual plant. Fixed cameras equip greenhouses, livestock buildings, watering points or packing lines. They observe a stable scene, which simplifies lighting and calibration, and allow the same object to be followed over time. Finally, handheld devices, notably phones, are used to collect reference images, photograph symptoms or build datasets with the help of farmers. Their variability is high, but their acquisition cost is low. Beside the colour camera, other sensors complete the image: near infrared, multispectral, thermal, depth cameras, sometimes hyperspectral. The choice depends on what one wants to see. A deficiency or water stress shows up in the infrared before it is visible to the eye; a stem is easier to separate in depth than in colour.The six vision tasks at the core of the field
Whatever the sensor, tasks fall into six families. Classification assigns a label to a whole image: healthy or diseased leaf, compliant or rejected fruit. Detection locates objects with boxes: fruit, bunches, animals, crop plants. Semantic segmentation labels every pixel, for example soil, crop, weed. Instance segmentation separates individuals within the same class, which makes it possible to count overlapping leaves. Tracking links the same object from one image to the next, necessary to avoid counting the same bunch twice. Measurement, finally, extracts a quantity such as a leaf area, a size grade or a height. The choice of task conditions the cost and complexity of annotation. A box around a fruit takes a few seconds to draw; a precise mask of a serrated leaf takes much longer. The decision should start from the agronomic question: a grower who wants to know whether to treat does not need the exact outline of every leaf, whereas a model that estimates leaf area does.The main use cases of computer vision in agriculture
A few use cases structure the field, and each is the subject of an article in the series. The first is targeted treatment. Cameras mounted on a sprayer boom locate weeds and command the opening of individual nozzles, so that product is applied only where needed. According to a John Deere news release dated 4 November 2025, relayed by the trade press, See & Spray technology was used on more than five million acres in 2025, with an average reduction of nearly 50% in non-residual herbicide use among customers, and a system able to scan more than 2,500 square feet per second at speeds up to 15 miles per hour. This figure is reported by the manufacturer and measures an aggregate result across varied farms; it shows the order of magnitude of the gains, not a guarantee for a given plot. The second is health monitoring: spotting foliar symptoms early to trigger a localised intervention rather than a blanket treatment. The third is counting and yield estimation, in orchards and vineyards alike. The fourth is the sorting and grading of harvested produce. The fifth is greenhouse management, which combines growth measurement, ripeness detection and pest monitoring. The sixth is livestock, where vision partly replaces direct observation to detect lameness, abnormal behaviour or a change of posture. To these uses are added cross-cutting subjects: irrigation management, the robustness of models from one season or region to another, operation without a network at the edge of a field, the cost of a project and the reasons why many fail. They are covered in dedicated articles.Why a computer vision in agriculture project differs from an urban one
An autonomous driving model learns to recognise cars, pedestrians and signs, rigid objects with standardised shapes. A project in computer vision in agriculture handles soft objects that grow, deform and overlap. Five characteristics set it apart. The first is seasonality. An annual crop offers a single observation window per year for a given stage. If a model must recognise three growth stages in four plots, under two lighting conditions, that makes 3 × 4 × 2, or 24 situations to cover. With 150 images per situation, the starting set holds 3,600 images, and every missed situation waits for the next season. A project that starts after sowing can lose a year. The second is acquisition variability. Low morning sun, midday, an overcast sky and backlighting produce very different images of the same plant. Cast shadows from machines, dust and dew add disturbances. The third is class ambiguity. A young weed and a young crop plant of the same family look alike; early water stress resembles early deficiency. The boundary between two classes is often gradual, and the labelling decision calls on agronomic knowledge. The fourth is the slowness of ground truth. To confirm that a spot was indeed a disease, one must wait for its evolution; to know whether a count was right, one must wait for the harvest. Feedback loops are long, which slows the improvement of the model. The fifth is geographic dispersion. A crop is not managed the same way from one region to another, and a model trained in one soil and climate context often performs worse in another. One article in the series addresses this robustness.The data chain in a computer vision in agriculture project
The chain of a computer vision in agriculture project has six steps. Collection organises acquisition by taking into account stages, varieties, plots and lighting conditions. Triage discards unusable, blurred or redundant images and keeps those that cover the expected diversity. Annotation turns images into training examples, according to written guidelines. Training produces a model, evaluated on data held out. Deployment installs the model on the machine, the camera or the server. The feedback loop, finally, reinjects into the dataset the cases in which the model was wrong. Metadata deserves as much care as the images. Each image should travel with its date and time, its position, the plot and crop identifiers, the growth stage when known, the camera and lens settings, and the platform that took it. Without this information, it becomes impossible to balance a dataset across conditions, to find out why a model fails on a given plot, or to reproduce an evaluation. Teams that record metadata from the first flight or the first pass save weeks of reconstruction later, and can answer the question that every client eventually asks: on which conditions was this model actually validated? Each step can compromise the next. A collection concentrated on a single plot will produce a model that does not generalise. Annotation without precise guidelines will produce contradictory labels. An evaluation set drawn from the same plots as the training set will give a flattering accuracy that will not be found in the field. Experienced teams treat the chain as a whole and invest first in the quality of the data.Measuring a computer vision in agriculture model by the decision it informs
The classic indicators of machine vision, precision, recall, intersection over union, counting error, only make sense once linked to the agronomic decision. Take an illustrative numerical example. On a plot containing 1,000 weeds, a system correctly locates 900 and flags 1,000 in total, of which 100 wrongly. Its recall is 90% and its precision 90%. Concretely, 100 weeds are not treated, and 100 areas are sprayed needlessly. These two errors do not carry the same cost. A missed weed leaves competition for the crop; a needless spray consumes product and may damage a healthy plant. Depending on the crop, the weed pressure and the sensitivity of the plant, the balance between recall and precision is set differently, through the confidence threshold of the model. This is why a well-run project in computer vision in agriculture first defines the cost of each type of error, then sets the threshold accordingly, rather than looking for the best average on a test set. A second precaution concerns the evaluation set. It must reflect deployment conditions: plots different from those used in training, different seasons, different cameras if possible. A high score on images drawn from the same shooting session says nothing about performance in the field.Annotated data, the limiting factor of the field
The most quoted example of this trap is the PlantVillage dataset, which gathers 54,306 leaf images in 38 classes, covering 14 crop species and 26 diseases. In the study by Mohanty and colleagues, a network trained on this set reaches 99.35% accuracy on a held-out test batch. The same model, evaluated on 121 images found online and taken under other conditions, falls to 31.4%, where chance would give about 2.6%. A later analysis showed that the dataset contains a bias: a random forest classifier that sees only eight background pixels, less than 0.1% of the background, reaches 49.0% accuracy across the 38 classes. The model can therefore learn the shooting conditions rather than the disease. The practical lesson is twofold. First, a high score on a homogeneous dataset proves nothing about field performance. Second, the quality of training sets depends on their real diversity and on the rigour of their labels, two dimensions that only annotation framed by precise guidelines and structured quality control can guarantee. In a project in computer vision in agriculture, the budget devoted to annotated data is often the most profitable item.What vision contributes, and what it does not replace
Machine vision is not a substitute for agronomy. A model recognises visual patterns; it does not know why a plant is yellowing, or whether it is better to intervene today or wait for the forecast rain. The most effective teams working in computer vision in agriculture therefore pair the model with agronomic reasoning: the image provides a fine, repeated observation, and the agronomist or grower decides. What vision contributes comes down to three words: scale, consistency, traceability. It observes continuously areas that no team could walk every week. It applies the same criterion to the first and the last image of the day, without fatigue. It leaves a dated and geolocated record that can be revisited to compare two seasons or document an intervention. Its limits are just as clear. It sees only the visible surface: a root disease, a water deficit at depth or an early deficiency can be read only indirectly. It depends on light and on the cleanliness of the optics. It assumes that someone has defined the classes, and that these definitions hold from one plot to the next. Finally, a model has no notion of what is unknown to it: faced with a plant it has never seen, it proposes an erroneous label with the same confidence. These limits set the place of the human in the loop. Checking a sample of predictions, reviewing low-confidence cases and regularly updating the training set are components of the system, not options. A setup that promises to do away with supervision altogether underestimates the variability of living things.How to approach a first computer vision in agriculture project
A first project benefits from staying modest and following a precise order. One begins by stating the decision to be informed, with its cost of error. One then chooses the suitable acquisition platform, on-board camera, drone flight, fixed camera, according to the resolution required. Collection is planned around the crop calendar, reserving the critical windows. Annotation guidelines are written with an agronomist, a small pilot batch is annotated, agreement between annotators is measured, a first model is trained, it is evaluated on plots held out, and corrections follow. The pilot step is decisive: a sample of a few hundred annotated and checked images is generally enough to reveal ambiguous classes, borderline cases and gaps in collection, before a significant budget is committed. Projects that skip this step discover their problems the following season.The role of an annotation provider
Many agtech teams and research departments prefer to concentrate their engineers on models and entrust annotation to a specialised provider. The decisive criterion is not raw speed but the ability to apply agronomic guidelines consistently, to document borderline cases and to measure quality. Infoscribe AI works on this type of project with fully manual annotation, structured quality control, an annotation tool hosted on its own infrastructure and an ISO 27001:2022 certified approach, under French management. Its annotation service for agriculture covers ground-level, aerial and satellite images, as well as point clouds. The criteria for choosing a provider depend on each project; a pilot on a sample of your own images remains the best way to check them.Common mistakes
- Starting collection without a crop calendar, and missing the decisive stages of the season.
- Concentrating images on one or two plots, then being surprised by the drop in performance elsewhere.
- Evaluating the model on images from the same sessions as the training set.
- Choosing the finest annotation as a precaution, with no link to the decision to be informed.
- Writing guidelines without an agronomist, and defining classes by adjectives rather than observable criteria.
- Setting the decision threshold on the best average rather than on the real cost of each error.
- Ignoring lighting conditions, shadows, backlighting, dew, when planning collection.
- Neglecting the feedback loop, and not reinjecting field errors into the training set.
- Confusing a score on a homogeneous public dataset with field performance.
- Underestimating the length of ground-truth loops, from disease to harvest.