Trex
TRex, a fast multi-animal tracking system with markerless identification, and 2D estimation of posture and visual fields.
Install / Use
/learn @mooch443/TrexREADME
Documentation: https://trex.run/docs YouTube: https://youtube.com/@TRexTracker
Hey there
Welcome to the git repository of TRex (https://trex.run) -- a software designed to track and identify individuals and other moving entities using computer vision and machine learning.
TRaditionally, using background-subtraction, TRex can track 256 fish faster than the video plays back, and for up to 100 individuals allows you to visually recognize individuals and automatically correct potential tracking errors using machine-learning based automatic classification.
Since version 2.0, TRex also supports machine-learning based detection models. Out of the box we support models compatible with the ultralytics (https://github.com/ultralytics) package, like YOLO. All common tasks, such as bounding-boxes, oriented bounding-boxes, keypoints, and segmentation as well as offering simple SAHI-like features (https://github.com/obss/sahi). This replaces background subtraction in situations where it is not sufficient - you can bring your own .pt model, of course!
It allows you, from the same interface, to load up existing videos or record directly from your webcam. Camera support (and other things) can be extended for other APIs with a bit of C++ or Python knowledge, of course.
Installation
TRex supports all major platforms. Miniforge is the main package repository used for installing/building TRex. Simply follow the instructions here for installing miniforge: https://github.com/conda-forge/miniforge#download.
You can then create a new virtual environment (named tracking here) by running:
Windows, Linux (NVIDIA graphics card recommended), macOS (Intel / ARM64)
conda create -n tracking -c trexing trex
Usage
Within the conda environment, simply run:
trex
To convert a video to our custom pv format from the command-line:
trex -i /full/path/to/video.mp4 -o funny_name
This will output to /full/path/to/video.pv. If you want to change the output destination root, add -d /output/path.
Opening a video directly and adjusting parameters:
trex -i /full/path/to/video.mp4 -track_threshold 25 -track_max_individuals 10
If you don't want a graphical user interface and save/quit when tracking finishes, add -nowindow and -auto_quit:
trex -i /full/path/to/video.mp4 -nowindow -auto_quit
Read more about parameters for TRex here.
Contributors, Issues, etc.
This project has been developed, is still being updated, by Tristan Walter. If you want to contribute, please submit a pull request on GitHub and I will be happy to credit you here, for any substantial contributions!
If you have any issues running the software please consult the documentation first (especially the FAQ section) and if this does not solve your problem, please file an issue using the issue tracker here on github. If you experience problems with PyTorch, such as installing CUDA or cuDNN dependencies, then please direct issues to those development teams.
Significant contributions by: Angela Albi
License
Released under the GPLv3 License (see LICENSE).
Reference
If you use this software in your work, please cite our open-access paper:
@article {walter2020trex,
article_type = {journal},
title = {TRex, a fast multi-animal tracking system with markerless identification, and 2D estimation of posture and visual fields},
author = {Walter, Tristan and Couzin, Iain D},
editor = {Lentink, David},
volume = 10,
year = 2021,
month = {feb},
pub_date = {2021-02-26},
pages = {e64000},
citation = {eLife 2021;10:e64000},
doi = {10.7554/eLife.64000},
url = {https://doi.org/10.7554/eLife.64000},
journal = {eLife},
issn = {2050-084X},
publisher = {eLife Sciences Publications, Ltd},
}
Related Skills
qqbot-channel
350.8kQQ 频道管理技能。查询频道列表、子频道、成员、发帖、公告、日程等操作。使用 qqbot_channel_api 工具代理 QQ 开放平台 HTTP 接口,自动处理 Token 鉴权。当用户需要查看频道、管理子频道、查询成员、发布帖子/公告/日程时使用。
docs-writer
100.5k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
350.8kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
ddd
Guía de Principios DDD para el Proyecto > 📚 Documento Complementario : Este documento define los principios y reglas de DDD. Para ver templates de código, ejemplos detallados y guías paso
