How bbelk/handirokuremote works
Main Components
a) Input Layer:
• Camera Interface (represents the physical camera input)
• Video Capture System (OpenCV component)
b) Core Processing Layer:
• Hand Detection Module (MediaPipe integration)
• Gesture Recognition System
• Command Interpreter
c) Output Layer:
• Roku Communication Module (ECP interface)
• GUI Interface (Tkinter)
d) Configuration & Storage:
• Settings Manager
• Device Discovery Service
• Logging System
[User/Camera Input]
• ↓
[Video Processing Layer]
• ↓
[Gesture Processing Layer]
• ↓
[Command Layer]
• ↓
[Roku Device]
Component Details
For each major component, include these specific implementations:
a) Video Processing Layer:
• OpenCV Video Capture
• Frame Processing
• Camera Selection Interface
b) Gesture Processing Layer:
• MediaPipe Hand Landmark Detection
• Gesture Pattern Recognition
• State Management (Idle/Active modes)
c) Command Layer:
• HTTP Request Handler
• Roku ECP Protocol Implementation
• Device Discovery Service
d) GUI Layer (parallel to main flow):
• Tkinter Interface
• Debug Overlay
• Settings Controls
• Video Feed Display
Technical Details to Highlight
• Camera input processing (gestureDetection.py)
• Roku communication (rokuRemote.py)
• GUI elements (tooltip.py)
• Configuration management (roku_config.json)
• Logging system (roku_remote.log)
Additional Elements
Annotations for:
• Supported gestures
• Command mapping
• Error handling paths
• Configuration flows