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:
Could you help me out, what do I do wrong, the jpeg file is empty after running the code
Thanks
Zoli
I'm trying to extract the first frame of a sample video file with OpenCV however it doesnt work:
1 2 3 4 5 6 7 |
import cv2 f = cv2.VideoCapture( '1.mkv' ) rval, frame = f.read() cv2.imwrite( 'first_frame.jpg' , frame) f.release() |
Thanks
Zoli