houseofger.blogg.se

Logitech webcam c720
Logitech webcam c720







#start recording for a determined duration # Lapse of time between videos (s), from beginning to beginningĭata_string= time.strftime("%m-%d-%H-%M-%S")įor i in range (0,2): #Let's say I only want to do this process twice, to simplifyĬap = cv2.VideoCapture(2) #my camera is 2, but could be 0įourcc = cv2.VideoWriter_fourcc('M','J','P','G') # The duration in seconds of the video captured (s) Thus, to improve the fps I should use multithreading, although I can't get to implement in my code any of the examples I've seen. I can set the fps at 30 but then the video is about 6 times shorter (python takes video at ~5fps but records it as it was 30fps). I'm using a Logitech c920, but with a good resolution (eg 1920x1080) I'm stack at 5fps.

logitech webcam c720

I'd like to get at least 20-30fps with a resolution of 720p or 1080p. I'm trying to capture a video of a duration of X seconds every Y hours with python3.8 and opencv(4.2.0) in Manjaro XFCE.









Logitech webcam c720