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.4.tar.gz (8.0 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.4-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yotraco-0.1.4.tar.gz
  • Upload date:
  • Size: 8.0 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.4.tar.gz
Algorithm Hash digest
SHA256 a230067e280a3c9c6af5fef791f6137c6ed95a32ff85fe024a0ebb5f3f1f4539
MD5 7289af5eae11bd3d5a17134ab10df5e7
BLAKE2b-256 fff9e9a403f15af1fed8f781d404d34a51f08994642014d44aa824f0919ce5f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yotraco-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 6.9 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c275ff6248e3f795688b57bd3f83eec181f246e56d211b62f5f3e9c17930318b
MD5 023d53fd48c185bfd6c6da6f40371f7e
BLAKE2b-256 ed798d4b13599d1454b518f219c70fbc924bca084733380641b08ef826f7a8f0

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