Tracko is a powerful, cutting-edge mobile application that performs real-time object detection and tracking using advanced AI technology. Built with Flutter for the mobile frontend and Python FastAPI for the backend, Tracko combines state-of-the-art YOLO (You Only Look Once) deep learning models with an intuitive user interface to track objects in real-time through your device camera.
Traditional object recognition systems are either:
- Too complex - Requiring technical expertise to operate
- Not real-time - Processing videos after recording
- Limited features - Only detecting without tracking or analytics
- Platform-specific - No cross-platform support
Tracko was created to provide:
- Accessibility - Anyone can use professional-grade object tracking
- Real-time performance - Instant detection and tracking at 10-12 FPS
- Comprehensive features - Detection + tracking + analytics + recording
- Cross-platform - Works on Android/iOS with one codebase
- Multilingual - Supports English, Urdu, and Sindhi
1. Security & Surveillance
- Monitor public spaces for specific objects
- Count people entering/exiting areas
- Track abandoned objects
- Detect unauthorized items
2. Retail & Business
- Customer traffic analysis (footfall counting)
- Product placement optimization
- Queue management
- Inventory monitoring
3. Smart Cities
- Traffic flow analysis
- Vehicle counting and classification
- Pedestrian safety monitoring
- Urban planning data collection
4. Research & Education
- Wildlife behavior studies
- Sports performance analysis
- Classroom activity monitoring
- Laboratory experiment tracking
5. Personal Use
- Pet monitoring and activity tracking
- Home security
- Package delivery detection
- Parking space monitoring
What is Flutter?
- Google's UI toolkit for building natively compiled applications
- Single codebase for iOS, Android, web, and desktop
- Fast development with hot reload
- Beautiful, customizable UI components
Why Flutter?
- β Cross-platform - One code for all platforms
- β Performance - Compiled to native code (60+ FPS)
- β Rich UI - Material Design & Cupertino widgets
- β Fast development - Hot reload in milliseconds
- β Strong ecosystem - 25,000+ packages
Flutter Packages Used:
camera- Camera access and previewhttp- API communicationprovider- State managementpermission_handler- Runtime permissionspath_provider- File system accessflutter_localizations- Multi-language support
What is FastAPI?
- Modern, fast web framework for building APIs with Python
- Automatic API documentation (Swagger UI)
- Type hints and validation
- High performance (comparable to NodeJS and Go)
Why FastAPI?
- β Fast - One of the fastest Python frameworks
- β Easy to use - Intuitive and Pythonic
- β Automatic docs - Interactive API documentation
- β Type safety - Built-in validation
- β Async support - Non-blocking operations
Python Libraries Used:
ultralytics- YOLOv8 implementationopencv-python- Image processingtorch(PyTorch) - Deep learning frameworknumpy- Numerical computationspillow- Image handling
What is YOLO?
- "You Only Look Once" - Real-time object detection algorithm
- Latest version: YOLOv8 (2023)
- State-of-the-art accuracy and speed
- Detects 80 different object classes (COCO dataset)
Why YOLOv8?
- β Real-time - Processes 30-60 frames per second
- β Accurate - 50%+ mean Average Precision (mAP)
- β Versatile - Detects people, vehicles, animals, objects
- β Efficient - Runs on CPU (no GPU required)
- β Pre-trained - Ready to use out of the box
Model Variants:
yolov8n- Nano (fastest, 3MB)yolov8s- Small (balanced)yolov8m- Mediumyolov8l- Largeyolov8x- Extra-large (most accurate)
1. Real-Time Object Detection π―
- Detects 75+ object types instantly
- Live bounding boxes with labels
- Confidence scores (accuracy percentage)
- Distance estimation for detected objects
2. Object Tracking π
- Assigns unique IDs to objects
- Tracks movement across frames
- Maintains tracking even with occlusion
- Speed calculation (pixels/second)
3. Screenshot Capture πΈ
- Capture frames with detection overlays
- Save to device storage
- Automatic timestamping
- Quick access via floating button
4. Session History π
- Records all tracking sessions
- Shows total detections, duration, FPS
- Object breakdown per session
- Persistent local storage
5. Data Export πΎ
- Export to JSON (detailed data)
- Export to CSV (spreadsheet format)
- Includes timestamps, object counts
- Ready for data analysis
6. Analytics & Insights π
- Total detection counter
- Most frequently detected objects
- Average speed calculations
- Dwell time (how long objects stay)
- Confidence statistics
7. Multilingual Support π
- English (International)
- Urdu (Ψ§Ψ±Ψ―Ω)
- Sindhi (Ψ³ΩΪΩ)
- Easy language switching
8. Performance Optimizations β‘
- 10-12 FPS real-time tracking
- 80ms processing interval
- Optimized camera resolution
- Efficient battery usage
9. Customization π¨
- Flash control (Off/On/Auto)
- Camera switching (front/back)
- Transparent UI elements
- Adjustable display settings
| Feature | Tracko | Google Lens | Other Apps |
|---|---|---|---|
| Real-time tracking | β Yes (10-12 FPS) | β No (single image) | |
| Offline mode | β Local processing | β Requires internet | β Cloud only |
| Multi-language | β 3 languages | β 100+ languages | |
| Analytics | β Comprehensive | β No | β Basic |
| Session history | β Full tracking | β No | β Limited |
| Data export | β JSON + CSV | β No | β No |
| Free & open | β Completely free | π° Paid | |
| Privacy | β All local | β Cloud processing | β Data uploaded |
| Custom models | β Switchable | β Fixed | β Fixed |
| Distance calc | β Yes | β No | β No |
1. Complete Local Processing
- No internet required after setup
- All data stays on your device
- No privacy concerns
- No data collection
2. Professional-Grade Features
- Session management
- Detailed analytics
- Data export capabilities
- Speed and dwell time metrics
3. Built for Extension
- Modular architecture
- Easy to add new features
- Customizable models
- Developer-friendly
4. Educational Value
- Learn about AI/ML
- Understand object detection
- Practical computer vision examples
- Open source code
- FPS: 10-12 frames per second
- Latency: 80ms per frame
- Accuracy: 50-70% mAP (model dependent)
- Objects: 75+ types supported
- Distance: Estimated via focal length calculation
Mobile Device:
- Android 6.0+ or iOS 11.0+
- 2GB RAM minimum (3GB+ recommended)
- Camera (any resolution)
- 100MB free storage
Backend Server:
- Python 3.10+
- 2GB RAM (4GB+ recommended)
- CPU (GPU optional for faster processing)
- ~500MB for dependencies
βββββββββββββββββββ HTTP/REST ββββββββββββββββββββ
β β βββββββββββββββββββΊ β β
β Flutter App β 80ms intervals β FastAPI Server β
β (Frontend) β Image + Response β (Backend) β
β β β β
ββββββββββ¬βββββββββ ββββββββββ¬ββββββββββ
β β
β Camera Feed β Processing
β User Input β YOLO Model
β Display β Detection
β β
βΌ βΌ
ββββββββββββ ββββββββββββ
β Device β β YOLOv8 β
β Camera β β Model β
ββββββββββββ ββββββββββββ
- Camera captures frame
- Frontend sends image to backend
- Backend processes with YOLO
- Model detects objects and returns coordinates
- Backend sends detection data
- Frontend displays bounding boxes
- Analytics update in real-time
tracko/
βββ lib/ # Flutter frontend
β βββ features/
β β βββ object_tracking/
β β βββ controllers/ # Business logic
β β βββ models/ # Data structures
β β βββ screens/ # UI screens
β β βββ widgets/ # Reusable components
β β βββ services/ # API & storage
β β βββ utils/ # Helper functions
β βββ core/
β β βββ constants/ # Colors, themes
β β βββ services/ # Global services
β β βββ utils/ # Localization
β βββ common/
β βββ widgets/ # Shared widgets
βββ backend/ # Python backend
β βββ main.py # FastAPI server
β βββ requirements.txt # Dependencies
β βββ yolov8n.pt # YOLO model
βββ assets/
βββ translations/ # Language files
# Install Flutter
flutter --version # Should be 3.10.0+
# Install Python
python3 --version # Should be 3.10+cd backend
pip3 install -r requirements.txt
python3 -m uvicorn main:app --host 0.0.0.0 --port 8000 --reloadflutter pub get
flutter runPlanned Features:
- Video recording with overlays
- Heat map visualization
- Zone-based detection
- Path tracking (movement trails)
- Object filtering
- Custom object training
- Cloud sync (optional)
- Social sharing
Tracko is designed to be educational and extensible. Contributions are welcome!
Areas for contribution:
- New detection models
- UI improvements
- Performance optimizations
- Additional languages
- Bug fixes
This project is for educational purposes. The YOLO model follows Ultralytics AGPL-3.0 License.
Built with β€οΈ using Flutter & FastAPI
Technologies:
- Frontend: Flutter 3.10+
- Backend: Python 3.10+ with FastAPI
- AI: YOLOv8 by Ultralytics
- State Management: Provider
- Languages: Dart, Python
For issues, questions, or feature requests, please refer to the project documentation.
Tracko - Making professional object tracking accessible to everyone! π―