cu-v4l

Crates.iocu-v4l
lib.rscu-v4l
version0.9.1
created_at2025-01-21 16:14:36.646022+00
updated_at2025-09-12 20:27:45.954636+00
descriptionThis is a source task that captures video from a V4L2 device.
homepagehttps://github.com/copper-project
repositoryhttps://github.com/copper-project/copper-rs
max_upload_size
id1525042
size161,087
Guillaume Binet (gbin)

documentation

README

Video4Linux capture driver for Copper (V4L2)

Compatibility

It should work with any v4l device (USB, MIPI etc.).

Usage

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"),
    ],
Commit count: 741

cargo fmt