A YOLO-based object tracking and counting system.
Project description
Table of Contents
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.
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()
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!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Top contributors:
License
Distributed under the MIT license. See LICENSE for more information.
Contact
Yotraco Team - nereuscode@gmail.com
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yotraco-0.2.1.tar.gz.
File metadata
- Download URL: yotraco-0.2.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
866d9b66d54735aa67d547a627714ec7e189cdf6ff18d8c4e6c2a0c863d34d9f
|
|
| MD5 |
9f5ac8dfb63b393a25d4c5452affca0e
|
|
| BLAKE2b-256 |
5064c7cbff97031e282ba1e15dd3ab17933b41c05dda4f81ae61a424b12747cf
|
File details
Details for the file yotraco-0.2.1-py3-none-any.whl.
File metadata
- Download URL: yotraco-0.2.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3432697dc5bbbf4361be29312d1cfb3178d8547beddbd0a647813fdd44b8aec9
|
|
| MD5 |
a1aae1b9d5a75dd42fb09bc8a89b87f0
|
|
| BLAKE2b-256 |
c507b756f6ea95d032d8cb8fb9b67d293fa377c9e378b11587a75cb81a2426aa
|