Skip to main content

No project description provided

Project description

opencvutil

OpenCV で利用できるカメラの情報を返すライブラリです。

使い方

import cv2
import opencvutil

# カメラの情報を取得
infos = opencvutil.camera_list()

# カメラの情報を表示し、ユーザーに選択させる
for i, info in enumerate(infos):
    print(f"Index {info["index"]}: {info["name"]}")

# カメラを選択
camera_index = int(input("使用するカメラの Index を指定してください: "))

# OpenCV でカメラを開く
cap = cv2.VideoCapture(camera_index)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

opencvutil-0.0.1-cp312-none-win_amd64.whl (112.5 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

opencvutil-0.0.1-cp312-none-win32.whl (108.7 kB view hashes)

Uploaded CPython 3.12 Windows x86

opencvutil-0.0.1-cp312-cp312-macosx_11_0_arm64.whl (237.0 kB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

opencvutil-0.0.1-cp312-cp312-macosx_10_12_x86_64.whl (238.8 kB view hashes)

Uploaded CPython 3.12 macOS 10.12+ x86-64

opencvutil-0.0.1-cp311-none-win_amd64.whl (112.5 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

opencvutil-0.0.1-cp311-none-win32.whl (109.2 kB view hashes)

Uploaded CPython 3.11 Windows x86

opencvutil-0.0.1-cp311-cp311-macosx_11_0_arm64.whl (237.7 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

opencvutil-0.0.1-cp311-cp311-macosx_10_12_x86_64.whl (239.5 kB view hashes)

Uploaded CPython 3.11 macOS 10.12+ x86-64

opencvutil-0.0.1-cp310-none-win_amd64.whl (112.5 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

opencvutil-0.0.1-cp310-none-win32.whl (109.2 kB view hashes)

Uploaded CPython 3.10 Windows x86

opencvutil-0.0.1-cp310-cp310-macosx_11_0_arm64.whl (237.0 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

opencvutil-0.0.1-cp310-cp310-macosx_10_12_x86_64.whl (239.5 kB view hashes)

Uploaded CPython 3.10 macOS 10.12+ x86-64

opencvutil-0.0.1-cp39-none-win_amd64.whl (112.5 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

opencvutil-0.0.1-cp39-none-win32.whl (109.2 kB view hashes)

Uploaded CPython 3.9 Windows x86

opencvutil-0.0.1-cp39-cp39-macosx_11_0_arm64.whl (236.9 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

opencvutil-0.0.1-cp39-cp39-macosx_10_12_x86_64.whl (239.6 kB view hashes)

Uploaded CPython 3.9 macOS 10.12+ x86-64

opencvutil-0.0.1-cp38-none-win_amd64.whl (112.4 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

opencvutil-0.0.1-cp38-none-win32.whl (109.1 kB view hashes)

Uploaded CPython 3.8 Windows x86

opencvutil-0.0.1-cp38-cp38-macosx_11_0_arm64.whl (236.5 kB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

opencvutil-0.0.1-cp38-cp38-macosx_10_12_x86_64.whl (239.2 kB view hashes)

Uploaded CPython 3.8 macOS 10.12+ 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