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.1.tar.gz (6.8 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.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for yotraco-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f575127f828c4b7048912a58befa649f2e9415ca2423dbcc1e0a9c21c8a7d03c
MD5 3fab09ccabf9fac981b2cf718b1f9383
BLAKE2b-256 a857bd34c27780b84e961bd58189f1847b8dc689c9a813404fece2598e824ac8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yotraco-0.1.1-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.3

File hashes

Hashes for yotraco-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7ccb3c6f9181fc0c32dcf2bdec0faf274268ba8c3db79baa0ddd80f12397b53e
MD5 1ef5c59ab1abe76a26a13381a0191c38
BLAKE2b-256 3acbd20d0d966447022ca8f1e5635d225ae087bf5ae180d1ad925a5189c7d0b5

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