Camera API Reference
pythorvision.camera
Camera
Bases: BaseModel
Represents a camera device.
Attributes:
Name | Type | Description |
---|---|---|
id |
int
|
The unique identifier for the camera. |
name |
str
|
The name of the camera. |
capabilities |
List[Capability]
|
A list of supported capabilities for the camera. |
Capability
Bases: BaseModel
Represents a single capability of a camera.
Attributes:
Name | Type | Description |
---|---|---|
media_type |
str
|
The media type of the capability (e.g., 'image/jpeg'). |
format |
Optional[str]
|
The format of the media (e.g., 'NV12'). |
width |
int
|
The width of the video frame. |
height |
int
|
The height of the video frame. |
framerate |
str
|
The framerate as a fraction (e.g., '30/1'). |
to_gstreamer_capability
Convert the capability to a GStreamer capability string.
Returns:
Name | Type | Description |
---|---|---|
str |
str
|
The GStreamer capability string. |