How yashhhh-5/hand-filter works
Hand Portal Filters is a webcam-based visual-effects app: the user presents both hands to form a portal, then cycles image filters with pinches or keyboard controls. The single Python module contains model setup, hand/gesture handling, filter effects, and frame compositing. The excerpt confirms filter application and pinch-distance use; omitted code limits certainty about some internal calls and camera-frame processing.
Main entry points: hand_portal_filters.py App loop · hand_landmarker.task Landmarker model
Components 8
Runtime and input
- App loop
hand_portal_filters.py - Webcam
Hand interaction
- Landmarker model
hand_landmarker.task - Hand detection
hand_portal_filters.py - Pinch detection
hand_portal_filters.py
Portal effects
- Filter effects
hand_portal_filters.py - Portal compositor
hand_portal_filters.py
Other components
- User
Connections 7
- User → App loop: controls
hand_portal_filters.py - App loop → Webcam: captures frames
hand_portal_filters.py - App loop → Landmarker model: loads model
hand_portal_filters.py - App loop → Hand detection: processes hands
hand_portal_filters.py - App loop → Pinch detection: checks distance
hand_portal_filters.py - App loop → Filter effects: selects filter
hand_portal_filters.py - App loop → Portal compositor: applies filter
hand_portal_filters.py