NanoTrack
NanoTrack is a lightweight and efficient object detection and tracking library designed for seamless integration with YOLOv5 and YOLOv8 models. It delivers real-time tracking with minimal resource usage, making it ideal for edge devices and systems with limited performance.
Features
- 🚀 Lightweight: Optimized for minimal computational overhead.
- 🎯 Seamless Integration: Fully compatible with YOLOv5 and YOLOv8.
- ⚡ Real-Time Performance: Fast and accurate tracking for video streams.
- 🛠️ Simple API: Easy-to-use interfaces for rapid development.
- 📹 Video & Stream Support: Works with video files and live camera streams.
Installation
Install via PyPI
To install NanoTrack from PyPI, run:
pip install nanotrack
Install from GitHub
For the latest version directly from the source:
pip install git+https://github.com/ragultv/nanotrack.git
Usage
1. Import and Initialize
from nanotrack import YOLOv8Detector, NanoTrack
import cv2
# Initialize the YOLOv8 Detector
detector = YOLOv8Detector(model_path="yolov8n.pt") # Replace with your model path
# Initialize the NanoTrack Tracker
tracker = NanoTrack()
2. Process Video for Detection and Tracking
# Load video file or webcam input
cap = cv2.VideoCapture("path_to_video.mp4") # Replace with your video file path
while True:
ret, frame = cap.read()
if not ret:
break
# Perform object detection
detections = detector.detect(frame)
# Update tracker with detections
tracks = tracker.update(detections)
# Draw bounding boxes and track IDs
for track in tracks:
x1, y1, x2, y2, _, _, track_id = track[:7]
cv2.rectangle(frame, (int(x1), int(y1)), (int(x2), int(y2)), (0, 255, 0), 2)
cv2.putText(frame, f"ID: {track_id}", (int(x1), int(y1) - 10),
cv2.FONT_HERSHEY_SIMPLEX, 0.5, (0, 255, 255), 1)
# Display the results
cv2.imshow("NanoTrack", frame)
# Press 'q' to exit
if cv2.waitKey(1) & 0xFF == ord('q'):
break
cap.release()
cv2.destroyAllWindows()
Supported Models
NanoTrack seamlessly works with:
- YOLOv5: Optimized and reliable object detection.
- YOLOv8: Cutting-edge detection accuracy and performance.
Example Output
Here is an example of NanoTrack in action:
Contributing
We welcome contributions to NanoTrack!
To contribute:
- Fork the repository.
- Create a branch:
git checkout -b feature-branch
- Make your changes and test thoroughly.
- Submit a Pull Request with a clear description.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Support
For issues, feature requests, or questions, feel free to:
- Open an issue on our GitHub repository.
- Reach out with feedback or suggestions.
Let’s Track Smarter, Faster, and Lighter with NanoTrack! 🚀
Metadata
Release files for nanotrack 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nanotrack-0.2.1.tar.gz | 8.2 kB | Without provenance | Details for nanotrack-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nanotrack-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for nanotrack-0.2.1-py3-none-any.whl |
Total release size: 18.9 kB
Release files / nanotrack-0.2.1.tar.gz
| Download URL | nanotrack-0.2.1.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b413860d994304dd3e414d95d8cd9fd4108b57e59863a8a33ac65839968082f9
|
|
BLAKE2b-256 checksum How to use checksums |
adfd70337c5ec0f0ab1788c4ffdc75c929f97bd359727b46e1869ee049f381ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.5
|
Release files / nanotrack-0.2.1-py3-none-any.whl
| Download URL | nanotrack-0.2.1-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
db987e9c1723bab78d094941df2c2a68c76f708ec03bc544940b31af29ba9abd
|
|
BLAKE2b-256 checksum How to use checksums |
3e80e77ba6a03c7349d041ca830d70cfa3096d5a8c0966254b330e80e89f2344
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.5
|
Security for nanotrack 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.