Sunday, April 14, 2013

How to install opencv(cv2) with python bindings in Linux - Ubuntu/Fedora

  1. Install gcc, g++/gcc-c++, cmake (apt-get or yum, in case of yum use gcc-c++)#apt-get install gcc, g++, cmake
  2. Downlaod latest opencv from openCV's website (
  3. Untar it #tar - xvf opencv-*
  4. Inside the untarred folder make a new folder called "release" (or any folder name) and run this command in it
    #"cmake -D

    the ".." will pull files from the parents folder and will get the system ready for installation for your specific platform.
  5. in the release folder  (#cd release) run #make
  6. After about 3-4 mins (obviously could be faster on your machine) of make processing when its finished run #make install
That's it, now go to python and try ">>> import cv2" you should not get any error message.
I've tested it on python 2.7, should be virtually similar to python 3.x.


Anonymous said...

An interesting discussion is worth comment. I do believe that you need to publish more about this subject, it might not
be a taboo subject but typically people don't discuss these subjects. To the next! Kind regards!!

Feel free to visit my web-site: microsoft registry cleaner

Anonymous said...

What's up, I would like to subscribe for this weblog to obtain most up-to-date updates, thus where can i do it please assist.

Have a look at my page ... payday loans

Anonymous said...

Itѕ likе you геad my thoughts!
You seem to grаsp so much about this, like you wrote thе e book in it or something.
I feel that you just cаn do with a few percent tо power the message home a lіttle bіt,
hοwеvеr іnѕtеad of that,
thіѕ іs fantastic blog. An еxcellent
read. I'll certainly be back.

My blog - payday loans

Anonymous said...

This paragraph is really a fastidious one it helps new
web viewers, who are wishing for blogging.

Here is my web page

Anonymous said...

Hello there! Do you know if they make any plugins to help with SEO?
I'm trying to get my blog to rank for some targeted keywords but I'm not seeing very good gains.
If you know of any please share. Kudos!

Here is my web page

Anonymous said...

So, buy followers on twitter from such reputed companies and see your business growing at
fast pace. It allows you in one page to see your search, your Twitter
followers, allows you to shortens URLs and schedule tweets in
advance. If someone gets busted for having a fake account it is usually big news for five minutes then fades away.

Here is my web blog; please click the next post

Anonymous said...

Spot on with this write-up, I actually feel this amazing site needs a great deal more
attention. I'll probably be returning to read more, thanks for the info!

Also visit my blog - permanent hair straightening

Anonymous said...

Once the game is 80% complete you will need
to work on the sound. they simply need to learn that you
will not be able to appease everyone of your
player-base. As ever we strive to help our customers make informed decisions and understand where their r4
cards are coming from.

Also visit my blog: Read A lot more

Anonymous said...

Good info. Lucky me I found your blog by chance (stumbleupon).
I have saved as a favorite for later!

My web site: refinishing hardwood floors

Anonymous said...

After I initially left a comment I appear to have clicked the -Notify me when new comments are
added- checkbox and now every time a comment is added I get four emails with the same comment.
There has to be a means you can remove me from that service?

my site: dry scalp treatments

Anonymous said...

We are a gaggle of volunteers and starting a new scheme in our community.
Your web site provided us with helpful info to work on.
You've performed a formidable job and our entire community can be thankful to you.

Here is my homepage - tattoo removal cream reviews

Anonymous said...

You are my breathing in, I have few blogs and rarely run out from post :).
"The soul that is within me no man can degrade." by Frederick Douglas.

Feel free to visit my homepage; How to Hack twitter

Anonymous said...

What's up everyone, it’s my first visit at this web page, and piece of writing is genuinely fruitful in support of me, keep up posting these posts.

My web-site :: earn with surveys

Anonymous said...

Hello, Neat post. There is a problem with your web site in internet explorer, may test
this? IE still is the marketplace leader and a big component
of folks will miss your fantastic writing due to this problem.

Also visit my weblog ... saffron extract review

Anonymous said...

Perfect pan size we encourage you take them back to your hotel and have them prepared.
You will also want to have a supply of different lines that you
can use. Most of the fishable water in the upper river
is boulder runs in deep canyons and it is scenic.

Feel free to visit my blog -

Anonymous said...

No longer does a music lover need to bother about traveling out of range when a fantastic song comes on over
the vehicle radio. They also apparently believe that their customers who like a particular song they hear on the radio, are likely to purchase that song,
which could add to downloads from i - Tunes. There are many
websites that bring to people radio channels for their personal

Feel free to visit my homepage ... radio unam mexico

little yan said...

I have a question about installation of opencv on ec2. I follow all the steps listed by you, and after #make install, it says completed! But if I type #yum list installed. the opencv does not list on the menu. Is that possible?

Thanks in advance.

tychuot said...

To install OpenCV using the terminal on Ubuntu:
$ su -
# apt-get update
# apt-get install build-essential
# apt-get install libavformat-dev
# apt-get install x264 v4l-utils ffmpeg
# apt-get install libcv2.3 libcvaux2.3 libhighgui2.3 python-opencv opencv-doc libcv-dev libcvaux-dev libhighgui-dev

Emmanuel SALAWU said...

Thanks for this

developer at rrp journals

Weknow Fit said...

This is my first time i visit here. I found so many entertaining stuff in your blog, especially its discussion. From the tons of comments on your posts, I guess I am not the only one having all the enjoyment here! Keep up the excellent work.
one link solution
marketing services
brand development

Foreclosure Defense said...

Thank you Mediation!
Often times Lenders will offer residents cash for keys program rather than go through a lengthy eviction. Our dedicated team of Attorneys are experienced in negotiating such options with Lenders to get our clients the maximum assistance available. Call us at 773-317-6406 for a free Consultation.

NBA Fantasy Basketball said...

Welcome to daily fantasy basketball strategy!
Our fantasy basketball league
The NBA’s trade deadline is still over a month away but that didn’t make teams sit back and wait for February to make bold moves. we can guess that basketball and Tex have spoken recently about the problems Phoenix’s zone defense has posed to Tex’s beloved triple post offense.fantasy basketball 101.

I presume you want to talk about our execution. Fantasy Basketball 101 | NBA Daily Fantasy Basketball Advice, Strategy, and Tips. daily fantasy basketball strategy

NBA Fantasy Basketball said...

Thanks for posting!
We are posting very helpfully NBA basketball strategy articles every weeks. See new posts to our site. Daily Fantasy Basketball Advice April 3 is our last posts. I think you will get more information to our site. NBA Awards Predictions 2015: Who Will Go Home With The Hardware?

Anonymous said...

Your site is so assume for this reason I like your site very much and admire your think to create such kind of site.
I have a site which is use for move download with a moment.
payce software collection

Mary P Lomas said...

Thanks for sharing your great post. I’m starting with the most obvious idea. However, it’s actually one that’s sorely lacking

on many web design blogs. Advise people on the different styles, graphics, structures and

functions a website can have. People want to be inspired and guided through the

possibilities that exist. They also want to know you really do understand the many

complexities of designing a website.

johny said...

Hi sir,

Nice post & thank you for sharing this post to all.......

imran said...

Find Flats and Apartments for sale in Defence View Society Lahore, Pakistan's leading property portal.
For best: Defence View Apartments

Prottoy Digital said...

Search Engine Optimization (SEO) Services. There are a variety of search engine optimizationservices which offer solutions for a ranking issues, and deficiencies. Depending on your goals, and needs one, or a combination, of the below services may be right for your website.

Crack Taking said...

cracktaking is trusted source of all premium crack software, Serial Keys, Patches, Activators, Key gens, For all your devices Android, MAC, Windows. Cracktaking has a Great collection of all your Daily use Cracks Tools.

crackstools said...

Great site for these post and i am seeing the most of contents have useful for my Carrier.Thanks to such a useful information.Any information are commands like to share him.again thanks for your said...

This is a nice explaination of the topic Please share more about it. retired best storm bowling ball

Rajakumar N said...

Those guidelines additionally worked to become a good way to recognize that other people online have the identical fervor like mine to grasp great deal more around this condition.
aws training in chennai
advanced aws training in chennai