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.2

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.2
File Size Uploaded Provenance Actions
birdwatcher-0.6.2.tar.gz 5.6 MB Without provenance Details for birdwatcher-0.6.2.tar.gz

Built distribution (wheel)

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

Total release size: 11.1 MB

Release files / birdwatcher-0.6.2.tar.gz

Download URL birdwatcher-0.6.2.tar.gz
Size 5.6 MB
Tags Source
SHA-256 checksum
How to use checksums
d16c76256d44dd18b8c83360bc7753ed8ea12c42a13d231cb849cd053567244d
BLAKE2b-256 checksum
How to use checksums
66087290f33b6c88d18ff861794516b4cb8867fde8dc437880ad07662e8022b8
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.2-py3-none-any.whl

Download URL birdwatcher-0.6.2-py3-none-any.whl
Size 5.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
882779b722ac99e47990fc0ea66847e8eb708597330f247fa6f77c6a469db926
BLAKE2b-256 checksum
How to use checksums
94d078ba47dadfd0b8f32246503ac8dab37afb9c79defe78205339a5edf07eb8
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.2

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