This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

OpenCV on wheels

Unofficial OpenCV packages for Python.

The aim of this repository is to provide means to package each new OpenCV release for the most used Python versions and platforms.

At the same time it allows anyone to build a custom version of OpenCV for any Python version: just fork this repo and modify the build files and scripts to fit your needs.

Installation and Usage

To install this package:

pip install opencv-python

To import the package:

import cv2

OpenCV documentation

Build process

The project is structured like a normal Python package with a standard setup.py file. The build process is as follows (see for example appveyor.yml file):

  1. Checkout repository and submodules
    • OpenCV is included as submodule and the version is updated manually by maintainers when a new OpenCV release has been made
  2. Find OpenCV version from the sources
  3. Upgrade pip and install numpy for each Python version
  4. Build OpenCV
    • tests are disabled, otherwise build time increases too much
  5. Copy each .pyd/.so file to cv2 folder of this project and generate wheel
  6. Install the generated wheels for each Python version
  7. Test that the Python versions can import them
  8. Use twine to upload all wheels to PyPI

Currently the find_version.py file parses OpenCV version information from the OpenCV sources. OpenCV depends on numpy, so setup.py checks the numpy version also with the help of pip.

The cv2.pyd file for example on Windows is normally copied to site-packages. To avoid polluting the root folder the __init__.py file in cv2 folder handles the import logic correctly by importing the actual .pyd module and replacing the imported cv2 package in sys.modudes with the cv2 module to retain backward compatibility.

Licensing

Opencv-python package (scripts in this repository) is available under MIT license.

OpenCV itself is available under 3-clause BSD License (LICENSE-3RD-PARTY.txt).

Windows wheels ship with FFmpeg licensed under the LGPLv2.1.

Versioning

Currently the find_version.py script searches for the version information from OpenCV sources and appends also a revision number specific to this repository to the version string.

Releases

A release is made and uploaded to PyPI when a new tag is pushed to master branch. These tags differentiate packages (this repo might have modifications but OpenCV version stays same) and should be incremented sequentially. In practice, release version numbers look like this:

cv_major.cv_minor.cv_revision.package_revision e.g. 3.1.0.0

Development builds

Every commit to the master branch of this repo will be built. Possible build artifacts use local version identifiers:

cv_major.cv_minor.cv_revision+git_hash_of_this_repo e.g. 3.1.0+14a8d39

These artifacts can’t be and will not be uploaded to PyPI.

Manylinux wheels

Linux wheels are built using manylinux. These wheels should work out of the box for most of the distros (which use GNU C standard library) out there since they are built against an old version of glibc.

Supported Python versions

Windows:

There’s a build time limitation (AppVeyor open source builds may take max 1 hour) which restricts the supported Python versions to two (note: the performance is better nowadays, for example py33 and py34 could be added to appveyor.yml). As Python’s 2.x releases are slowly approaching legacy state, 2.7.x releases will be the only supported Python 2 versions on Windows. On Python 3 side, builds will be run only for the latest release.

However, if you wan’t to get some other versions, just fork this repo and change the dependencies.

Linux

Manylinux wheels are built for all the Python versions which are supported by the manylinux containers.

OS X

Currently built for Python 2.7, 3.4 and 3.5.

Release History

Release History

3.1.0.3

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

3.1.0.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

3.1.0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

3.1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

3.1.0.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
opencv_python-3.1.0.3-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (27.8 MB) Copy SHA256 Checksum SHA256 cp27 Wheel Sep 28, 2016
opencv_python-3.1.0.3-cp27-cp27m-manylinux1_i686.whl (5.4 MB) Copy SHA256 Checksum SHA256 cp27 Wheel Sep 28, 2016
opencv_python-3.1.0.3-cp27-cp27m-manylinux1_x86_64.whl (6.2 MB) Copy SHA256 Checksum SHA256 cp27 Wheel Sep 28, 2016
opencv_python-3.1.0.3-cp27-cp27mu-manylinux1_i686.whl (5.4 MB) Copy SHA256 Checksum SHA256 cp27 Wheel Sep 28, 2016
opencv_python-3.1.0.3-cp27-cp27mu-manylinux1_x86_64.whl (6.2 MB) Copy SHA256 Checksum SHA256 cp27 Wheel Sep 28, 2016
opencv_python-3.1.0.3-cp27-cp27m-win32.whl (18.0 MB) Copy SHA256 Checksum SHA256 cp27 Wheel Sep 28, 2016
opencv_python-3.1.0.3-cp27-cp27m-win_amd64.whl (20.9 MB) Copy SHA256 Checksum SHA256 cp27 Wheel Sep 28, 2016
opencv_python-3.1.0.3-cp33-cp33m-manylinux1_i686.whl (5.4 MB) Copy SHA256 Checksum SHA256 cp33 Wheel Sep 28, 2016
opencv_python-3.1.0.3-cp33-cp33m-manylinux1_x86_64.whl (6.2 MB) Copy SHA256 Checksum SHA256 cp33 Wheel Sep 28, 2016
opencv_python-3.1.0.3-cp34-cp34m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (27.8 MB) Copy SHA256 Checksum SHA256 cp34 Wheel Sep 28, 2016
opencv_python-3.1.0.3-cp34-cp34m-manylinux1_i686.whl (5.4 MB) Copy SHA256 Checksum SHA256 cp34 Wheel Sep 28, 2016
opencv_python-3.1.0.3-cp34-cp34m-manylinux1_x86_64.whl (6.2 MB) Copy SHA256 Checksum SHA256 cp34 Wheel Sep 28, 2016
opencv_python-3.1.0.3-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (27.8 MB) Copy SHA256 Checksum SHA256 cp35 Wheel Sep 28, 2016
opencv_python-3.1.0.3-cp35-cp35m-manylinux1_i686.whl (5.4 MB) Copy SHA256 Checksum SHA256 cp35 Wheel Sep 28, 2016
opencv_python-3.1.0.3-cp35-cp35m-manylinux1_x86_64.whl (6.2 MB) Copy SHA256 Checksum SHA256 cp35 Wheel Sep 28, 2016
opencv_python-3.1.0.3-cp35-cp35m-win32.whl (18.0 MB) Copy SHA256 Checksum SHA256 cp35 Wheel Sep 28, 2016
opencv_python-3.1.0.3-cp35-cp35m-win_amd64.whl (20.9 MB) Copy SHA256 Checksum SHA256 cp35 Wheel Sep 28, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting