Giter Site home page Giter Site logo

cvblob-python's Introduction

#python-cvblob ##Python Wrapper for the cvblob extension to OpenCV

#python-cvblob is deprecated! Please use the SimpleCV library instead http://simplecv.org it has fast findBlobs() functions!

###2011 Nathan Oostendorp, Ingenuitas Inc. http://ingenuitas.com

This wrapper provides cvBlob's functionality wrappered in a style similar to the native OpenCV python bindings. The function calls are as close as possible to the C++ functions so that you can use the C++ docs/example code.

Conventions are similar to the OpenCV 2.2 python interface, in brief:

  • functions: cvFUNCTIONNAME to FUNCTIONAME eg cvRenderBlob -> cvblob.RenderBlob
  • data structures: CvDATATYPE to DATATYPE eg cvTrack -> cvblob.Track
  • color triples and coordinates are expressed as tuples
  • vectors/arrays/lists expressed as python lists
  • maps are expressed as python dicts

For examples, look at the test python code.

###Brief install instructions (for OpenCV 2.2, cvBlob 0.10.3, Python 2.6, Boost Python 1.42 under Ubuntu 10.10):

####Step 1: install some prerequisite libraries:

apt-get install build-essential swig gfortran cmake gcc pkg-config libjpeg62-dev libtiff4-dev\
libpng12-dev libopenexr-dev libavformat-dev libswscale-dev liblapack-dev python-dev\
python-setuptools boost-build libboost-all-dev

####Step 2: Download most recent versions of NumPy, OpenCV, and cvBlob

####Step 3: Make NumPy, OpenCV, and cvBlob

#####Numpy:

python setup.py build --fcompiler=gnu95
python setup.py install
python -c 'import numpy; numpy.test()'

#####OpenCV:

mkdir BUILD
cd BUILD
cmake -D CMAKE_BUILD_TYPE=RELEASE -D BUILD_PYTHON_SUPPORT=ON -D WITH_TBB=ON -D CMAKE_INSTALL_PREFIX=/usr ..
make
make install
python -c ‘import cv;’

#####cvBlob:

cmake
make
make install
cd test
../bin/test

#####cvblob-python (from your cvblob directory):

cd cvblob-VERSION/contrib
git clone git://github.com/oostendo/cvblob-python.git python 
cd python/cvblob
./build.sh (you may need to edit if you have a different python than 2.6)
cd ..
python test.py
cp cvblob /usr/lib/python2.6/site-packages (or wherever)

###License This is offered under the GNU lesser GPL, the same license as cvblob http://www.gnu.org/licenses/lgpl.html

###Todo

  • finish tracking and contour wrappers
  • wrapper cvRelease* functions
  • add cmake or .egg setup ability
  • revamp tests as nose tests

###Acknowledgements Thanks to Willowgarage for OpenCV, Cristobal Carnero Linan for cvblob, Dave Abrhams for Boost Python, and et al.

cvblob-python's People

Contributors

oostendo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cvblob-python's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.