Jetson Nano Zoom Out USB Camera using GStreamer

Hi,

I am using a Logitech c270 USB Camera on my Jetson Nano.

I am using OpenCV for the camera interface, using GStreamer and the following pipeline:

std::string usb_pipeline (int capture_width, int capture_height) {
return “v4l2src device=/dev/video0 ! video/x-raw, width=(int)” + std::to_string(capture_width) + “, height=(int)” +
std::to_string(capture_height) + " ! videoconvert ! appsink";
}

Being capture_width = 1280 and capture height = 720.

I was wondering if there is a way of zooming out the camera.

Thanks for your help.

Hi,
Please check if the camera supports the function. If yes, you can try to control it by setting the property in v4l2src:

  extra-controls      : Extra v4l2 controls (CIDs) for the device
                        flags: readable, writable
                        Boxed pointer of type "GstStructure"