UAT 456 Artificial Intelligence, Machine Learning and Computer Vision for UAS
Worksheet 1 Preparing a drone image dataset for training
Objective
Define the data scope and labelling policy, split by group, write a datasheet, tile, balance colour and augment data while keeping boxes correct
Equipment and materials
- Sample drone images provided by the department with usage rights
- CVAT for labelling
- Computer with Python, numpy, opencv, scikit-learn, scipy and the example code at /downloads/uat-456/
- Datasheet template
Safety
- Desk work at a computer; no flying
- Blur or crop identifiable people before sharing, and keep data only on department storage
- Use only images you have the right to use, and record their source
Steps
- Write a one-page data scope and labelling policy
- Label 30 images in CVAT, two people separately, and compare agreement
- Split the data by date or paddock and write a datasheet following the headings of Gebru et al.
- Compute object size in pixels and the tile count with Example 1, then cut the tiles
- Try gray-world balance on morning and midday images with Example 2 and explain when it fails
- Write flip and rotate functions that transform boxes, and test them with the method in Example 3
Record of results
| Image or object | Box by A (x1, y1, x2, y2) | Box by B | IoU | Class by A / B |
|---|---|---|---|---|
| Camera or image set | GSD (cm/px) | Object size (px) | Tile / overlap (px) | Tiles (nx × ny) | Pixels processed ratio |
|---|---|---|---|---|---|
| Transform | Box from the formula | Box from the really transformed image | Match? |
|---|---|---|---|
Questions
From Table 1, how far is your kappa from the raw percentage agreement, why, and which rule should the labelling policy gain before more images are labelled?
If your camera flies lower so the GSD is 1.5 cm, is a 128-pixel overlap still enough for a 2.0 m cow, and what is the smallest overlap you must set?
In your gray-world trial, which images got the wrong colour after balancing, why, and how should the team handle colour at capture time instead?
Why must your group split the data by date or paddock, and from which set must the mean and standard deviation for standardisation be computed?
Check before you hand in
What to hand in
- Data scope and labelling policy
- Annotator agreement result
- Datasheet
- Tile calculations and box-transform test results