OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
Camera API Reference
Camera implementations are expected to inherit from Camera.
class Camera:
def connect(self, timeout: float = 5.0) -> None: ...
def disconnect(self) -> None: ...
def read(self, timeout: float = 2.0) -> Frame: ...
def read_latest(self) -> Frame: ...
async def async_read(self, timeout: float = 2.0) -> Frame: ...
@property
def is_connected(self) -> bool: ...
@property
def device_id(self) -> str: ...
Color Mode
class ColorMode(StrEnum):
RGB = "rgb"
BGR = "bgr"
GRAY = "gray"
Camera Type
class CameraType(StrEnum):
UVC = "uvc"
IP = "ip"
REALSENSE = "realsense"
GENICAM = "genicam"
BASLER = "basler"
Read Semantics
| Method | Semantics |
|---|---|
read() |
Returns the next frame, blocks, and preserves sequence. |
read_latest() |
Returns the newest frame, does not block, and may skip frames. |
async_read() |
Provides an async wrapper around read(). |
Camera instances are not thread-safe.