datatypes for opencv, reverse rgb and bgr
imgs -> arrays that support variety of data types (dtypes)
Data type Range
uint8 0 to 255
uint16 0 to 65535
uint32 0 to 232
float -1 to 1 or 0 to 1
int8 -128 to 127
int16 -32768 to 32767
int32 -231 to 231 - 1
OpenCV uses BGR for color images and its dtype is uint 8 by default.
Converting BGR to RGB or vice versa
OpenCV has three dimensions: width, height and color.
>>> image = image[:, :, ::-1]