Skip to main content

Find opencv camera index in windows using win32 api

Project description

opencv-cam-idx

Find opencv camera index in windows using win32 api

Installation

You can install the package via pip:

pip install opencv-cam-idx

Usage

from opencv_cam_idx.finder import find_cameras

find_cameras()

# Camera(
#     idx=0,
#     friendly_name='USB Video',
#     device_path='\\\\?\\usb#vid_534d&pid_2109&mi_00#7&11fabc89&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\\global',
#     description='',
# )
# Camera(
#     idx=1,
#     friendly_name='Integrated Webcam',
#     device_path='\\\\?\\usb#vid_1bcf&pid_28b0&mi_00#6&3443eee2&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\\global',
#     description='',
# )

License

This project is licensed under the terms of the MIT license.

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

opencv_cam_idx-1.0.1.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

opencv_cam_idx-1.0.1-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

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