Skip to content

Latest commit

 

History

History
226 lines (180 loc) · 6.84 KB

File metadata and controls

226 lines (180 loc) · 6.84 KB

RealVision AI - Complete Setup Guide

🎯 What You Now Have

Your RealVision Object Understanding AI project now includes:

✅ Enhanced GUI Application

  • Modern Interface: Clean, professional PyQt6-based GUI
  • Real-time Object Detection: Camera and video processing
  • Multiple AI Models: YOLO, MobileNet-SSD, ONNX, etc.
  • Live Statistics: FPS, detection counts, performance metrics
  • Analytics Dashboard: Comprehensive reporting and visualization
  • Settings Control: Model selection, confidence adjustment

✅ Easy Launch Options

  • start_gui.bat: Windows batch file (double-click to run)
  • start_gui.ps1: PowerShell script
  • launch_gui.py: Python launcher with auto-setup
  • gui.py: Direct GUI application

✅ Executable Creation Tools

  • build_exe.py: Automated .exe builder using PyInstaller
  • Complete packaging: Includes all dependencies and models

🚀 Quick Start Instructions

For Regular Use:

  1. Double-click start_gui.bat (Windows)
  2. Or run: python launch_gui.py
  3. The application will auto-install dependencies if needed

For .exe Creation:

  1. Run: python build_exe.py
  2. Find your .exe: dist/RealVision-AI.exe
  3. Distribute: Share the entire dist/ folder

📋 Features Overview

Main GUI Features:

  • 📹 Camera Access: Real-time webcam object detection
  • 📁 Video Upload: Process video files with drag-and-drop
  • 🎯 Multi-Model Support: Switch between AI models instantly
  • 📊 Live Analytics: Real-time performance monitoring
  • ⚙️ Settings Panel: Adjust confidence, display options
  • 🔍 Object Tracking: Advanced multi-object tracking
  • 📸 Screenshot Capture: Save detected frames
  • 📈 Performance Metrics: FPS, processing time, accuracy stats

Analytics Dashboard:

  • 📊 Interactive Charts: Performance over time
  • 📋 Detailed Reports: Comprehensive analysis
  • 💾 Export Options: HTML, PDF, CSV formats
  • 🎯 Model Comparison: Compare different AI models
  • 📈 Trend Analysis: Historical performance data

🛠️ Technical Implementation

Architecture:

RealVision-AI/
├── gui.py                 # Main GUI application
├── launch_gui.py         # Auto-setup launcher
├── build_exe.py          # Executable builder
├── src/main.py           # Core AI logic
├── models/               # AI model files
├── output/               # Analytics results
└── dist/                 # Built executable

Key Improvements Made:

  1. GUI Integration: Seamless PyQt6 interface
  2. Thread Safety: Video processing in separate threads
  3. Real-time Stats: Live performance monitoring
  4. Model Switching: Hot-swappable AI models
  5. Error Handling: Graceful error recovery
  6. Auto-Setup: Automatic dependency installation
  7. Professional UI: Modern, intuitive design

📦 Deployment Options

Option 1: Source Distribution

Share the entire project folder:

  • Users run start_gui.bat or python launch_gui.py
  • Automatic dependency installation
  • Full source code access

Option 2: Standalone Executable

Create and distribute the .exe:

python build_exe.py
# Share: dist/RealVision-AI.exe + models folder

Option 3: Complete Package

Full installer package:

  • Use NSIS or similar to create installer
  • Include all models and dependencies
  • Professional deployment option

🎮 User Guide

Getting Started:

  1. Launch: Double-click start_gui.bat
  2. Wait: Let dependencies install (first run only)
  3. Choose: Click "Open Camera" or "Upload Video"
  4. Adjust: Use settings panel to fine-tune detection
  5. Analyze: Click "Show Analytics" for detailed reports

Camera Usage:

  • Click "📹 Open Camera"
  • Grant camera permissions if prompted
  • See real-time object detection
  • Use Stop button to pause

Video Processing:

  • Click "📁 Upload Video"
  • Select video file (MP4, AVI, MOV, etc.)
  • Watch processed video with detections
  • Generate analytics when complete

Settings:

  • Model: Choose AI detection model
  • Confidence: Adjust detection sensitivity
  • Display: Toggle FPS, confidence scores
  • Performance: Monitor system usage

🔧 Customization

Adding New Models:

  1. Place model files in models/ directory
  2. Update src/main.py with new model loader
  3. Add model to GUI dropdown

Modifying UI:

  1. Edit gui.py for interface changes
  2. Modify create_*_panel() methods
  3. Update stylesheets for appearance

Analytics Customization:

  1. Edit src/performance_analyzer.py
  2. Modify dashboard templates
  3. Add custom metrics and charts

🚨 Troubleshooting

Common Issues:

"Python not found"

  • Install Python 3.8+ from python.org
  • Add Python to system PATH

"PyQt6 not found"

  • Run: pip install PyQt6
  • Or use the launcher scripts for auto-install

"Camera not accessible"

  • Close other camera applications
  • Check Windows camera permissions
  • Try different camera indices

"Models not loading"

  • Run: python scripts/download_models.py
  • Check internet connection
  • Verify models/ directory exists

".exe build fails"

  • Install: pip install pyinstaller
  • Check all dependencies are installed
  • Run with administrator privileges

Performance Issues:

  • Close unnecessary applications
  • Use YOLO models for best performance
  • Lower video resolution if needed
  • Enable GPU acceleration if available

📈 Next Steps

Possible Enhancements:

  1. Cloud Integration: Upload results to cloud storage
  2. Mobile App: Create mobile companion app
  3. Web Interface: Browser-based version
  4. API Server: REST API for remote processing
  5. Batch Processing: Multiple file processing
  6. Custom Training: Train models on custom data

Professional Features:

  1. User Authentication: Login system
  2. Database Integration: Store results in database
  3. Network Streaming: Process network video streams
  4. Advanced Analytics: ML-powered insights
  5. Report Scheduling: Automated report generation

📞 Support

Documentation:

  • Main README: Project overview and features
  • GUI_README: Detailed GUI usage guide
  • API Documentation: Code documentation

Getting Help:

  1. Check troubleshooting section
  2. Review error messages carefully
  3. Ensure all requirements are installed
  4. Check GitHub issues for solutions

🎉 Success!

You now have a complete, professional object detection application with:

  • ✅ Modern GUI interface
  • ✅ Real-time camera processing
  • ✅ Video file processing
  • ✅ Multiple AI models
  • ✅ Analytics dashboard
  • ✅ Standalone .exe creation
  • ✅ Professional documentation
  • ✅ Easy distribution options

Ready to use! Just run start_gui.bat or python launch_gui.py to begin!


Author: Mehmet Kahya
Date: July 2025
Version: 1.0
License: MIT