Skip to main content

Birdwatcher

Github CI Status PyPI version Docs Status Repo Status Codecov status DOI

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
  • Background subtraction and related image-processing algorithms
  • Morphological transformations, resizing, and frame annotation
  • 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 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: https://github.com/gbeckers/Birdwatcher .

Installation Birdwatcher package

Birdwatcher officially supports Python 3.12 or higher, but older Python 3 versions may also work.

User installation

  1. We recommend using Anaconda for installation. Install Anaconda from https://www.anaconda.com/ .

  2. Open Anaconda prompt in terminal.

  3. Create new environment for Birdwatcher (name is up to you, in example here 'mybirdwatcher'). We install some other packages at the same time:

    conda create -n mybirdwatcher python=3.14 git=2.51 ffmpeg=8.0.1 numpy=2.4.2 matplotlib=3.10.8 pandas=3.0.0 seaborn=0.13.2 pip
    
  4. Switch to this new environment:

    conda activate mybirdwatcher
    
  5. Install jupyter from conda-forge (currently conda one has a problem).

    conda install -c conda-forge jupyter
    
  6. Install Birdwatcher:

    Stable latest official release from PyPi:

    pip install Birdwatcher
    

    If instead you want the latest version of the git main branch, use:

    pip install git+https://github.com/gbeckers/birdwatcher@main
    

Run notebooks tutorial

To quickly learn the fundamentals of Birdwatcher, please walk through our notebooks. See jupyter notebook directory.

Documentation

Documentation on readthedocs

Examples

See jupyter notebook directory.

Contributions

Sita ter Haar and Dylan Minekus helped exploring the application of movement detection algorithms.

Metadata

Release files for birdwatcher 0.6.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for birdwatcher 0.6.3
File Size Uploaded Provenance Actions
birdwatcher-0.6.3.tar.gz 5.6 MB Without provenance Details for birdwatcher-0.6.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for birdwatcher 0.6.3
File Interpreter ABI Platform Actions
birdwatcher-0.6.3-py3-none-any.whl Python 3 none any Details for birdwatcher-0.6.3-py3-none-any.whl

Total release size: 11.2 MB

Release files / birdwatcher-0.6.3.tar.gz

Download URL birdwatcher-0.6.3.tar.gz
Size 5.6 MB
Tags Source
SHA-256 checksum
How to use checksums
04338655247f4ac119f51de93c439d7c76ebdb1fc5c5d2c442d171baa7b6bb14
BLAKE2b-256 checksum
How to use checksums
8598ff7196f3a83c1054cc6d96f533d782b248782d1887d23e7e75864894948b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / birdwatcher-0.6.3-py3-none-any.whl

Download URL birdwatcher-0.6.3-py3-none-any.whl
Size 5.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
d1643655afd1aadacd4351a78f3ddebf5b698175de321b3b6d35d7f2f92d0c72
BLAKE2b-256 checksum
How to use checksums
b28b1b8e3ffbf246deae9c2de7f2aaf9c7f0e944718e7347d9133167ec2b0983
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Security for birdwatcher 0.6.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page