En Latest
Birdwatcher is a Python computer vision library for analyzing animal behavior within a scientific Python workflow. It is designed to help researchers quickly build analysis pipelines and measurement tools for behavioral data.
Birdwatcher provides both high-level and low-level functionality for behavioral analysis. Current high-level features focus on single-animal movement and location detection using machine-learning-based background subtraction algorithms.
A key design goal of Birdwatcher is to emphasize deterministic, interpretable algorithms that produce predictable results through transformations and decision steps that can be understood by the researcher. Unlike many deep-learning approaches, these methods do not require extensive training datasets or model optimization. This makes Birdwatcher well suited for exploratory analysis, rapid prototyping, and robust measurements when neural networks would add unnecessary complexity.
To support custom workflows and higher-level tools, Birdwatcher also includes lower-level functionality such as:
Reading and writing videos as NumPy arrays
Reading and writing videos as NumPy arrays
Background subtraction and related image-processing algorithms
Background subtraction and related image-processing algorithms
Morphological transformations, resizing, and frame annotation
Morphological transformations, resizing, and frame annotation
Storing lower-level output in disk-based ragged arrays for further analysis
Storing lower-level output in disk-based ragged arrays for further analysis
To get started, see the Tutorial notebooks on Github. The documentation also includes short recipes with hands-on examples.
Birdwatcher is based on FFmpeg and OpenCV .
This project is developed by Gabriel Beckers and Carien Mol, at Experimental Psychology, Utrecht University. Birdwatcher is open source and freely available under the terms of the terms of the New BSD License . Despite its name, Birdwatcher is not limited to birds — it has also been used successfully to analyze dog behavior and can be applied to any moving subject.
Source code: .
Recipes Detecting movement Loading results movement detection Checking out the properties of a video file Resize video Add frame numbers Concatenating transformations Extracting audio from a video Archiving coordinate results
Loading results movement detection
Checking out the properties of a video file
Concatenating transformations
Extracting audio from a video
Archiving coordinate results
API Video input from file VideoFile VideoFileStream testvideostreamsmall() Frame processing Frames FramesColor FramesGray Movement detection batch_detect_movement() detect_movement() apply_settings() create_movementvideo() Parameter selection Coordinate Arrays CoordinateArrays open_archivedcoordinatedata() create_coordarray() Background subtraction MOG2 KNN LSBP Plotting imshow_frame() Utils product_dict() tempdir() derive_filepath() print_dirstructure() walk_paths()
Video input from file VideoFile VideoFileStream testvideostreamsmall()
testvideostreamsmall()
Frame processing Frames FramesColor FramesGray
Movement detection batch_detect_movement() detect_movement() apply_settings() create_movementvideo() Parameter selection
batch_detect_movement()
create_movementvideo()
Coordinate Arrays CoordinateArrays open_archivedcoordinatedata() create_coordarray()
open_archivedcoordinatedata()
Background subtraction MOG2 KNN LSBP
Plotting imshow_frame()
Utils product_dict() tempdir() derive_filepath() print_dirstructure() walk_paths()
Development Contributing Style guide Docstring Parameters
Style guide Docstring Parameters
Troubleshooting Permision Error
Release notes Version 0.6.3 Version 0.6.2 Version 0.6.1 Version 0.6.0 Version 0.5 Version 0.4 Version 0.3
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
