Skip to content

SmartAudioTools/python-capture-device-list

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 Run

  1. Build the Python extension:

    Python 2

    python setup.py build install
    

    Python 3

    python3 setup.py build install
    
  2. Run the app and select a capture device:

    Python 2

    python test.py

    Python 3

    python3 test.py

    camera list in Python

Blog

Listing Multiple Cameras for OpenCV-Python on Windows

About

fix return null without setting an error

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 72.3%
  • Python 27.7%