Skip to content

feat: enabled device camera input via browser for tree_demo - #48

Open
LMamon wants to merge 7 commits into
NVIDIA-AI-IOT:mainfrom
LMamon:main
Open

feat: enabled device camera input via browser for tree_demo#48
LMamon wants to merge 7 commits into
NVIDIA-AI-IOT:mainfrom
LMamon:main

Conversation

@LMamon

@LMamon LMamon commented Dec 26, 2025

Copy link
Copy Markdown

This PR adds optional browser-based camera input to tree_demo, allowing users to run the demo without needing a USB/CSI camera attached.

The demo now:
-Defaults to attempting a local V4L2 camera (unchanged behavior)
-Allows users to explicitly switch to a browser device camera at runtime with a button
-Streams browser camera frames to the backend over WebSockets for inference

Key changes
-Added a button to enable browser camera streaming on demand
-Introduced a runtime switch (USE_BROWSER) to select the active image source
-Integrated browser-sent JPEG frames into the existing inference loop
-Preserved original demo behavior for systems with local cameras

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant