How sl1dee36/fire-grasp works
Fire-Grasp is a real-time desktop fire detector: it captures screen frames, processes them for fire-colored regions, optionally annotates movement, and displays the result. The main loop also supports interactive debug controls; a separate UI offers detector settings and rendering, while an image-correction tool derives fire-color ranges from marked pixels. The graph preserves these distinct workflows and the documented outline modes. Evidence is limited to the supplied excerpts and README; UI capture details are incomplete, so no capture-to-UI link is asserted.
Main entry points: main.py Detection loop · detect_fire.py Fire segmentation · ui.py Settings UI · FireDetectionCorrector.py Image corrector
Components 12
Detection Runtime
- Screen capture
main.py - Detection loop
main.py - Fire segmentation
functions/detect_fire.py - Fire outlines
functions/detect_fire.py - Hexagon drawing
functions/draw_hexagon.py - Direction overlay
functions/detect_fire_direction.py
Controls and Display
- Debug trackbars
functions/debug_menu.py - OpenCV display
main.py - Settings UI
tools/ui.py
Fire Calibration
- Image corrector
tools/FireDetectionCorrector.py - Fire ranges
tools/FireDatas.txt
Other components
- Desktop user
Connections 13
- Desktop user → Detection loop: starts detection
README.md - Detection loop → Screen capture: captures frames
main.py - Detection loop → Fire segmentation: processes frames
main.py - Fire segmentation → Fire outlines: draws contours
functions/detect_fire.py - Fire segmentation → Hexagon drawing: draws hexagons
functions/detect_fire.py - Detection loop → Direction overlay: adds direction
main.py - Detection loop → Debug trackbars: opens controls
main.py - Detection loop → OpenCV display: shows frame
main.py - Desktop user → Settings UI: adjusts settings
tools/ui.py - Settings UI → Fire segmentation: processes frames
tools/ui.py - Settings UI → Direction overlay: adds direction
tools/ui.py - Desktop user → Image corrector: marks fire pixels
tools/FireDetectionCorrector.py - Image corrector → Fire ranges: saves ranges
tools/FireDetectionCorrector.py