import cv2 import numpy as np from matplotlib import pyplot as plt from IPython.display import display from PIL import Image cap = cv2.VideoCapture("filesrc location=street.h264 ! h264parse ! vaapih264dec ! videoconvert ! video/x-raw,format=NV12 ! appsink") ret, vaapi = cap.read() cap.release() rgb_vaapi = cv2.cvtColor(vaapi, cv2.COLOR_YUV2RGB_NV12)
Nov 8, 2020or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up