Skip to content
 
 

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages