I'm currently reading BGR values from a set of images,
I have used a variety of imread flags however i cant seem to pull it as BGRA.
my current code is
import cv2
import os
#returns an list of images, list of x, list of y, list of BGR
def load_images_from_folder(folder):
images = []
for filename in os.listdir(folder):
img = cv2.imread(os.path.join(folder,filename),flags=cv2.IMREAD_UNCHANGED)
if img is not None:
images.append(img)
return images
This returns an array([245, 247, 255], dtype=uint8) where i was expecting something like array([245, 247, 255, 0.2], dtype=uint8)