A modern, professional desktop application for real-time stock pattern detection using YOLO11. This application provides a beautiful GUI interface for monitoring your screen and detecting stock chart patterns in real-time.
- Dark theme with professional styling
- Real-time video feed with live pattern detection
- Interactive controls for model and monitor selection
- Performance monitoring with FPS counter
- Detection logging with timestamps and confidence scores
- Model selection - Choose your trained YOLO model
- Monitor selection - Select which monitor to monitor
- Confidence threshold - Adjust detection sensitivity
- Real-time settings - Change settings while running
- Live pattern detection with bounding boxes
- Detection counting and statistics
- Screenshot saving with timestamps
- Export detection logs to text files
- Pattern confidence tracking
- No Python required on target machines
- Pre-loaded model - Your trained model is bundled
- One-click installation with desktop shortcut
- Cross-platform Windows executable
# Install dependencies
pip install -r requirements_gui.txt
# Run the application
python stock_detector_app.py# Run the build script
python build_exe.pyThe build script will:
- Install PyInstaller if needed
- Create a professional icon
- Bundle your trained model
- Build a standalone executable
- Create an installer script
YOLO_11_Stocks/
โโโ stock_detector_app.py # Main GUI application
โโโ realtime.py # Original command-line version
โโโ build_exe.py # Build script for executable
โโโ requirements_gui.txt # GUI app dependencies
โโโ runs/detect/train/weights/
โ โโโ best.pt # Your trained YOLO model
โโโ dist/
โโโ StockPatternDetector.exe # Built executable
- Launch the app - Run
stock_detector_app.pyor the executable - Select model - Choose your trained YOLO model file
- Select monitor - Pick which monitor to monitor
- Adjust settings - Set confidence threshold
- Start detection - Click "Start Detection"
- โถ Start Detection - Begin real-time monitoring
- โน Stop Detection - Stop monitoring
- ๐ธ Save Screenshot - Capture current detection
- ๐ Export Log - Save detection history
- ๐๏ธ Clear Log - Clear detection log
- 'q' - Quit application (when focused on video)
- 's' - Save screenshot (when focused on video)
- 'r' - Reset FPS counter (when focused on video)
- YOLO11 format (.pt files)
- Trained for stock patterns - Your custom trained model
- Confidence threshold - Adjustable from 0.1 to 1.0
- Automatic detection - Finds all available monitors
- Resolution display - Shows monitor specs
- Position tracking - Monitors can be positioned anywhere
- FPS monitoring - Real-time performance display
- Auto-resizing - Optimizes for performance
- Error handling - Robust error recovery
- Format: JPG
- Naming:
detection_screenshot_YYYYMMDD_HHMMSS.jpg - Content: Annotated frame with detection boxes
- Format: TXT
- Naming:
detection_log_YYYYMMDD_HHMMSS.txt - Content: Timestamp, count, confidence for each detection
- File:
settings.json - Auto-saved: Model path and confidence settings
- Persistent: Remembers your preferences
- Python 3.8+ installed
- Your trained YOLO model in
runs/detect/train/weights/best.pt - All dependencies installed
# Install build dependencies
pip install -r requirements_gui.txt
# Run build script
python build_exe.py- Executable:
dist/StockPatternDetector.exe - Installer:
install.bat(creates desktop shortcut) - Size: ~200-300MB (includes model and dependencies)
- Real-time monitoring of multiple charts
- Pattern alerts for trading opportunities
- Screenshot capture for analysis
- Pattern logging for backtesting
- Confidence tracking for model validation
- Export capabilities for further analysis
- Visual learning of chart patterns
- Real-time feedback on pattern recognition
- Historical tracking of detection accuracy
- Model not found - Ensure model path is correct
- No monitors detected - Check display settings
- Low FPS - Reduce confidence threshold or resize window
- Detection errors - Check model compatibility
- Close unnecessary applications for better FPS
- Use lower confidence for more detections
- Monitor single screen for best performance
- Update graphics drivers for optimal performance
This project is for educational and research purposes. Please ensure you have proper licensing for any commercial use of the YOLO model and training data.
Feel free to submit issues, feature requests, or pull requests to improve the application.
Stock Pattern Detector Pro - Professional real-time pattern detection for traders and analysts.