Nov-10-2018, 03:46 PM
Hi All,
I'm trying to extract the first frame of a sample video file with OpenCV however it doesnt work:
Thanks
Zoli
I'm trying to extract the first frame of a sample video file with OpenCV however it doesnt work:
import cv2 f = cv2.VideoCapture('1.mkv') rval, frame = f.read() cv2.imwrite('first_frame.jpg', frame) f.release()Could you help me out, what do I do wrong, the jpeg file is empty after running the code
Thanks
Zoli