Question: v_file = cv2.VideoCapture('video_test.avi') ret, frame = v_file.read() data = cv2.imencode('.jpg', frame)[1].tostring() connectionSocket.sendall(data) a) How do you go back from the 'frame' file to v_file (what
v_file = cv2.VideoCapture('video_test.avi') ret, frame = v_file.read() data = cv2.imencode('.jpg', frame)[1].tostring() connectionSocket.sendall(data)
a) How do you go back from the 'frame' file to v_file (what would let's say v_fileNew be equal to)?
b) How about the data file. How do you do back to v_file (what would let's say v_fileNew be equal to) ?
Python.....................openCV
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
