Skip to content

DFKI-Interactive-Machine-Learning/windows-capture-devices

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

List Capture Devices on Windows using DirectShow

This is a simple and lightweight Python extension that allows developers to enumerate capture devices. The device names can be used to open capture devices with, for instance, PyAV. The extension can be used as follows:

from windows_capture_devices import get_capture_devices
device_list = get_capture_devices()

We use this extension in the WebcamSource of our multisensor-pipeline.

Setup

  • From PyPI (recommended)
    pip install windows-capture-devices
    
  • From source (we recommend to use an Anaconda environment for building the package)
    python setup.py build install
    
  • Build a wheel
    pip install wheel
    python setup.py bdist_wheel 
    

PyAV Example

We include an example for grabbing an image frame using PyAV in demo.py. The demo has additional dependencies:

conda install av -c conda-forge
pip install Pillow

Credits

This repository is forked from https://github.com/yushulx/python-capture-device-list.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 78.2%
  • Python 21.8%