Under a greenhouse roof, the climate is managed, water is dosed, plants are aligned and light is partly controlled. Everything invites the installation of cameras: the scene is stable, rows are regular, and the same plants are found week after week. Computer vision in agriculture finds a favourable playground here, provided that a controlled environment is not mistaken for a simple one. Between glass reflections, condensation, artificial lighting and the density of the foliage, vision under cover has its own traps.
This article, the fourth use case in the series after the overview of the field, describes what the greenhouse changes for vision, the tasks entrusted to it, fixed and mobile sensors, a research challenge that put vision at the centre of crop management, and the needs that follow for annotation. It continues with water stress and precision irrigation by vision, where the image directly feeds a management decision.
Why the greenhouse attracts computer vision in agriculture
The greenhouse concentrates conditions favourable to automation. Crops are of high added value, such as tomato, cucumber, pepper, strawberry or ornamental plants. Margins justify investment in measurement, and gaps in quality or yield are costly. The crop runs over a long cycle, often several months, which makes it possible to follow the same plants over time and to build series. Labour is another driver. A greenhouse demands frequent monitoring: counting, measuring, spotting, harvesting, deleafing. These tasks are repetitive, demanding in attention, and weigh heavily in costs. Vision offers to assist them, or even to automate them. For a project in computer vision in agriculture, the greenhouse therefore offers a clear demand, a relatively controlled scene and the possibility of closing the loop between measurement and action, since climate, irrigation and fertilisation are already driven by controllers. One caveat, however: the greenhouse is not a laboratory. Plants grow fast there, overlap, and move as a result of deleafing and harvesting. Models trained on one crop, one variety or one greenhouse do not always transfer to others, and control of the environment does not remove the need to diversify data.What a greenhouse changes for vision
Three advantages stand out. The first is the stability of the scene: no direct weather, no rain, light that is more regular than in an open field, plants in well-defined rows. The second is repeatability: a fixed camera or a rail robot comes back to exactly the same place, which makes it possible to compare a plant with itself from one week to the next. The third is access to climate data: temperature, humidity, radiation and irrigation dose are recorded continuously and can be cross-referenced with images. These advantages have their counterpart. A greenhouse is a confined space, where standoff distance is limited: a camera cannot move away from the plants, tall crops overlap, and depth of field becomes critical. Glazed surfaces create reflections and a diffuse light that changes through the day. Humidity causes mist on lenses. And supplementary lighting, widespread in winter, changes the apparent colour of plants. These particularities make the greenhouse an intermediate case between the sorting line, very controlled, and the open field, very variable. It is a domain where performance gains come as much from preparing the scene as from the model. Hygiene adds a practical constraint. Greenhouse equipment moves between compartments, and anything that carries dust, spores or insects from one to another is unwelcome. Cameras and robots must be easy to clean and disinfect, cables must not trap debris, and any maintenance visit has to follow the farm protocol. These requirements shape the mechanical design as much as the optics, and they explain why a system that works in a research hall may need to be rebuilt before it is accepted in a production greenhouse.The difficulties of a computer vision in agriculture project under cover
The first difficulty is light. Grow lamps with LEDs, which often combine red and blue, give images a purplish cast. The colour cues used to judge ripeness or health condition are shifted. A model trained in natural light loses accuracy under artificial lighting, and the reverse. Teams that work all year round must therefore collect in both regimes, and record the lighting configuration for each image. The second is density. In a tall trained crop such as tomato or cucumber, leaves, stems, fruit and support wires tangle together. Occlusions are frequent, and a fruit is rarely seen in full. The third is height: plants grow up, the camera has to see from the bottom to the top of the plant, and the distance varies between the lower and upper levels. The fourth is the resemblance between useful objects and noise. A condensation spot, a residue of treatment product on leaves or a reflection on a waxy leaf imitates a symptom. The fifth is drift over time: a plant is not the same in January and in April, and a project in computer vision in agriculture under cover must take into account the continuous growth of the object it follows.Use cases under cover
Six families of tasks dominate. Counting organs, fruit, flowers, trusses, makes it possible to estimate load and plan harvest. Ripeness assessment, by colour and sometimes shape, guides picking time. Growth measurement, stem height, internode length, leaf area, informs on plant vigour and on the effect of climate. Pest monitoring relies on sticky traps photographed regularly, which vision makes it possible to count. Early detection of symptoms, mould, spots, wilting, triggers a localised intervention rather than a blanket treatment. Finally, robotic harvesting, which is the most demanding case, requires locating each ripe fruit in three dimensions, judging its accessibility and guiding a gripper without damaging it. For a project in computer vision in agriculture, management uses are added to these tasks: relating what cameras see to the climate and irrigation setpoint. The image becomes one more variable in crop management, alongside temperature, humidity and radiation sensors.Measuring growth in a computer vision in agriculture project: a worked example
Growth lends itself well to vision, because it is measured by repeating the same shot. Take an illustrative example: a tomato stem that lengthens by 20 centimetres per week, or about 28.6 millimetres per day. If the camera observes a scene in which one pixel represents 1 millimetre, daily growth corresponds to nearly 29 pixels. A measurement uncertainty of 2 pixels, due to image noise and the position of the marker, then represents 7% of the day growth. This error remains reasonable for weekly monitoring, but it would limit hourly monitoring: in one hour, the stem lengthens by only 1.2 millimetres, a little over one pixel, below the uncertainty. The calculation shows that the measurement frequency is not chosen independently of the resolution. It also shows that the annotation precision of the marker, for example the apex of the stem, matters as much as the quality of the model: if the annotator places the apex within plus or minus two pixels, the same noise is generated. For the project in computer vision in agriculture that measures growth, annotation therefore targets landmarks, apex, nodes, base of the fruit, rather than surfaces, and guidelines must define precisely the point to mark. They also specify how to handle a partly hidden landmark, because a point estimated without being seen introduces a systematic error.Monitoring pests by vision in a computer vision in agriculture project
Yellow or blue sticky traps, hung above crops, catch flying insects. Counting them manually is tedious, and counting frequency limits responsiveness. A camera that photographs the traps at regular intervals makes it possible to follow the evolution of the population and to trigger an intervention at the right time. The resolution calculation shows the constraint. A trap of 25 by 10 centimetres, photographed with one pixel for 0.1 millimetre, produces an image of 2,500 by 1,000 pixels, or 2.5 megapixels. An insect of 1.5 millimetres then occupies 15 pixels in length, which is enough to locate it and leaves little margin to distinguish two close species. Moving to 0.2 millimetre per pixel divides the number of pixels in the image by four but reduces the insect to about 7 pixels, at the limit of what an annotator and a model can decide. Annotating these images is particular. Insects overlap, some are partly stuck, plant debris or dust resembles insects. The guidelines must say how to count an insect cut by the edge of the trap, how to separate two individuals in contact and which classes to distinguish. For a computer vision in agriculture project, recognising species requires supervision by a specialist, because the intervention decision depends on identification, not only on the number.Growing remotely: the Wageningen challenge
One event shows how far vision under cover can go: the Autonomous Greenhouse Challenge, organised by Wageningen University in the Netherlands. In its fourth edition, the competition focused on dwarf tomatoes. Teams had to detect plants with vision and design control software able to run a real crop remotely, with goals of yield, quality, water and energy efficiency, and net profit. This edition added biological pest control decisions. According to the university announcement, 23 international teams took part in the online phase, with about 200 people, and five teams reached the greenhouse phase, each with a dedicated compartment at the Bleiswijk site. The growing period ran from 2 September to 15 December 2024, and the winner was to be announced in January 2025. The lesson for a project in computer vision in agriculture is twofold. On the one hand, vision is only one link in a chain that runs from the image to the management decision: detecting plants is not enough, the observation must be translated into a climate, irrigation or treatment setpoint. On the other hand, such a setup rests on annotated data representative of the crop, the variety and the conditions of the greenhouse, which is a reminder that automating crop management remains dependent on the quality of the labels that were used to train the models.Mobile and fixed sensors of a computer vision in agriculture project: rail robots and row cameras
Two architectures are found. Fixed cameras, placed at strategic points, always observe the same area. They produce a precise time series, but cover only a fraction of the greenhouse. Mobile sensors, cameras mounted on a rail trolley or on a robot that moves between rows, sweep the whole greenhouse, at the price of mechanics and navigation to maintain. An illustrative calculation gives the order of magnitude. A one-hectare greenhouse, with rows spaced 1.6 metres apart, has about 6,250 metres of row. A robot moving at 0.2 metre per second takes nearly 8 hours and 40 minutes to cover the whole. If an image is taken every 25 centimetres, one pass produces 25,000 images for one side, 50,000 for both sides of the row. Sampling one image in a hundred brings the number of images to annotate down to 500, a volume entirely manageable for a pilot. This example illustrates a principle: in a project in computer vision in agriculture, most of the value lies in the selection of images to annotate. The robot produces tens of thousands of images per pass, but the vast majority repeat the same scene. A selection rule based on diversity, stage, plant level, greenhouse zone and lighting is better than a uniform draw.Linking the image to climate and irrigation
The greenhouse allows a rare crossing between image and environmental measurement. Sensors record temperature, humidity, radiation, carbon dioxide and irrigation dose. Associating these data with the image makes it possible to study how the plant reacts to climate, and to adjust the setpoint accordingly. But the crossing demands discipline. Timestamps must be consistent between systems, which is not always the case when the camera, the climate controller and the management software come from different suppliers. The response times of the plant, from several hours to several days, forbid drawing conclusions from an instantaneous correlation. A project in computer vision in agriculture under cover does well to provide from the outset a database that associates each image with its climate, irrigation and intervention metadata. A simple analysis illustrates the point. If a plant responds to a change of setpoint after about six hours, comparing an image taken at the moment of the change with a measurement taken immediately afterwards will show nothing. The useful comparison lines up the image series with the climate series shifted by the response time, and that shift is itself something to measure, not to assume. Teams that skip this step often conclude that the image carries no information about climate, when in fact the two were simply read at the wrong moment. The next article in the series deals with a case in which this link is particularly clear: monitoring water stress by vision, whose aim is to adjust irrigation from what the plant shows.Building the dataset of a computer vision in agriculture project under cover
The stability of the greenhouse does not remove the need for diversity. A training set must cover several varieties, several stages, several plant levels, several conditions of natural and artificial light, and several greenhouses if the model is to be deployed elsewhere. A single greenhouse produces a model that assumes, without saying so, the same background, the same cables and the same reflections. Time series are an asset. Following the same plants over a whole cycle makes it possible to annotate at successive stages and to check that the model stays consistent over time. In return they require training and evaluation to be separated by plant or by row, and not by image, to prevent near-identical images from ending up on both sides. Finally, a dataset under cover must plan for the season. Winter plants, under supplementary lighting and with little natural light, do not look like summer ones. A model validated on one is not necessarily valid on the other, and collection must cover at least two seasons before concluding. A greenhouse is also a workplace. People pass through to deleaf, harvest or inspect, and their presence in the images raises a data protection question that is better handled before collection: informing the farm teams, pointing cameras at plants rather than at aisles, deciding whether images containing people are discarded, blurred or excluded from transfer. The choice must appear in the guidelines, so that annotators know what to do with a silhouette at the edge of the frame. Deleafing and harvesting raise another problem: they change the plant between two passes. A leaf annotated last week no longer exists, a fruit has been picked, a stem has been lowered along its support. A time series under cover is therefore not a sequence of images of the same object, but a sequence of images of a maintained plant. Tracking and measurement models must allow for this, and guidelines must specify how to treat removed organs, to avoid counting a disappearance as an anomaly.Annotating in a greenhouse: guidelines and ambiguities
In a project in computer vision in agriculture, greenhouse annotation guidelines must handle a few recurring situations. What is the ripeness criterion for a fruit: dominant colour, proportion of coloured surface, comparison with a reference chart? Is a truss an object or a set of fruit? How should a fruit half hidden by a leaf be treated, or a plant of which only the upper part is visible? How can a diseased leaf be distinguished from a leaf soiled by mist? The answer to each question depends on the use of the model. A robotic harvest model requires precise masks and accessibility indications, whereas a load estimation model is satisfied with boxes. A symptom detection model calls for supervision by a plant pathologist, because the difference between two close symptoms determines the intervention. The pilot annotated by several people is the tool that brings these ambiguities out before production. One last recommendation concerns metadata. A computer vision in agriculture project under cover must record for each image the greenhouse, the compartment, the date, the level, the stage, the lighting and the camera. Without this, it becomes impossible to explain a performance gap, for example why the model is wrong in one compartment and not in another.The role of an annotation provider
Greenhouse images are numerous, repetitive and demand strict consistency from one week to the next. They lend themselves well to an organisation in batches, with annotators trained in the criteria of the crop and a quality control that measures agreement between people. The provider brings this discipline, and leaves the agtech team to concentrate on the model and the management loop. Infoscribe AI works on this type of project with fully manual annotation, structured quality control, a tool hosted on its own infrastructure and an ISO 27001:2022 certified approach. Its annotation service for agriculture processes images of crops under cover, of traps and of plants, as well as time series. A pilot on a sample of your own images makes it possible to check throughput and quality before any commitment.Common mistakes in vision under cover
- Believing that a controlled environment removes the need to diversify data.
- Training under natural light and deploying under supplementary lighting, without re-evaluating.
- Choosing the measurement frequency without regard to resolution and noise.
- Annotating growth landmarks with a precision lower than the amplitude to be measured.
- Photographing traps at a resolution too low to distinguish species.
- Collecting in a single greenhouse and deploying elsewhere.
- Splitting training and evaluation by image rather than by plant or row.
- Neglecting mist, reflections and cleaning of lenses.
- Forgetting to associate each image with its climate and intervention metadata.
- Annotating a symptom without the opinion of a specialist, when the intervention depends on it.