Skip to content
 
 

Latest commit

 

History

71 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Waggle dance annotator tool

This tool provides a GUI interface to annotate videos with the location, direction, and timing of honey bee waggle dances in an observation hive.

Installation

Conda + pip

conda create -n waggle-annotator python=3.12 pip -y
conda activate waggle-annotator
python -m pip install git+https://github.com/BioroboticsLab/bb_waggledance_annotator.git

note: Python 3.11 is also fine.

Note

The version 'dance_analysis' uses OpenCV for video annotation, and has a memory problem on Mac. The updated version 'dance_analysis_2' fixes this problem and adds additional features, using a Tkinter interface for annotation

Usage

After installation, start a new terminal in order to reload settings. Then you can start the program from a terminal by running:

dance_analysis_2

By default the tool opens the current directory to select videos for annotation. Optionally the '-p' parameter can be used to specify a directory to open, for example

dance_analysis_2 -p /path/to/directory

How to annotate a waggle run

Each waggle run is marked in two steps, in this order:

  1. Left-click on the bee's thorax at the position where the waggle run starts, holding the mouse down and dragging before releasing to set its direction. This records the run's start position, start frame, and direction.
  2. Right-click on the bee's thorax at the position where the waggle run ends. This is saved in the CSV as a "thorax position" (thorax_positions / thorax_frames columns) for historical reasons, but it functions as that run's end position and end frame.

The tool enforces this order: you must place a start before you can place an end, and you can't start a new run until the previous run's end has been marked. If you try to do it out of order, a pop-up tells you what to do next (e.g. "place the waggle start position and direction first").

See the key mappings and instructions shown in the GUI for how to navigate the videos and mark annotations.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages