Processing Video Files

Prepare video processing directory

Place trackHead.py into a folder that contains the timestamps.csv and .mpg files that you want processed

Execute tracking script from the command line

  1. Open a terminal window
  2. Switch into your trackingEnv if you are not already in it
  3. cd into your video processing directory
  4. Run the trackHead.py script by entering the following:
python trackHead.py

Resulting Output

Annotated footage

All of the separate .mpg files will be combined into a single .mp4 that contains 3 frames stiched together.

../_images/mp4_output.png

The left frame is the original video footage. The center frame shows the pixels that remain after filtering for red and blue. The right frame places circlular marks at the centers of the filtered pixel clusters.

Tracked coordinates data

A .csv file that combines the timestamp.csv data with x,y coorindinates of the tracked LEDs.

../_images/csv.png