Skip to main content

A YOLO-based tool for ROI cropping and movement tracking of Mus musculus.

Project description

Mus Musculus Tracker 🐁

PyPI version License: MIT Python 3.10+

A professional YOLO-based tool designed for automated detection, Region of Interest (ROI) cropping, and movement tracking of mice (Mus musculus) in a circular arena.

📋 Features

  • Automated Detection: Powered by YOLO (v.12) for robust animal identification.
  • Smart ROI Cropping: Automatically crops video borders to focus on the arena/cage.
  • Trajectory Tracking: Extracts movement data and tracking coordinates.
  • CLI Ready: Easy-to-use Command Line Interface for batch processing.

🚀 Installation

Via Pip (Recommended)

You can install the tracker directly from PyPI:

pip install mus-musculus-tracker

Via Conda (For Development)

To set up a development environment, use the provided environment.yml:

gh repo clone juancolonna/mouse-tracker
cd mouse-tracker
conda env create -f environment.yml
conda activate mouse-tracker
pip install mouse-tracker

🛠 Usage

Once installed, the mouse-track command will be available in your terminal. To start tracking on a video file, simply run:

mouse-track path/to/your/video.mp4

📑 Requirements

Python: >= 3.13

Main Dependencies:

ultralytics (YOLO)

opencv-python

moviepy

tqdm

✍️ Authors

Juan G. Colonna juancolonna@icomp.ufam.edu.br

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

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

mus_musculus_tracker-0.1.1.tar.gz (4.9 MB view details)

Uploaded Source

Built Distribution

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

mus_musculus_tracker-0.1.1-py3-none-any.whl (4.9 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mus_musculus_tracker-0.1.1.tar.gz
  • Upload date:
  • Size: 4.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for mus_musculus_tracker-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1c67e69dbdf77febc0456a9099fcee2aa1f4111133c9e15625270ade7822d7d3
MD5 da6a438629c11ec60b792575362370f0
BLAKE2b-256 3e47da71a66df41e6e954df241ad6f5a97528370bb7c202223926ecf5e804b67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mus_musculus_tracker-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6c98f4d73a762f8cff3e672966debe3291651e84329aea02ccd22bcca50bee22
MD5 7d0b6f5c33c6e43c930bceb4af91eb4e
BLAKE2b-256 4af8f8ec97ef524680940264ae29946701f41be6210895aa2653bcc3af579fcc

See more details on using hashes here.

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