Skip to main content

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


Download files

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

Source Distribution

yotraco-0.1.3.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

yotraco-0.1.3-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file yotraco-0.1.3.tar.gz.

File metadata

  • Download URL: yotraco-0.1.3.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for yotraco-0.1.3.tar.gz
Algorithm Hash digest
SHA256 0725f2ace531b7763c58e8d21032de078f8e4ede89633b04bca7e0b646633304
MD5 51c32d1a633879d3f7e1102989daf504
BLAKE2b-256 aafd1ad3abab782924d8a280f599273f370e79d1d404e4ca7489c052c6b83402

See more details on using hashes here.

File details

Details for the file yotraco-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: yotraco-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for yotraco-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a82b0494769c3fe51edfb459aa68df6fd32468e95e3c8061e1968b9e353fe9f9
MD5 168b9c15c8716f5a3a81821a20674387
BLAKE2b-256 affe03f98d9d1867549b0341daa48433f23ac897d205da8019aced6d4d9ed34d

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