| Crates.io | cu-v4l |
| lib.rs | cu-v4l |
| version | 0.9.1 |
| created_at | 2025-01-21 16:14:36.646022+00 |
| updated_at | 2025-09-12 20:27:45.954636+00 |
| description | This is a source task that captures video from a V4L2 device. |
| homepage | https://github.com/copper-project |
| repository | https://github.com/copper-project/copper-rs |
| max_upload_size | |
| id | 1525042 |
| size | 161,087 |
It should work with any v4l device (USB, MIPI etc.).
Add the driver like any other source in Copper:
tasks: [
(
id: "src",
type: "cu_v4l::V4l",
params: {
device: 0, // /dev/video0
width: 3280,
height: 2160,
fps: 30, // frames per second, fractions are not supported yet.
fourcc: "NV12", // format of the image
buffers: 4, // How many images copper is able to keep in memory
timeout_ms: 500, // How long should we wait for a new image
},
),
]
When you connect this driver to the rest of the system you need to use the cu_sensor_payloads::CuImage message type.
cnx: [
(src: "src", dst: "dst", msg: "cu_sensor_payloads::CuImage"),
],