Skip to main content

BEEhaviourLab provides tools for detecting, tracking, and analysing bee behaviour from video data.

Project description

BEEhaviourLab

tests

BEEhaviourLab provides tools for detecting, tracking, and analysing bee behaviour from video data.

Documentation

Full documentation is published on GitHub Pages: https://beehaviourlab.github.io/BEEhaviourLab/

Installation

Install from PyPI:

pip install beehaviourlab

Install with docs or test extras:

pip install "beehaviourlab[docs]"
pip install "beehaviourlab[test]"

Install with dev extras (docs + tests):

pip install "beehaviourlab[dev]"

Install from source (recommended for development):

pip install -e .

For docs tooling:

pip install -e ".[docs]"

Tracking module

All tracking commands are available under the bee track group.

Common commands:

bee track run-pipeline --input /path/to/video.mp4 --output /path/to/output_dir
bee track run-yolo --model-path /path/to/model.pt --source-video /path/to/video.mp4 --output-path /path/to/out.csv
bee track fix-ids /path/to/tracking.csv --output /path/to/fixed.csv --num-objects 5
bee track extract-flow /path/to/fixed.csv --output /path/to/flow.csv
bee track speed-analysis /path/to/flow.csv --output-dir /path/to/output_dir
bee track visualise-tracking --video /path/to/video.mp4 --csv /path/to/fixed.csv --out /path/to/annotated.mp4

Batch processing

There is also a batch-processing command for running the tracking pipeline over all videos in a directory tree and writing outputs into a per-video subdirectory.

Usage:

bee track batch-process --input-dir /path/to/videos
bee track batch-process --input-dir /path/to/videos --filter hiveA
bee track batch-process --input-dir /path/to/videos --output-dir-name tracking_outputs

Configuration

To create editable config files in your working directory:

bee config init

This writes:

  • tracking_config.yaml
  • tracking/custom_tracker.yaml

The CLI will automatically use a tracking_config.yaml in your current working directory if present.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

beehaviourlab-0.1.1.tar.gz (26.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

beehaviourlab-0.1.1-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

Details for the file beehaviourlab-0.1.1.tar.gz.

File metadata

  • Download URL: beehaviourlab-0.1.1.tar.gz
  • Upload date:
  • Size: 26.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for beehaviourlab-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e1d5aa4ba88b8c757ea33095d3f9ece1ae1ecadc1bacec778757eca7c51612c8
MD5 cb00fcdea8471a13a503e32cbc553dbd
BLAKE2b-256 6f920cbeaf01d0f0eeed26a92add48a32494edb732b4f01bc9ad4ac73a579934

See more details on using hashes here.

Provenance

The following attestation bundles were made for beehaviourlab-0.1.1.tar.gz:

Publisher: publish.yml on BEEhaviourLab/BEEhaviourLab

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file beehaviourlab-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: beehaviourlab-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 25.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for beehaviourlab-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a5e61253e78b95fdcc09d15dcceebf757ea49f8e8651d3a3af8d9d4ae14d0cc6
MD5 d57c7a5254d01648bdddbbbae2310bbc
BLAKE2b-256 6a711aa636cf71d5bf66d69509a00e341c27d965f47bc6ad0cbcc07e067f6d68

See more details on using hashes here.

Provenance

The following attestation bundles were made for beehaviourlab-0.1.1-py3-none-any.whl:

Publisher: publish.yml on BEEhaviourLab/BEEhaviourLab

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page