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.
Software requirements
To use this model, you must follow the viam-micro-server
Development Setup, which enables you to install and activate the ESP-IDF.
At the step Generate a new project from a template where you create a new project with cargo generate
, select the option to include camera module traits when prompted.
Finish the viam-micro-server
Development Setup and return to this guide.
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.
{
"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.
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.
Was this page helpful?
Glad to hear it! If you have any other feedback please let us know:
We're sorry about that. To help us improve, please tell us what we can do better:
Thank you!