Could not write and save live video using OpenCV
I am trying to write and save the video of my object detection. I have referred and tried based on the posts posted here in Stackoverflow. However, none of them is working. My specifications: Python 3.7.9 OpenCV 4.5.1 The code is as below import cv2 from main import * import imutils import math darknetmain = darknet_main() darknetmain.setGPU(is_GPU=True) saveVid ="./data/test_sampah_tasik.mp4" video = cv2.VideoCapture(0) width = 270 height = 480 size = (width,height) result = cv2.VideoWriter('21_output.mpeg',cv2.VideoWriter_fourcc(*'MPJG'),20,size) # initialize the known distance from the came
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.