📚 Course contents

AI & Computer Vision, lesson 28 of 52

Field Trip 1: Capturing Football Data on a Real Pitch

intermediate24 min readFull course

Introduction

Today the classroom becomes a football field. With your Field Collection Brief from lesson 15, your team sets up a laptop and webcam beside a real pitch and collects a dataset of players, the ball, goals and the empty pitch. The skill isn't just pressing record: it's noticing what's going wrong and fixing it while you're still there.

By the end of this trip you'll be able to:

  • Carry out a data collection plan they wrote themselves, in real conditions
  • Work in the roles from the field brief (Operator, Class Manager, Spotter, Logger and Reviewer)
  • Change camera positions to create several sessions per class
  • Use field_check.py to find what is missing while they are still at the field
  • Follow the consent and privacy rules they wrote (lesson 14)
  • Adapt when something goes wrong, and record what happened
  • Back up the data and write a short trip report

Working principle

The plan is the plan, until it isn't

The approved brief says what to do. At the field the sun, the wind and the players will change things. The skill today is to notice (the on-screen blur number, the accept rate, the log) and adjust (a different angle, a lower threshold, a break in the shade) while keeping the rules you wrote.

Sessions make the dataset useful

Each time you change the camera position, press N to start a new session. In lesson 13 we will keep whole sessions together in one split, so we need several sessions per class. A target of 80 ball frames from a single position is much less useful than 80 from four positions.

Check while you can still fix it

The most expensive discovery is "we have no goal photos" back in the classroom. So at the halfway point, and again at the end, the Logger runs field_check.py and the team reacts.

The consent rules from lesson 14 apply at the field. Signed forms for every child in frame. The camera points at the pitch and not the stands. If anyone objects, stop, delete their frames and move. Your teacher or team leader carries the list.

Field Trip 1: Capturing Football Data on a Real Pitch