Skip to main content

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

Project description

Requirements

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:

http://opencv.org/downloads.html

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).

Building

E.g.:

$ opencv=~/Development/opencv-3.0.0 \
  LD_LIBRARY_PATH=$opencv/lib/ \
  DYLD_LIBRARY_PATH=$LD_LIBRARY_PATH \
  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 \
  LDFLAGS=-L$opencv/lib\
  pypy opencv_cffi/build.py

Project details


Download files

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

Files for opencv_cffi, version 0.2.2
Filename, size File type Python version Upload date Hashes
Filename, size opencv_cffi-0.2.2-pp27-none-macosx_10_11_x86_64.whl (45.7 kB) File type Wheel Python version pp27 Upload date Hashes View
Filename, size opencv_cffi-0.2.2.tar.gz (22.8 kB) File type Source Python version None Upload date Hashes View
Filename, size opencv_cffi-0.2.2.zip (28.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page