Answer the question
In order to leave comments, you need to log in
Why is the video collected in the python exe file not saved when recording via opencv?
Created a program for collecting dataset. In it, a person must perform certain actions, and this is recorded on video. I record the video like this:
fourcc = cv2.VideoWriter_fourcc(*'XVID')
#width и height - это соответственно ширина и высота кадра
recorder=cv2.VideoWriter("cam0.avi", fourcc, 25, (width,height))
cam=cv2.VideoCapture(0)
success,frame=cam.read()
recorder.write(frame)
cap.release()
recorder.release()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question