You can use the data management service to capture data from supported components and services, then sync it to the cloud.
You can also sync data from arbitrary folders on your machine.
How data capture and data sync works
The data management service writes data from your configured Viam resources to local storage on your edge device and syncs data from the edge device to the cloud:
The data management service writes captured data to local edge device storage (~/.viam/capture by default).
The data management service syncs data to the Viam cloud at a configured sync interval using encrypted gRPC calls and deletes it from the disk once synced.
You can capture and sync data independently; one can run without the other.
Configure data capture and sync for individual resources
Navigate to a configured resource in Builder mode.
Find the Data capture section in the resource panel.
Click + Add method.
If you see a Capture disabled on data management service warning, click Enable capture on data management service.
Select a Method to capture data from.
Camera capture methods
Camera components provide two similar, but distinct capture methods:
GetImages (recommended): Returns one image for each camera sensor as a JPEG (for color sensors) or point cloud (for depth sensors).
ReadImage: Returns a single image in the specified MIME type, if the camera component supports that MIME type.
Prefer GetImages unless your use case requires a specific MIME type other than JPEG.
Set the capture Frequency in hertz, for example to 0.2 with ReadImage on a camera to capture an image every 5 seconds.
Save your config.
You can add multiple methods with different capture frequencies.
Click to see resources that support data capture and cloud sync
The following components and services support data capture and cloud sync:
For more information on available configuration attributes and options like capturing directly to MongoDB or conditional sync, see Advanced data capture and sync configurations.
To leverage AI, you can now create a dataset with the data you’ve captured.