NV212jpg import cv2 import numpy as np def NV212RGB(yuv_path, width, height): with open(yuv_path, 'rb') as f: yuvdata = np.fromfile