Skip to main content

ImageFormat

Supported image formats for camera streams and image processing.

enum ImageFormat {
RGB = 0,
BGR = 1,
RGBA = 2,
BGRA = 3,
YUV_NV12 = 4,
YUV_NV21 = 5,
}

Values

EnumValueDescription
RGB0Standard RGB color format with 3 channels
BGR1BGR color format (OpenCV Mat default) with 3 channels
RGBA2RGB color format with alpha channel (4 channels)
BGRA3BGR color format with alpha channel (4 channels)
YUV_NV124YUV color format with NV12 layout, commonly used in video processing
YUV_NV215YUV color format with NV21 layout, commonly used in Android camera outputs