How syahdanfx/retrolens works
RetroLens is a real-time webcam effects app controlled by hand gestures and keyboard input. Its main workflow captures a frame, detects hands, interprets gestures to control filters and 2D/3D mode, then renders the selected effect inside a hand-defined portal and displays the result. The README also documents filter navigation and screenshots. The source excerpt is partial, so some control details come from the README; all implemented components shown share the single source file.
Main entry points: Retrolens.py Portal processor
Components 13
Capture and controls
- Webcam
- Application loop
Retrolens.py - Pipeline config
Retrolens.py
Hand vision
- Portal processor
Retrolens.py - MediaPipe Hands
- Hand geometry
Retrolens.py - Gesture controls
Retrolens.py
Portal rendering
- Filter and mode state
Retrolens.py - Portal renderer
Retrolens.py - Filter bank
Retrolens.py
Display and capture
- Preview window
Retrolens.py - Screenshot files
Other components
- User
Connections 14
- User → Application loop: keys
- User → Portal processor: hand gestures
- Webcam → Application loop: video frames
- Application loop → Pipeline config: creates
- Application loop → Portal processor: processes frames
- Application loop → Preview window: shows output
- Application loop → Screenshot files: writes captures
- Portal processor → MediaPipe Hands: detects hands
- Portal processor → Hand geometry: uses landmarks
- Portal processor → Gesture controls: interprets gestures
- Gesture controls → Filter and mode state: changes selection
- Portal processor → Filter and mode state: reads mode and filter
- Portal processor → Portal renderer: renders portal
- Portal renderer → Filter bank: applies effect