Camera capture facade with pluggable backend implementations.
More...
#include <CameraCapture.hpp>
Definition at line 27 of file CameraCapture.hpp.
◆ BackendPreference
| Enumerator |
|---|
| Auto | Auto-select backend based on platform/runtime constraints.
|
| OpenCvVideoCapture | Force OpenCV VideoCapture backend.
|
| Libcamera2OpenCv | Force libcamera2opencv callback backend.
|
Definition at line 32 of file CameraCapture.hpp.
◆ CameraCapture() [1/4]
| CameraCapture::CameraCapture |
( |
int |
camera_index = 0 | ) |
|
|
explicit |
◆ CameraCapture() [2/4]
| CameraCapture::CameraCapture |
( |
Options |
options | ) |
|
|
explicit |
◆ ~CameraCapture()
| CameraCapture::~CameraCapture |
( |
| ) |
|
|
default |
◆ CameraCapture() [3/4]
◆ CameraCapture() [4/4]
◆ backendImplementation()
| std::string CameraCapture::backendImplementation |
( |
| ) |
const |
◆ backendName()
| std::string CameraCapture::backendName |
( |
| ) |
const |
- Returns
- Backend name string, or
"CLOSED" if backend is not active.
Definition at line 524 of file CameraCapture.cpp.
◆ backendPreference()
◆ getFocusPosition()
| float CameraCapture::getFocusPosition |
( |
| ) |
const |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ setFocusPosition()
| bool CameraCapture::setFocusPosition |
( |
float |
position | ) |
|
- Parameters
-
| position | Focus request: -1.0 autofocus, 0.0 closest, 1.0 farthest. |
- Returns
true when request is accepted by backend, otherwise false.
Definition at line 542 of file CameraCapture.cpp.
◆ waitForNextFrame()
| bool CameraCapture::waitForNextFrame |
( |
FrameEvent & |
output_event | ) |
|
- Parameters
-
| output_event | Output frame event populated on success. |
- Returns
true on successful frame delivery, otherwise false.
Definition at line 517 of file CameraCapture.cpp.
The documentation for this class was generated from the following files: