Skip to content

kakaplan/anno2trackstart

Repository files navigation

anno2trackstart

Originally designed for siphonophore behavior research, this repo contains code to turn MBARI VARS annotations into video links to the start of an animal sighting, using YOLOv5-assisted tracking

Install

  1. Clone respository with submodules
git clone --recurse-submodules https://github.com/bioinspirlab/anno2trackstart.git
  1. Set up python environment using Python 3.8
  2. Open the 'anno2trackstart.ipynb' file and set the kernel to the python environment
  3. Ensure that pip and ipykernel are installed.
  4. Run the code to 'install dependencies' and 'import libraries'

Note: If recieving errors around Lap installation, downgrade pip to version 20.0.2

Run

  1. Add the path to the csv file containing the annotation dataset and run

Screen Shot 2023-08-16 at 12 25 08 PM

  1. Run part_one to find, trim, and track the annotations and videos

Screen Shot 2023-08-16 at 12 26 09 PM

The output of part one will be a folder in the working directory containing trimmed, untracked videos, and tracked videos with their associated tracking txt files

  1. Set the variables for part two with the path to the tracked files, and the terms used to find t0

Example: Screen Shot 2023-08-16 at 6 29 13 PM

  1. Run part two to find t0 and create easy access link based on the t0 timestamp and original videos

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published