Configure a Fake Camera (viam-micro-server)

A fake camera is a camera model for testing. The camera always returns the same image, which is an image of a circle inside a diamond.

Navigate to the CONFIGURE tab of your machine’s page in the Viam app. Click the + icon next to your machine part in the left-hand menu and select Component. Select the camera type, then select the fake model. Enter a name or use the suggested name for your camera and click Create.

Configuration of a fake camera in the Viam app config builder.

{
  "name": "<your-camera-name>",
  "model": "fake",
  "type": "camera",
  "namespace": "rdk",
  "attributes": {}
}

View the camera stream

Once your camera is configured, expand the TEST section on the configuration pane. You will see the live video feed from your camera. You can change the refresh frequency as needed to change bandwidth.

Fake Camera Micro Server View

Next steps

If you need to capture image data and sync it to the cloud, see:

Have questions, or want to meet other people working on robots? Join our Community Discord.

If you notice any issues with the documentation, feel free to file an issue or edit this file.