OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
hardware_io.camera.v4l2_camera.V4L2Camera Class Reference

Capture frames from a Linux V4L2 camera device. More...

Inheritance diagram for hardware_io.camera.v4l2_camera.V4L2Camera:
hardware_io.camera.camera_if.CameraIf

Public Member Functions

bool is_open (self)
 Return whether the camera device is currently open.
 
None open (self)
 Open and configure the camera device.
 
CameraFrame read (self)
 Capture and return the next frame.
 
None close (self)
 Release the camera device.
 

Detailed Description

Capture frames from a Linux V4L2 camera device.

OpenCV is imported lazily so simply importing OpenRoadCode does not make camera support a mandatory dependency on systems that do not use it.

Member Function Documentation

◆ is_open()

bool hardware_io.camera.v4l2_camera.V4L2Camera.is_open (   self)

Return whether the camera device is currently open.

Returns
True when capture is open and ready.

Reimplemented from hardware_io.camera.camera_if.CameraIf.

◆ read()

CameraFrame hardware_io.camera.v4l2_camera.V4L2Camera.read (   self)

Capture and return the next frame.

Returns
Next captured frame and its source metadata.

Reimplemented from hardware_io.camera.camera_if.CameraIf.


The documentation for this class was generated from the following file: