Run a VLM on a live camera

Ask questions about your camera feed and compare the answers with saved frames.

Guided walkthrough·Intermediate·3 min read
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 --detach

Select 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 run

Open 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.
Checkpoint 1 of 2

It is the first start of the backend. The camera page shows live frames, but your prompt gets no answer yet. Which explanation fits what the lesson says about a first start?

Commit to an answer. Every choice explains itself.

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.

Checkpoint 2 of 2

You remove the cup. The next answer still describes a cup. Before recording an unsupported claim, what should you compare the answer with?

Commit to an answer. Every choice explains itself.

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.

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

Physical AI: VLMs & VLAs
All lessons in this topic
  1. 1. Run a VLM on a live camera
  2. 2. Understand vision-language-action models
  3. 3. Inspect a VLA action chunk
  4. 4. Ground a request in supported robot skills
  5. 5. Connect perception to action without blocking control
  6. 6. Record the evidence around a failed action
  7. 7. Compare a learned approach with a scripted baseline

Ask Wendy

Answers about Wendy and WendyOS

What would you like to know?

Ask about devices, development, and deployment.

Check linked docs for technical details.