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.2.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.2-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yotraco-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 71d29affe861b654724abf6a370f718cb9f4fdcba5041de173a6cecfb6fd99fb
MD5 0166cb2e68ea683c2b43d9ff097b5798
BLAKE2b-256 cc660868ffa5b79d0988bf7b7a17698eaedd3bc60e871cea4101d2105e2b87c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yotraco-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 595b64166481aa653e84e4398f44b984aade19a983071738037d93f5a9bf9bb6
MD5 65b510aa334f6ff2172d3498b40d0ab3
BLAKE2b-256 bb24e5b61bc6b81fec3c04a5de5dd06d1aad5c4d83b9820ad2c40b2b50a575ac

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