Skip to main content

A YOLO-based object tracking and counting system.

Project description

Contributors Forks Stargazers Issues Unlicense License LinkedIn


Logo

YOTRACO

Object tracking and counting system based on YOLO

Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Contributing
  4. License
  5. Contact

About The Project

This project leverages YOLO (You Only Look Once) for real-time object detection and tracking in video streams, enhancing analytical capabilities through automated monitoring and statistical reporting.

  • Object Detection & Tracking: Utilizes YOLO to detect and track objects in video footage with high accuracy.
  • Crossing Detection: Automatically counts objects crossing a predefined line within the frame.
  • Customizable Settings:
    • Configure the tracking line position (top, middle, bottom).
    • Define tracking direction (IN, OUT, or BOTH).
    • Select specific object classes for monitoring.
  • Processed Video Output: Generates and saves processed video files with overlaid tracking data and object counts.
  • Logging & Statistics: Maintains detailed records and statistical insights on tracked objects for further analysis.

(back to top)

Installation

Install the module with pip:

pip install yotraco

Update existing installation: pip install yotraco --upgrade
(update as often as possible because this library is under active development)

Usage

To test yotraco you can try this simple example with your video:

from YOTRACO import Yotraco

model = Yotraco("yolo11l.pt",                 # the path to the yolo.pt 
                "your_video_path.mp4",        # the path to your video
                "output",                     # the name of the output
                "middle",                     # the line postion (by default : middle)
                "BOTH",                       # the track direction (by default : Both )
                classes_to_track=[0,1,2,3,4], # the class id to track 
                display=True                  # display the counts in the output video
                )

model.process_video()

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Top contributors:

contrib.rocks image

(back to top)

License

Distributed under the MIT license. See LICENSE for more information.

(back to top)

Contact

Yotraco Team - nereuscode@gmail.com

(back to top)

Thanks

Special thanks to the following resources and contributors who helped make this project possible:

  • Ultralytics YOLO for their amazing object detection framework.
  • Mouad Hida for designing the project logo and enhancing the visual identity of this project.
  • All contributors who provided invaluable feedback and improvements.
  • The open-source community for continuous inspiration.

(back to top)

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.2.3.tar.gz (12.5 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.2.3-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for yotraco-0.2.3.tar.gz
Algorithm Hash digest
SHA256 dc9c26d3eeca88fdadd68767ca42fef2584f136edd1cff21a7245f3e237ad04f
MD5 bbac1047a584f95d2d0ce025b77ca5b8
BLAKE2b-256 4ba57a0541102755475776c139d6c884f8e55aaf9b09fe76182eb7a436afed01

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for yotraco-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e0ab1a8f7914528d03c8c3d102535a00abe7385311babf4af60ff5ef4254481c
MD5 4e518673531add660efdbd8f3b29e72f
BLAKE2b-256 5e01d66b52a79d2c66ff457abde049c4902d511dfddcfbcfb4f9adf4fdaa8cd6

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