OpenCV Programming with Python on Linux Ubuntu 14.04 Tutorial-1 OpenCV Installation

preview_player
Показать описание
Tutorial on how to install OpenCV on 64bit Linux Ubuntu 14.04
########## INSTALLATION STEPS BELOW ###############
OpenCV was designed for computational efficiency and with a strong focus on real-time applications. Written in optimized C/C++, the library can take advantage of multi-core processing. Adopted all around the world, OpenCV has more than 47 thousand people in their user community and estimated number of downloads exceeding 6 million. Usage ranges from interactive art, to mines inspection, stitching maps on the web or through advanced robotics.
****************************************************************************
Source Code Steps For Installation
#get the latest download

#download dependencies
sudo apt-get install build-essential checkinstall cmake pkg-config yasm

sudo apt-get install libtiff4-dev libjpeg-dev libjasper-dev

sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev libxine-dev libgstreamer0.10-dev
libgstreamer-plugins-base0.10-dev libv4l-dev

sudo apt-get install python-dev python-numpy
sudo apt-get install libtbb-dev

cmake -D WITH_XINE=ON -D WITH_OPENGL=ON -D WITH_TBB=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_V4L=ON..

#ready for building
sudo make

#after building install for all users

sudo make install

#and enter the following line into it
/usr/local/lib

#close and save and exit and enter the following command
sudo ldconfig

PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
export PKG_CONFIG_PATH

#Now you are ready for testing

cd ~/OpenCV-2.4.6/samples/c


#try the python examples and make sure they work


any problems following this tutorial you can shoot me an email.
Рекомендации по теме
Комментарии
Автор

your work is very excelent, and your program with the Raspberry is great gift for the humanity, thanks!

doctorsensual
Автор

Thank you so much...Finally Installed!

rohitvarghese
Автор

Really nice video..clear explanation...
Can you put some tutorials regarding basic image processing in open cv?

rohanghige
Автор

thank you so much for sharing your knowledge that was very helpful

naqiazam
Автор

Is there a way to install OpenCV for Python 3.4 on Ubuntu 14.04? It seems not to be straight forward and I couldn't find any tutorials.
Thank you and great vid!

AAmorim
Автор

it's very useful, thanks for sharing dude!

billyzhong
Автор

The initial list of commands in your video doesn't quite match your comment list? Also I am using OpenCV 3.1.0 though I assume most of these commands will be easily adapted?
Do you possible have an newer installation tutorial?

freeflaminginfinite
Автор

Thanks, for the Comment. Yes, I will be doing some of those.

cesco
Автор

I keep getting this error despite of following all the steps, I even set the PYTHONPATH to source directory but it still gives the error, how do i solve this?
Traceback (most recent call last):
File "turing.py", line 20, in <module>
import cv2

rishabhkanwar
Автор

Wow, a great help to me. Thanks a lot. Really nice video. It works!! :-)

dimuthrs
Автор

Hello Dimuth, thank you for the comment. Hoping that it was helpful.

cesco
Автор

Hi, after I finish: make, and sudo make install, there are no errors. However, after this step, when I run the following step: sudo gedit /etc/ld.so.conf/opencv.conf, it has error. I didn't find the file opencv.conf in this directory, is any thing wrong?? thanks

tomava
Автор

i am not able to save the gedit file of bash.rc . It is telling me that i do not have permission.
Could you please tell me how I could solve this ?

anupamyedida
Автор

Actually, I have to use gedit to creat such a file. I have figured it out.

tomava
Автор

i have problem on this code : sudo apt-get build-dep libopencv-dev,
when i enter, the system keeping E:You must put some 'source' URIs in your sources.list.
Why???hope can get answer from u..i m strugling for half day on finding solutio, , ,

sumoking
Автор

Hi, I am all new in Ubuntu and I tried doing this:
"sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython- notebook python-pandas python-sympy python-nose".

However, my computer is unable to locate package of both notebook and python-pandas. As you said, I simply copied and pasted it.
Could anyone tell me what went wrong ?

cedriccarteron
Автор

Hey..I just wanted to ask if this Opencv Programming can process the image of 
Bacteria..?thank you..

arielfaustino
Автор

Hello sumo,
are you running ubuntu 13.04 or 12.04? and is your computer 32bit or 64bit? This is important because they will behave differently accordingly. There were some issues with the different versions. If it it is 13.04 it ships with opencv 2.4.2. which according to the opencv website should be enough. Follow the link that I have just included in the video description. if you have any questions.

cesco
Автор

Hello Francesco,
Thank you for your video above on opencv on ubuntu 12.04. I followed your video to the "t" precisely and the last portion followed Sebastian's site on running the python libraries after the final installation and reboot. Here's what I got by trying to run the Pathon2/turing.py in the directory:
Traceback (most recent call last):
  File "turing.py", line 10, in <module>
    import numpy as np
ImportError: No module named numpy)

PLEASE SEND ME YOUR EMAIL SO THAT I GET SOME FEEDBACK, MOLTO GRACI!!

Luiblonc
Автор

Hey! Have you considered - TK Explosion Easy Website Builder (search on google)? Ive heard some decent things about it and my friend got great results with it.

ahsanullah