# Hokkaido Agriculture Image Dataset: Grape, Wheat, Onion, Apple and Haskap Field Photos with COCO Detection and Segmentation Labels (Hokkaido University and Sony)

## Facts

- Provider: Hokkaido University and Sony Group Corporation
- License: CC-BY-4.0 (https://huggingface.co/datasets/Sony/Hokkaido_Agriculture_Image_Dataset)
- Size: 1,883 files
- Format: PNG, JSON, JPEG (in sampled files)
- Stored at: Hugging Face, https://huggingface.co/datasets/Sony/Hokkaido_Agriculture_Image_Dataset
- Access: public, readable without an account
- Category: Agriculture & Environment
- Source: https://huggingface.co/datasets/Sony/Hokkaido_Agriculture_Image_Dataset
- Page: https://scigantic.com/archive/b9b1b234-f954-5b39-9cb6-71dcd2f83201
- Keywords: Agriculture & Environment, image segmentation, PNG, JSON, JPEG, Hugging Face

## About

Field photographs of five crops grown on farms in Hokkaido, Japan, collected jointly by Hokkaido University (Vehicle Robotics Laboratory) and Sony Group Corporation for agricultural computer vision: crop counting, wheat heading detection and robotic harvesting and pruning. About 1,870 images cover wine grapes (1,061 images, with instance segmentation of grape bunches, branches, wires and cut points where a bunch joins the cane, plus a separate object detection set), wheat ears (255), onions (336), apples (171) and haskap honeysuckle berries and flowers (51). Photos span growth stages, weather, lighting and viewpoints, at resolutions from 640 x 480 up to 4896 x 3672. For grapes, apples and haskap only the foremost plant is annotated, so background fruit acts as negative samples. Each crop folder (grape_instance_segmentation, grape_object_detection, wheat, onion, apple, haskap) holds images/ (JPEG, PNG or BMP) and annotation/annotation_coco.json in COCO format, readable with pycocotools; the repository is about 8.9 GB. Useful for fruit detection, yield estimation, harvest point detection for picking robots and wheat head counting. Released by the authors under CC BY 4.0; credit Hokkaido University and Sony Group Corporation.

## Load the data

```python
from huggingface_hub import hf_hub_download
path = hf_hub_download(repo_id="Sony/Hokkaido_Agriculture_Image_Dataset", filename="Dataset_summary.png", repo_type="dataset")
print(path)
```

## Data structure

File types in sampled files: PNG, JSON, JPEG

Example file: `Dataset_summary.png`

## Open it

- In a hosted notebook with the data mounted: https://scigantic.com/archive/b9b1b234-f954-5b39-9cb6-71dcd2f83201
- Full record as JSON (schema card included): https://api.scigantic.com/api/archives/b9b1b234-f954-5b39-9cb6-71dcd2f83201
- Over MCP: `get_schema_card` with id `b9b1b234-f954-5b39-9cb6-71dcd2f83201` at https://api.scigantic.com/mcp

## Related topics

- [JSON datasets](https://scigantic.com/topics/json)
- [Image segmentation datasets](https://scigantic.com/topics/image-segmentation)
- [PNG datasets](https://scigantic.com/topics/png)
- [JPEG datasets](https://scigantic.com/topics/jpeg)
- [Agriculture & Environment datasets](https://scigantic.com/topics/agriculture-and-environment)
