Datasets:
image
imagewidth (px) 480
480
|
---|
Croppie training dataset Β© 2024 by Alliance Bioversity & CIAT, Producers Direct and M-Omulimisa is licensed under CC BY-SA 4.0
Croppie training datasets
General information
Croppie dataset for machine-vision assisted coffee cherry detection. The dataset is made of a mix of Arabica and Robusta coffee tree parts (with and without a background isolation element) with individual bounding boxes around all coffee cherries.
The original dataset is composed of 633 images with about 61 050 unique bounding boxes over coffee cherries in YOLO format. This original dataset has been processed to cut-down all images into 480 x 640 size pieces and the full original image downscaled to 480 x 640. We provide the processed dataset with Python scripts that allow easy visualization of the annotated dataset.
Coffee cherries of more than 10mm (following the longitudinal axis) are annotated according to their color:
- green
- yellow
- red
- dark brown (overripe/dry cherries)
- an extra class indicates low visibility/unsure label appreciation.
Here is an example of an annotated image:
Data structure
This repository has the following structure:
.
βββ annotation_guide.html # original annotation instructions
βββ classes.json # json to convert numerical classes into the cherry type
βββ data
β βββ train.zip
β βββ val.zip
βββ images
β βββ annotated_1688033955437.jpg
β βββ train_counts.png
β βββ val_counts.png
βββ README.md
βββ scripts # script for easy visualization of the annotated data
βββ label_training_images.py
βββ requirements.txt
Dataset information
Each numerical class corresponds to the following cherry type:
{0: "dark_brown_cherry", 1: "green_cherry", 2: "low_visibility_unsure", 3: "red_cherry", 4: "yellow_cherry"}
train
:- Training dataset
- 5 836 annotated images
- YOLO format
val
:- Validation dataset
- 2 497 annotated images
- YOLO format
annotation_guide.html
: instructions provided to label the images for cherry detection
Scripts
The script label_training_images.py
allows to label the images of the datasets and saves them in a folder ./_labelled_dataset_images
.
Assuming you are in the scripts
folder, first
run pip3 install -r requirements.txt
if required package are not installed. After that, simply run
python3 label_training_images.py
License
Croppie training dataset Β© 2024 by Alliance Bioversity & CIAT, Producers Direct and M-Omulimisa is licensed under CC BY-SA 4.0
- Downloads last month
- 2