cv3.color_spaces.bgra2rgba

cv3.color_spaces.bgra2rgba(img)[source]

Convert image from BGRA to RGBA color space.

Parameters:

img (numpy.ndarray) – Input image in BGRA format.

Returns:

Image in RGBA format.

Return type:

numpy.ndarray