Skip to content Skip to sidebar Skip to footer

How To Create Multiple Videocapture Objects

I wanted to create multiple VideoCapture Objects for stitching video from multiple cameras to a single video mashup. for example: I have path for three videos that I wanted to be r

Solution 1:

I'm not a python programmer, but probably the solution is something like:

frames = []
caps = []
for path in videoList:
    caps.append(cv2.VideoCapture(path))

for cap in caps:
    while cap.isOpened():
        ret, frame = cap.read()
        if not ret:
            break
        frames.append(frame)

# now "frames" holds your captured images.

Post a Comment for "How To Create Multiple Videocapture Objects"