Skip to main content

Syncronous reading from multiple webcams

Project description

Synchronized reading of multiple webcams using v4l2

Only runs under Linux

Installation

sudo apt install libjpeg-turbo8-dev libjpeg-dev cmake python setup.py install for system-wide installation python setup.py install --user for user-specific installation

Use

import numpy as np
import multicam as mc
with mc.Multicam(['/dev/video0','/dev/video2'], (640,480), 'YUYV', fps=30) as cs:
    try:
        while True: 
            res = cs.read() #RGB images
            print(res.shape)
    except KeyboardInterrupt:
        pass

with mc.Camera(0, (640,480), 'YUYV', fps=30) as c:
    print(c.read().shape)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

multicam-1.0.3.tar.gz (9.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page