Skip to main content

Unofficial stubs for the opencv-python package.

Project description

OpenCV stubs

PyPI PyPI - Implementation PyPI - Python Version PyPI - Downloads License Linting

Unofficial python stubs for the opencv-python package.

A stub file with all the cv2 function can be found on the Microsoft stubs repo.
The stubs from this package are different in the sense that they include better (although wrong) typing. OpenCV handles more types than defined in this package (and has much more functions than defined in this package). If you would like a function / type to be added, feel free to open a PR.

The stubs include the docstrings as they are otherwise not available in the IDE (as far as I know).

These stubs are a temporary help until official ones are made (see this issue).

Installation

The package is available on pypi here, you can install it with:

pip install opencv-stubs

The dependency on opencv is optional, and be accessed with pip install opencv-stubs[opencv] or pip install opencv-stubs[opencv-headless].

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_stubs-0.0.4.tar.gz (24.0 kB view hashes)

Uploaded Source

Built Distribution

opencv_stubs-0.0.4-py3-none-any.whl (22.8 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