Add sessions S01 and S03
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- README.md +135 -0
- data/train/S01/S01-000_galaxy-s23_20260915_141916.jpg +3 -0
- data/train/S01/S01-000_galaxy-s23_20260915_141930.jpg +3 -0
- data/train/S01/S01-000_iphone-8_IMG_1105.jpg +3 -0
- data/train/S01/S01-000_iphone-8_IMG_1106.jpg +3 -0
- data/train/S01/S01-001_galaxy-s23_20260915_142234.jpg +3 -0
- data/train/S01/S01-001_galaxy-s23_20260915_142239.jpg +3 -0
- data/train/S01/S01-001_iphone-8_IMG_1108.jpg +3 -0
- data/train/S01/S01-001_iphone-8_IMG_1109.jpg +3 -0
- data/train/S01/S01-002_galaxy-s23_20260915_142414.jpg +3 -0
- data/train/S01/S01-002_galaxy-s23_20260915_142424.jpg +3 -0
- data/train/S01/S01-002_iphone-8_IMG_1111.jpg +3 -0
- data/train/S01/S01-002_iphone-8_IMG_1112.jpg +3 -0
- data/train/S01/S01-003_galaxy-s23_20260915_143139.jpg +3 -0
- data/train/S01/S01-003_galaxy-s23_20260915_143149.jpg +3 -0
- data/train/S01/S01-003_iphone-8_IMG_1114.jpg +3 -0
- data/train/S01/S01-003_iphone-8_IMG_1115.jpg +3 -0
- data/train/S01/S01-004_galaxy-s23_20260915_143256.jpg +3 -0
- data/train/S01/S01-004_galaxy-s23_20260915_143258.jpg +3 -0
- data/train/S01/S01-004_iphone-8_IMG_1117.jpg +3 -0
- data/train/S01/S01-004_iphone-8_IMG_1118.jpg +3 -0
- data/train/S01/S01-005_galaxy-s23_20260915_143400.jpg +3 -0
- data/train/S01/S01-005_galaxy-s23_20260915_143402.jpg +3 -0
- data/train/S01/S01-005_iphone-8_IMG_1120.jpg +3 -0
- data/train/S01/S01-005_iphone-8_IMG_1121.jpg +3 -0
- data/train/S01/S01-006_galaxy-s23_20260915_143523.jpg +3 -0
- data/train/S01/S01-006_galaxy-s23_20260915_143527.jpg +3 -0
- data/train/S01/S01-006_iphone-8_IMG_1123.jpg +3 -0
- data/train/S01/S01-006_iphone-8_IMG_1124.jpg +3 -0
- data/train/S01/S01-007_galaxy-s23_20260915_143845.jpg +3 -0
- data/train/S01/S01-007_galaxy-s23_20260915_143848.jpg +3 -0
- data/train/S01/S01-007_iphone-8_IMG_1126.jpg +3 -0
- data/train/S01/S01-007_iphone-8_IMG_1127.jpg +3 -0
- data/train/S01/S01-008_galaxy-s23_20260915_151727.jpg +3 -0
- data/train/S01/S01-008_galaxy-s23_20260915_151730.jpg +3 -0
- data/train/S01/S01-008_iphone-8_IMG_1129.jpg +3 -0
- data/train/S01/S01-008_iphone-8_IMG_1130.jpg +3 -0
- data/train/S01/S01-016_galaxy-s23_20260916_124830.jpg +3 -0
- data/train/S01/S01-016_galaxy-s23_20260916_124834.jpg +3 -0
- data/train/S01/S01-016_iphone-8_IMG_1158.jpg +3 -0
- data/train/S01/S01-016_iphone-8_IMG_1159.jpg +3 -0
- data/train/S01/S01-017_galaxy-s23_20260916_125417.jpg +3 -0
- data/train/S01/S01-017_galaxy-s23_20260916_125419.jpg +3 -0
- data/train/S01/S01-017_iphone-8_IMG_1161.jpg +3 -0
- data/train/S01/S01-017_iphone-8_IMG_1162.jpg +3 -0
- data/train/S01/S01-018_galaxy-s23_20260916_131523.jpg +3 -0
- data/train/S01/S01-018_galaxy-s23_20260916_131529.jpg +3 -0
- data/train/S01/S01-018_iphone-8_IMG_1164.jpg +3 -0
- data/train/S01/S01-018_iphone-8_IMG_1165.jpg +3 -0
- data/train/S01/S01-019_galaxy-s23_20260916_133711.jpg +3 -0
README.md
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: corn1000 — counted cereal kernels on A4
|
| 3 |
+
license: cc-by-nc-4.0
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
size_categories:
|
| 7 |
+
- n<1K
|
| 8 |
+
tags:
|
| 9 |
+
- agriculture
|
| 10 |
+
- counting
|
| 11 |
+
- object-counting
|
| 12 |
+
- cereal
|
| 13 |
+
- grain
|
| 14 |
+
- thousand-kernel-weight
|
| 15 |
+
configs:
|
| 16 |
+
- config_name: default
|
| 17 |
+
data_files:
|
| 18 |
+
- split: train
|
| 19 |
+
path: data/train/**
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
+
# corn1000 — counted cereal kernels on A4
|
| 23 |
+
|
| 24 |
+
Photos of cereal kernels spread on a white A4 sheet, each labelled with the **exact number
|
| 25 |
+
of kernels** on the sheet. The dataset is built to train models that count kernels from a
|
| 26 |
+
single phone photo, as the first step of estimating the thousand-kernel weight
|
| 27 |
+
(TKW = mass ÷ count × 1000). A 1 % count error is a 1 % TKW error, so the collection
|
| 28 |
+
protocol is built around label correctness.
|
| 29 |
+
|
| 30 |
+
> **Status: work in progress.** Collection is ongoing; species, lots and the test split
|
| 31 |
+
> will be added. Built 2026-09-25 from 2 sessions.
|
| 32 |
+
|
| 33 |
+
## Contents
|
| 34 |
+
|
| 35 |
+
| | |
|
| 36 |
+
|---|---|
|
| 37 |
+
| Images | 402 |
|
| 38 |
+
| Arrangements (distinct kernel layouts) | 56 |
|
| 39 |
+
| Kernels per image | 225 – 787 |
|
| 40 |
+
| Splits | train: 402 |
|
| 41 |
+
|
| 42 |
+
| Session | Species | Lot | Light | Chaff | Cameras | Images | Arrangements | Kernels |
|
| 43 |
+
|---|---|---|---|---|---|---|---|---|
|
| 44 |
+
| S01 | rye-w | rye-w-A | desk | light | Galaxy S23, iPhone 8 | 96 | 24 | 274–787 |
|
| 45 |
+
| S03 | barley-w | barley-w-A | desk | light | Galaxy S23, SM-P610, iPhone 8 | 306 | 32 | 225–733 |
|
| 46 |
+
|
| 47 |
+
## Fields
|
| 48 |
+
|
| 49 |
+
| Column | Meaning |
|
| 50 |
+
|---|---|
|
| 51 |
+
| `image` | The photo. JPEG; see *Orientation* below. |
|
| 52 |
+
| `count` | Number of kernels on the sheet — the label. |
|
| 53 |
+
| `arrangement_id` | One physical layout of kernels (`<session>-<step>[-<take>]`). Every arrangement is photographed several times, see *Splitting*. |
|
| 54 |
+
| `session`, `step`, `take` | Session ID, card number within the session, and re-shoot number after a REDO. |
|
| 55 |
+
| `species` | `rye-w` winter rye, `durum-w` winter durum wheat, `barley-w` winter barley, `oats-s` spring oats, `wheat-w` winter soft wheat. |
|
| 56 |
+
| `lot` | Seed lot the kernels come from. |
|
| 57 |
+
| `light` | Lighting setup of the session (free text). |
|
| 58 |
+
| `chaff` | `none`, `light` or `heavy`: amount of chaff, awns and broken kernels mixed in. **Never counted.** |
|
| 59 |
+
| `camera` | Camera model from EXIF. |
|
| 60 |
+
| `taken_at` | Capture time from EXIF (camera clock, no time zone). |
|
| 61 |
+
| `weight_g` | Mass of the counted kernels in grams, only where they were weighed; else empty. |
|
| 62 |
+
| `tkw_g` | `weight_g ÷ count × 1000`, where `weight_g` exists. |
|
| 63 |
+
| `raw_file` | Path of the original raw file in this repo (`raw/…`) if the photo was shot as DNG; else empty. |
|
| 64 |
+
|
| 65 |
+
## How it was collected
|
| 66 |
+
|
| 67 |
+
Each session covers one species, one seed lot, one lighting setup and one chaff level, and
|
| 68 |
+
follows a pre-generated plan of about 30 steps. Each step is a printed card with a QR code
|
| 69 |
+
that states the new total and what to add or remove (`add 17`, `remove 12`,
|
| 70 |
+
`add 1 cup + 9`; cups hold a verified 50 kernels, each counted twice). For every card:
|
| 71 |
+
|
| 72 |
+
1. The pile is changed as the card says. Every few cards a **CHECK** card has the whole
|
| 73 |
+
pile recounted; a mismatch is recorded with an INVALIDATE card and corrected.
|
| 74 |
+
2. The card is photographed, then the kernels are spread by hand into a single layer
|
| 75 |
+
(touching allowed, no piles) and photographed about twice per phone: roughly top-down,
|
| 76 |
+
and tilted 20–30° or from another height. Several phones shoot every arrangement.
|
| 77 |
+
3. The pile is gathered again for the next card.
|
| 78 |
+
|
| 79 |
+
A script decodes the card photos and assigns their total to the photos that follow them.
|
| 80 |
+
It checks that every total follows from the previous one and the card's delta. A group
|
| 81 |
+
whose chain breaks (a skipped or unread card) stays *suspect* until the next CHECK, and
|
| 82 |
+
groups before an INVALIDATE are *invalidated*. **Only groups whose chain validated are in
|
| 83 |
+
this dataset**, after a review of every group by eye. Card photos and scale photos are not
|
| 84 |
+
included.
|
| 85 |
+
|
| 86 |
+
Counting follows ISO 520:2010: an intact kernel counts, including shrivelled and small
|
| 87 |
+
ones; barley and oats count with their husk; broken kernels, chaff, awns, weed seeds and
|
| 88 |
+
stones never count.
|
| 89 |
+
|
| 90 |
+
## Splitting
|
| 91 |
+
|
| 92 |
+
Images are **not independent**: every arrangement appears in 2–25 photos (several phones,
|
| 93 |
+
several angles), and consecutive arrangements of a session share most of their kernels.
|
| 94 |
+
Split by `lot`, or at least by `session`; never by image, and never by `arrangement_id`
|
| 95 |
+
alone.
|
| 96 |
+
|
| 97 |
+
The intended evaluation holds out winter soft wheat (`wheat-w`) entirely, plus at least one
|
| 98 |
+
lot of every training species. There is no `test` split yet: no held-out lot or species has been collected so far, so everything is in `train`.
|
| 99 |
+
|
| 100 |
+
## Loading
|
| 101 |
+
|
| 102 |
+
```python
|
| 103 |
+
from datasets import load_dataset
|
| 104 |
+
|
| 105 |
+
ds = load_dataset("SmartFarmingLab/corn1000")
|
| 106 |
+
```
|
| 107 |
+
|
| 108 |
+
**Orientation:** most JPEGs are stored sideways with an EXIF orientation tag, exactly as the
|
| 109 |
+
phones wrote them. `datasets`, browsers and `cv2.imread` apply the tag; plain
|
| 110 |
+
`PIL.Image.open` does not — call `PIL.ImageOps.exif_transpose` after it.
|
| 111 |
+
|
| 112 |
+
**Raw photos:** some phones shot DNG. For those, the image in `data/` was developed with
|
| 113 |
+
LibRaw (rawpy, camera white balance, full resolution, JPEG quality 95). The originals are in
|
| 114 |
+
`raw/`, linked by `raw_file`. Colours of developed DNGs differ from the phones' own JPEG
|
| 115 |
+
processing.
|
| 116 |
+
|
| 117 |
+
## Known limitations
|
| 118 |
+
|
| 119 |
+
- Only the species and lots in the table above so far.
|
| 120 |
+
- Some sessions contain chaff and broken kernels (`chaff` ≠ `none`). They are visible in the
|
| 121 |
+
photos and deliberately not part of the count.
|
| 122 |
+
- The background around the sheet, paper, lighting and phones vary between sessions, but not
|
| 123 |
+
systematically; some photos show printed square markers or paper clips on the sheet.
|
| 124 |
+
- `weight_g` is only filled in for weighed CHECK groups and is typed in by hand from a photo
|
| 125 |
+
of the scale display.
|
| 126 |
+
|
| 127 |
+
## License
|
| 128 |
+
|
| 129 |
+
[CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/): free to use and adapt for
|
| 130 |
+
non-commercial purposes with attribution. For commercial use, contact the Smart Farming Lab
|
| 131 |
+
(Universität Leipzig).
|
| 132 |
+
|
| 133 |
+
## Citation
|
| 134 |
+
|
| 135 |
+
No publication yet. <!-- TODO: add BibTeX once the paper or a DOI exists. -->
|
data/train/S01/S01-000_galaxy-s23_20260915_141916.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-000_galaxy-s23_20260915_141930.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-000_iphone-8_IMG_1105.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-000_iphone-8_IMG_1106.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-001_galaxy-s23_20260915_142234.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-001_galaxy-s23_20260915_142239.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-001_iphone-8_IMG_1108.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-001_iphone-8_IMG_1109.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-002_galaxy-s23_20260915_142414.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-002_galaxy-s23_20260915_142424.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-002_iphone-8_IMG_1111.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-002_iphone-8_IMG_1112.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-003_galaxy-s23_20260915_143139.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-003_galaxy-s23_20260915_143149.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-003_iphone-8_IMG_1114.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-003_iphone-8_IMG_1115.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-004_galaxy-s23_20260915_143256.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-004_galaxy-s23_20260915_143258.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-004_iphone-8_IMG_1117.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-004_iphone-8_IMG_1118.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-005_galaxy-s23_20260915_143400.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-005_galaxy-s23_20260915_143402.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-005_iphone-8_IMG_1120.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-005_iphone-8_IMG_1121.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-006_galaxy-s23_20260915_143523.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-006_galaxy-s23_20260915_143527.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-006_iphone-8_IMG_1123.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-006_iphone-8_IMG_1124.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-007_galaxy-s23_20260915_143845.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-007_galaxy-s23_20260915_143848.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-007_iphone-8_IMG_1126.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-007_iphone-8_IMG_1127.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-008_galaxy-s23_20260915_151727.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-008_galaxy-s23_20260915_151730.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-008_iphone-8_IMG_1129.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-008_iphone-8_IMG_1130.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-016_galaxy-s23_20260916_124830.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-016_galaxy-s23_20260916_124834.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-016_iphone-8_IMG_1158.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-016_iphone-8_IMG_1159.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-017_galaxy-s23_20260916_125417.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-017_galaxy-s23_20260916_125419.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-017_iphone-8_IMG_1161.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-017_iphone-8_IMG_1162.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-018_galaxy-s23_20260916_131523.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-018_galaxy-s23_20260916_131529.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-018_iphone-8_IMG_1164.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-018_iphone-8_IMG_1165.jpg
ADDED
|
Git LFS Details
|
data/train/S01/S01-019_galaxy-s23_20260916_133711.jpg
ADDED
|
Git LFS Details
|