After screwing up my Ubuntu see previous post and also my Arch Linux, I installed Ubuntu 11.10 and upgraded to 12.04.
Ubuntu 12.04 LTS – Precise Pangolin
Install OpenCV 2.3.1
sudo apt-get install libopencv-*
sudo apt-get isntall python-opencv
sudo apt-get install python-numpy
That’s it! OpenCV 2.3.1 is installed completely in Ubuntu 12.04 (Thanks for the package).
Install SimpleCV.
sudo apt-get install python-pygame
sudo apt-get install python-setuptools
sudo apt-get install ipython ipython-notebook # Not a necessity
Download the latest SimpleCV version from GitHub.
Extract it and change the directroy.
sudo python setup.py install
Arch Linux
Install OpenCV 2.3.1
pacman -S python2-numpy
pacman -S opencv 2.3.1_a-4
Install SimpleCV.
pacman -S python-pygame
pacman -S python2-setuptools
pacman -S ipython2 # Not a necessity
Download the latest SimpleCV version from GitHub.
Extract it and change the directroy.
sudo python2 setup.py install
P.S. GNOME shell 3.4 is quite neat.
Pingback: Install OpenCV 2.3.1 and SimpleCV in Ubuntu 12.04 Precise … | Pici's Ubuntu Blog
dude,
I’m new to openCV, and I want to use openCV with c++
so would you show me how to set it up for c++.
Thanx 🙂
If you are using Ubuntu 11.10 or prior. You can use OpenCV 2.1 and 2.3.1. OpenCV 2.3.1 has many new features and is quite fast in comparison to 2.1. But 2.1 has python swig bindings which 2.3.1 does not have since python bindings are written in ctypes.
For OpenCV 2.1:
sudo apt-get install libopencv
For OpenCV 2.3.1: http://www.marcolancini.it/other/opencv_install_231.php . This is the best post I have ever come across. Do as it says and you’re good to go.
For Ubuntu 12.04 and ArchLinux, I have mentioned how to install OpenCV.
For further information and documentation go through http://opencv.willowgarage.com/wiki/ . This website has everything that you would need. From setting up OpenCV in Linux/Windows/Mac to Machine Learning and SVM.
You should also join #opencv channel on freenode IRC if you have any problems.
I’m using Ubuntu 12.04
I installed opencv using the following:
sudo apt-get install libopencv-*
and configured it in codeblocks..
works like charm..
Thanx !!
BTW, can u plz tell me the difference between, OpenCV and SimpleCv..
There’s not much difference between OpenCV and SimpleCV. SimpleCV uses OpenCV python library and bunch of other libraries to make it much more simpler than OpenCV. SimpleCV is completely based on Python. SimpleCV is so easy to learn and work with.
http://simplecv.tumblr.com/post/19307835766/opencv-vs-matlab-vs-simplecv . This post is written by Anthony Oliver, one of the co-founders of SimpleCV. This will explain similarities and differences.
https://github.com/ingenuitas/SimpleCV/tree/master/SimpleCV/examples You can find some examples worked out using SimpleCV.
http://examples.simplecv.org/en/latest/index.html This will explain you what I really mean by how easy and user friendly SimpleCV is!
Thanx, I’ll have a look at it.
and,
Congrats for GSOC !!!
Thanks for that.
i am new in linux and … could you make a small sample and write the steps for see how i should to start writing my programs in openCv?
Added new post https://jayrambhia.wordpress.com/2012/05/08/beginning-opencv/ . And do have a look at OpenCV docs. It’s amazing.
Pingback: Beginning OpenCV « Paranoid Android
I’m using OpenCV to handle webcam input for a program I’m writing, but I’m having trouble getting my code to work in 12.04. I installed OpenCV as per the instructions above, which normally work in 10.04 and 11.04, but I think because the 2.3.1 version with CTypes doesn’t have highgui, which is the part of openCV I use to capture input.
>>> import opencv
NameError: name ‘opencv’ is not defined.
I normally use `from opencv import cv, highgui` to import highgui, but none of the following work either.
from cv2 import highgui
from cv import highgui
Any suggestions?
OpenCV 2.3.1 has ctypes. They no longer have swig bindings. They have merged highgui into cv.
In OpenCV 2.3.1 python bindings, they have merged everything in cv2 .
>>> from cv2.cv import *
should work.
You can also do this.
Added a new post. https://jayrambhia.wordpress.com/2012/05/10/capture-images-and-video-from-camera-in-opencv-2-3-1/
the link to simplecv is 1.2, but to get it to work with ipython 0.12 I need simplecv 1.3
SimpleCV 1.3 has not been released yet. You’ll get the latest version from GitHub.
yes I know. But I’m supid and I can’t figure out how to do it. Do I use the git clone command? If so which address?
You could download the tar file and extract it from https://github.com/ingenuitas/SimpleCV/downloads
or
git clone git://github.com/ingenuitas/SimpleCV.git simplecv
when I download the tar file from https://github.com/ingenuitas/SimpleCV/downloads and I look at setup.py the version number is still 1.2. Is there a direct link the the 1.3 tar file?
SimpleCV 1.3 hasn’t been released yet. It’s still 1.2 .
They are going to release 1.3 in a month or so.
I know it hasn’t been released yet, but I thought there might be a development version available. Anyway I don’t really care about 1.3 in particular. I just want my simplecv shell to work, but there is a bug in 1.2 that prevents it from working with iphython 0.12 which is what ubuntu 12.04 comes with. Does your simplecv shell work after following the intructions in your post?
I have installed it as i have mentioned. And SimpleCV shell is also working well.
Could you tell me what errors you are getting ?
:$ simplcv
simplecv: command not found
:$ python -m SimpleCV.__init__
ImportError: No module named Shell
http://help.simplecv.org/question/146/discovering-simplecv
I have ipython 0.12 . Shell is working fine. And as you mentioned
$ python -m SimpleCV.__init__
is also working. I don’t know what’s wrong with your SimpleCV library. Try to re-install it. And have you installed ipython-notebook ? If you haven’t, try that. It might work. Meanwhile, I’ll look into the problem.
Check in your SimpleCV folder. Do you have a folder named Shell or not ? and what files do you have in that ?
what simplecv folder do you mean? Is there a path you can give me? I’m new to ubuntu, but from what I understand there is no organized folder to hold program files. Files are spread out over the disk, almost at random.
/usr/local/lib/python2.7/dist-packages/SimpleCV-1.2-py2.7.egg/SimpleCV
Everything will be here.
hmm, /usr/local/lib/python2.7/dist-packages is empy
hmm, after rerunning sudo python setup.py install I can now run simplecv. Thank you very much for your help
Oh. I think there might be some problem with installation before.
Pingback: Install OpenCV 2.3.1 in Ubuntu 12.04 | Programming and Technology
Pingback: Get data from Mat / cv::Mat in OpenCV « Paranoid Android
Pingback: Get data from Mat / cv::Mat in OpenCV | Paranoid Android
Hello,
I have an upgraded from ubuntu 11 to ubuntu12 machine.
For some reason on my machine, your command
> sudo apt-get install libopencv-*
creates an error in my apt database and I was unable to install any new software at all! D: The error was about trying to install libraries that were already installed.
I fixed it by issuing
> sudo dpkg -r libopencv2.3
> sudo dpkg -r libopencv2.3-bin
Thought I would share for others encountering similar issues.
Pingback: Herramientas para procesamiento de Imagen: OpenCV, SimpleCV, PIL | Sitio de Redes e informática
Pingback: Object Tracking on the Raspberry Pi with C++, OpenCV, and cvBlob « ProgrammaticPonderings
Hey Can you help regarding cross compilation of cvBlob library.
Thanks in advance…!!!
I think you mean ipython-notebook instead of ipython-netbook?
Oh! yeah. Sorry, my bad. I’ll update it.
Thanks.
Cheers!
Jay
hello, i’m new in opevcv
i would like install opencv_2.4.5 to my ubuntu 12.04 32 bit
at make stage fail, can let me know how to solve?
I went through this article and now i can install opencv on linux
http://namhuy.net/1205/how-to-install-opencv-on-ubuntu.html
In Ubuntu instructions:
sudo apt-get “isntall” python-opencv
Great tutorial, Thanks.
Hey. There is a small error in the code to download and install OpenCV.
sudo apt-get isntall python-opencv
You have typed it in as “isntall”. Please check it out and correct the same.
BTW, thanks a lot for the codes 😀