A YOLO-based object tracking and counting system.
Project description
Yotraco
Overview
Yotraco is an object tracking and counting system based on YOLO (You Only Look Once). It processes videos to detect, track, and count objects crossing a defined line in specified directions. It supports multiple object classes and can track both "IN" and "OUT" movements.
Features
- Object Detection & Tracking: Uses YOLO to detect and track objects in a video.
- Crossing Detection: Counts objects that cross a defined line in the frame.
- Customizable Settings:
- Define tracking line position (top, middle, bottom).
- Specify tracking direction (IN, OUT, or BOTH).
- Select specific object classes to track.
- Processed Video Output: Saves the processed video with tracking and count overlays.
- Logging & Statistics: Maintains statistics of tracked objects.
Installation
pip install -r requirements.txt
Ensure you have ultralytics installed for YOLO model support.
pip install ultralytics
Usage
from yotraco import Yotraco
yotraco = Yotraco(
model_path='path/to/yolo_model.pt',
video_path='path/to/input_video.mp4',
output_video='path/to/output_video.avi',
line_position='middle',
track_direction='BOTH',
classes_to_track=[0, 1, 2, 3]
)
yotraco.process_video()
Dependencies
- Python 3.7+
- OpenCV (
cv2) - Ultralytics YOLO (
ultralytics) - NumPy
License
This project is licensed under the MIT License. See LICENSE for details.
Authors
YOTRACO TEAM : Ben Yamna Mohammed , Makkour Israe
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yotraco-0.1.5.tar.gz.
File metadata
- Download URL: yotraco-0.1.5.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
059c8f1f96535c434f6e5921c6ddd22fbd6e69e5593490cafa74508dc9a5417a
|
|
| MD5 |
de95622c0831c2e7039678e595409c52
|
|
| BLAKE2b-256 |
bbebe1f9761313c35225d286f7a25d1a1fe872b4cb5f08eeb00d5ef3c30d35a3
|
File details
Details for the file yotraco-0.1.5-py3-none-any.whl.
File metadata
- Download URL: yotraco-0.1.5-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0baadc24ab6f6e97af739caa99382ff9884d8ade5e5a996f4beccc8830673e8
|
|
| MD5 |
549ef08d4a751d7cbbac6e3cde23fe60
|
|
| BLAKE2b-256 |
a4a31d0b980758e9430eea7d681f0eb96dee0c156839c9ef174173e98fc51c97
|