> For the complete documentation index, see [llms.txt](https://docs.unitlab.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.unitlab.ai/solutions/industry-solutions-guides/agriculture.md). Agents can also search and read this documentation through its [MCP server](https://docs.unitlab.ai/~gitbook/mcp).

# Agriculture

Map center-pivot fields in Sentinel-2 imagery, read crop vigor with NDVI, and count fruit and livestock in field photos.

Agronomy, insurance and farm-robotics teams use Unitlab to map fields from satellite imagery and to count fruit and animals in photos taken on the ground.

<figure><img src="https://2337177515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi6jXAxtoN6UXTLAJFexq%2Fuploads%2FIVEL8nZAw7cPrl9n5ONz%2Fsol-agri-center-pivots.webp?alt=media" alt="Sentinel-2 image of Kansas farmland with more than 160 circular center-pivot fields outlined, each labeled Green crop or Harvested or bare and Full circle" width="800"><figcaption><p>162 fields in western Kansas, each with its crop state and coverage.</p></figcaption></figure>

## Map center-pivot fields from satellite imagery

**Data:** Sentinel-2 GeoTIFF (red, green, blue and near-infrared bands) · **Tools:** Polygon, Auto-labeling with a text prompt, Spectral View · **Ontology:** Center-pivot field (properties: Crop state = Green crop / Senescing / Harvested or bare, Coverage = Full circle / Partial circle), Rectangular field, Farmstead

Center-pivot irrigation leaves round fields that are easy to see from space. Counting them by crop state shows how much irrigated land is planted at a given date.

1. Upload the multiband GeoTIFF. Unitlab keeps its map coordinates, so every polygon is exported in the image's coordinate system.
2. Run auto-labeling with the prompt **circle** to propose field outlines. In this example the model found most fields, and the rest were added by hand.
3. Check each outline. Fix edges with the Polygon tools and delete proposals that are not fields.
4. Set **Crop state** and **Coverage** on each field.
5. Export as GeoJSON to load the fields in a GIS tool.

### Read crop vigor with NDVI

<figure><img src="https://2337177515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi6jXAxtoN6UXTLAJFexq%2Fuploads%2FcrPNEbn8APV7PYrquVsc%2Fsol-agri-ndvi-index.webp?alt=media" alt="The same Kansas fields rendered as a custom normalized-difference index of NIR and Red with a red-yellow-green ramp, next to the Spectral View settings" width="800"><figcaption><p>A normalized difference of NIR and Red makes growing crops green and bare soil red.</p></figcaption></figure>

Open **View settings → Spectral View**, choose **Index**, and set **Band A** to NIR and **Band B** to Red. Pick the **Red–Yellow–Green** ramp and a range of 0 to 0.7. Harvested fields turn red, so their **Crop state** is quick to confirm. The display changes only; your labels and the source pixels stay the same.

## Count fruit in orchard photos

**Data:** close-up orchard photos · **Tools:** Polygon, Auto select · **Ontology:** Apple (properties: Ripeness = Unripe / Ripening / Ripe, Visibility = Fully visible / Partly occluded)

<figure><img src="https://2337177515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi6jXAxtoN6UXTLAJFexq%2Fuploads%2FzGKiXBYJndBrEcBYVAbP%2Fsol-agri-orchard-apples.webp?alt=media" alt="Apples on a branch outlined with polygons and labeled by ripeness and visibility, with 17 objects in the list" width="800"><figcaption><p>Every apple is outlined, including the ones half hidden by leaves.</p></figcaption></figure>

1. Click an apple with **Auto select** to get its outline, then refine the edge if leaves cut into it.
2. Set **Ripeness** and **Visibility**. Occluded fruit stays in the count, so yield estimates do not miss it.
3. Use the object count per photo as the ground truth for a yield model or a harvesting robot.

## Count livestock in pasture photos

**Data:** pasture photos · **Tools:** Bounding box · **Ontology:** Sheep (property: Posture = Grazing / Standing / Lying)

<figure><img src="https://2337177515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi6jXAxtoN6UXTLAJFexq%2Fuploads%2Fm8cicvmJLfKEsjZxWcLF%2Fsol-agri-pasture-sheep.webp?alt=media" alt="Sheep on a hillside pasture with boxes on every animal, near and far, and posture labels such as Grazing and Standing" width="800"><figcaption><p>Small, distant animals get boxes too, so the count stays complete.</p></figcaption></figure>

Box every animal, including small ones near the horizon, and set **Posture** on the animals large enough to judge. The boxes train herd counting from drones or fixed cameras, and the posture label helps flag animals that stop grazing.

***

<sup>Satellite image: contains modified Copernicus Sentinel-2 data (2024). Orchard photo by Jevgenijs Slihto and pasture photo by ricardo, via Open Images, CC BY 2.0.</sup>
