Hi! I am designing a picture description task where participants describe the picture they see on the screen. While describing, their video and voice are being recorded, and they can see themselves in the camera frame. I want to save the videos for each participant, but I only get the recording of the last one. How can I save the output for each participant? I am new to the community. I hope my question was clear.
My code is:
for begin experiment:
import numpy as np
import cv2 # this is the OpenCV library for computer vision
fourcc = cv2.VideoWriter_fourcc(*'XVID')
out = cv2.VideoWriter('output.avi', fourcc, 20.0, (640, 480))
webCam = cv2.VideoCapture(0) # connect to the zeroth video camera