Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A random subset of OpenCV's functionality, wrapped via CFFI

Project Description


You’ll need a copy of OpenCV 3.0.x to link against, and the Haar Cascade files from OpenCV 2.4.10 to do recognition, since the newer versions changed the format but the C API seems to not have been updated to be able to read them.

You can grab both versions from:

Build the 3.0 version (via cmake . && make). Install it if you wish, otherwise follow below to just tell opencv-cffi where you’ve downloaded it.

On OS X, you can also get OpenCV 3.0 by running:

$ brew edit homebrew/science/opencv

remove the , branch => '2.4', and then

$ brew install –HEAD –without-python homebrew/science/opencv

(We do not need the Python bindings, you’re lookin’ at Python bindings).



$ opencv=~/Development/opencv-3.0.0 \
  LD_LIBRARY_PATH=$opencv/lib/ \
  C_INCLUDE_PATH=$opencv/include/:$opencv/modules/core/include/:$opencv/modules/hal/include:$opencv/modules/imgproc/include:$opencv/modules/photo/include:$opencv/modules/video/include:$opencv/modules/objdetect/include:$opencv/modules/videoio/include/:$opencv/modules/highgui/include/:$opencv/modules/imgcodecs/include \
  pypy opencv_cffi/
Release History

Release History

This version
History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
opencv_cffi-0.2.2-pp27-none-macosx_10_11_x86_64.whl (45.7 kB) Copy SHA256 Checksum SHA256 pp27 Wheel Oct 26, 2015
opencv_cffi-0.2.2.tar.gz (22.8 kB) Copy SHA256 Checksum SHA256 Source Oct 26, 2015 (28.0 kB) Copy SHA256 Checksum SHA256 Source Oct 26, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS 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