This tool provides a GUI interface to annotate videos with the location, direction, and timing of honey bee waggle dances in an observation hive.
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.gitnote: Python 3.11 is also fine.
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
After installation, start a new terminal in order to reload settings. Then you can start the program from a terminal by running:
dance_analysis_2By 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/directoryEach waggle run is marked in two steps, in this order:
- 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.
- 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_framescolumns) 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.
