entities
StatusUpdate
dataclass
¶
Represents a status update event in the system.
Attributes:
Name | Type | Description |
---|---|---|
timestamp |
datetime
|
The timestamp when the status update was created. |
severity |
UpdateSeverity
|
The severity level of the update. |
event_type |
str
|
A string representing the type of the event. |
payload |
dict
|
A dictionary containing data relevant to the update. |
context |
str
|
A string providing additional context about the update. |
Source code in inference/core/interfaces/camera/entities.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
|
UpdateSeverity
¶
Bases: Enum
Enumeration for defining different levels of update severity.
Attributes:
Name | Type | Description |
---|---|---|
DEBUG |
int
|
A debugging severity level. |
INFO |
int
|
An informational severity level. |
WARNING |
int
|
A warning severity level. |
ERROR |
int
|
An error severity level. |
Source code in inference/core/interfaces/camera/entities.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
|
VideoFrame
dataclass
¶
Represents a single frame of video data.
Attributes:
Name | Type | Description |
---|---|---|
image |
ndarray
|
The image data of the frame as a NumPy array. |
frame_id |
FrameID
|
A unique identifier for the frame. |
frame_timestamp |
FrameTimestamp
|
The timestamp when the frame was captured. |
source_id |
int
|
The index of the video_reference element which was passed to InferencePipeline for this frame (useful when multiple streams are passed to InferencePipeline). |
fps |
Optional[float]
|
declared FPS of source (if possible to be acquired) |
measured_fps |
Optional[float]
|
measured FPS of live stream |
comes_from_video_file |
Optional[bool]
|
flag to determine if frame comes from video file |
Source code in inference/core/interfaces/camera/entities.py
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
|