VideoMode
- class cscore.VideoMode(*args, **kwargs)
Bases:
pybind11_objectVideo mode
Overloaded function.
__init__(self: cscore._cscore.VideoMode) -> None
__init__(self: cscore._cscore.VideoMode, pixelFormat_: cscore._cscore.VideoMode.PixelFormat, width_: typing.SupportsInt | typing.SupportsIndex, height_: typing.SupportsInt | typing.SupportsIndex, fps_: typing.SupportsInt | typing.SupportsIndex) -> None
- class PixelFormat(value: SupportsInt | SupportsIndex)
Bases:
pybind11_objectMembers:
kUnknown
kMJPEG
kYUYV
kRGB565
kBGR
kGray
kY16
kUYVY
kBGRA
- kBGR = <PixelFormat.kBGR: 4>
- kBGRA = <PixelFormat.kBGRA: 8>
- kGray = <PixelFormat.kGray: 5>
- kMJPEG = <PixelFormat.kMJPEG: 1>
- kRGB565 = <PixelFormat.kRGB565: 3>
- kUYVY = <PixelFormat.kUYVY: 7>
- kUnknown = <PixelFormat.kUnknown: 0>
- kY16 = <PixelFormat.kY16: 6>
- kYUYV = <PixelFormat.kYUYV: 2>
- VideoMode.PixelFormat.name -> str
- property value
- compareWithoutFps(other: cscore._cscore.VideoMode) bool