Run a VLM on a live camera
Ask questions about your camera feed and compare the answers with saved frames.
Requirements and learning goals
Before you start
- Wendy CLI and Git
- A compatible NVIDIA device and MJPG USB webcam; the example targets Jetson AGX Thor
- Internet access and storage for the image plus approximately 16.5 GB of model weights
You will be able to
- Deploy a local camera-and-language demo
- Inspect the image evidence and latency behind an answer
Working without a Jetson? Compare vision-language descriptions and action predictions in your browser.
Turn an image into an answer
A vision-language model, or , combines an image with a text prompt and generates a response. Use it for questions such as "Which shelf looks empty?" when a fixed list of detector labels is too restrictive. Its answer describes an observation; it is not a robot command.
HelloVLM gives you a camera view, an editable prompt, and saved runs containing frames, responses, and timing. It uses a local backend, so images stay within this deployment.
Keep the model backend and camera app as separate services when iterating, so a prompt/UI change does not restart unrelated control logic.
Deploy the example
Clone the example:
git clone --depth 1 --filter=blob:none --sparse \
https://github.com/wendylabsinc/WendyOS.git vlm-workshop
cd vlm-workshop
git sparse-checkout set Examples/HelloVLM
cd Examples/HelloVLM/llm
wendy run --detachSelect your compatible device when prompted. The default backend downloads Gemma 3 27B weights on first start. Wait for the download and model loading to finish. This default is intended for substantial GPU hardware; it is not an ESP32 or small Raspberry Pi exercise.
Then deploy the camera app to the same device:
cd ../app
wendy runOpen http://DEVICE_ADDRESS:8080 using that device's reachable address. Replace the standing prompt with:
Is a cup visible? Describe the visible evidence.
If the image is unclear, say so. Do not guess a distance.Expected result
Place a cup in view, remove it, then partly hide it. For each run, compare the answer with its saved frames. Record correct answers, unsupported claims, and elapsed inference time. The response may describe an earlier view, so compare capture and completion times.
Troubleshooting
No frames? Check that the camera supports MJPG and that the app selected it. No answer? Check backend logs, available memory, and model-download progress. First inference can take longer than later runs.
For smaller model configuration and supported hardware, follow the HelloVLM README. Optional extension: compare language output with VLA action predictions.
Before you move on
Can you do each of these?
- Deploy a local camera-and-language demo
- Inspect the image evidence and latency behind an answer
0 of 2 checkpoints solved. Try checkpoint 1
All lessons in this topic
- 1. Run a VLM on a live camera
- 2. Understand vision-language-action models
- 3. Inspect a VLA action chunk
- 4. Ground a request in supported robot skills
- 5. Connect perception to action without blocking control
- 6. Record the evidence around a failed action
- 7. Compare a learned approach with a scripted baseline