class MediaItemSingle image or video frame yielded by `LoadMedia`.
字段
| 名称 | 类型 | 默认值 |
|---|---|---|
image_rgb | np.ndarray | — |
path | Optional[str] | None |
is_video | bool | False |
frame_idx | int | 0 |
total_frames | int | 1 |
fps | float | 30.0 |
Streaming multi-source media loader for Detrium inference (images, dirs, globs, URLs, videos, arrays, tensors).
class MediaItemSingle image or video frame yielded by `LoadMedia`.
| 名称 | 类型 | 默认值 |
|---|---|---|
image_rgb | np.ndarray | — |
path | Optional[str] | None |
is_video | bool | False |
frame_idx | int | 0 |
total_frames | int | 1 |
fps | float | 30.0 |
class LoadMediaIterable streaming loader across images, directories, globs, videos, URLs, PIL, arrays, and tensors.
| 名称 | 类型 | 默认值 |
|---|---|---|
source | Any | — |
bgr_ndarray | bool | False |