Skip to main content

Get device list with Windows DirectShow

Project description

List Capture Devices for Python OpenCV on Windows

OpenCV does not have an API for listing capture devices. The sample shows how to create a Python extension to invoke DirectShow C++ APIs for enumerating capture devices.

Environment

How to Build the CPython Extension

  • distutils:

    python .\setup_distutils.py build
    
  • scikit-build:

    pip wheel . --verbose
    

Test

python test.py

camera list in Python

Blog

Listing Multiple Cameras for OpenCV-Python on Windows

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

windows-capture-device-list-1.0.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

windows_capture_device_list-1.0-cp37-cp37m-win_amd64.whl (11.1 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

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