Installing python-tesseract on Mac OS X

I’ve used macports during this installation as it was more convenient for me. There are various installation guides for python-tesseract on the official website. Hopefully you already have xcode, apple-gcc, python, numpy and opencv installed. At the time of writing this, tesseract-ocr version was 3.01 (checked out revision 863) and python-tesseract version was 0.8-1.7 Step 1: Some […]

Apply Threshold Filter to Image Using OpenCV 2.4

In this python exercise we convert a color image to grayscale and then apply threshold filter to it. The threshold filter converts the grayscale image to a binary image. We also save the final image to the working folder. Note that a function called “shape” is used from the numpy library. The shape function gives the […]

Using OpenCV with Python on your Mac OS X

You are likely to be sorry if you casually started installing Python and OpenCV like me as documented here. You might have read stuff online and tired installing python26 or python27 as well as numpy and opencv using macports hoping that your py scripts will conveniently import cv Of course then you must have gotten stuck while […]