background preloader

Linux

Facebook Twitter

OpenCV and Pi Camera Board ! | Think RPI. Raspberry Pi + OpenCV. OpenCV is a suite of powerful computer vision tools. Here is a quick overview of how I installed OpenCV on my Raspberry Pi with debian6-19-04-2012. The guide is based on the official OpenCV Installation Guide on Debian and Ubuntu. Before you begin, make sure you have expanded your SD card to allow for the install of OpenCV.

Its a big package with lots of dependencies. You can follow my instructions here. Once you have expanded the SD card, open up a terminal and install the following packages: There are some dependency issues with the order of the install, mostly with regard to libjpeg issues, so be sure to install in this order. Next, pull down the source files for OpenCV using wget: wget Once finished downloading, extract the archive, remove the no longer needed archive (to save space), change directory to the top of the source tree, make a directory for the build, and change into it: cmake-gui ..

Installation d'opencv linux. Ben je tente un article pour aider ceux qui aurait des problemes avec l'utilisation d'opencv sous linux. le fichier brouillons .odt fait 3 pages Que ce que opencv désole mais la question à déjà sa réponse sur un autre tuto du forum. Pour ce document je pars du principe que vous savez ce qu'est opencv.

Ceci n'est en rien un cours sur openCV mais sur son installation sous GNU/Linux quand celle-ci pose problème. Pourquoi cet article En apprenant à utiliser opencv j' ai souvent rencontré des erreurs non compilation. Comment lire ce document Ce document n'est pas prêt d'être complet car il sera écrit au fur et à mesure que je trouverai des solutions à de nouveau problèmes. Installation automatique: Il est possible d'installer opencv depuis la plus part des distributions respective en utilisant l'installateur par défaut. Code : a l'heure ou est écrit cet article, une telle installation aboutirait a l'installation de opencv-1.0. Installation Manuelle: cd /usr/include/ffmpeg . How to install FFmpeg & OpenCV under Fedora Linux - Wireless Video Sensor.

If you have FFmpeg already installed and is working fine together with ffplay, you can skip the FFmpeg Step.If you don't trust your current FFmpeg or OpenCV unstall them this way: A--- cd "The original folder you installed them from" e.g. for OpenCV cd OpenCV-2.1.0 or cd ffmpeg-0.5.1 B--- make uninstallC--- make clean allD--- cd ..E--- rm -rf OpenCV-2.1.0 or rm -rf ffmpeg-0.5.1 FFmpeg step: 1--- Download FFMpeg 2--- su 3--- tar xzf ffmpeg-0.5.1.tar.gz 4--- cd ffmpeg-0.5.1 5--- . 6--- make all 7--- make install all The –-enable-shared option during configuration ensures compatibility between LGPL licence of ffmpeg contents and BSD licence of OpenCV. ADDITIONAL IMPORTANT STEPS (before installing OpenCV)A few header files of ffmpeg may need to have a symbolic link created.

Open the folder where library files of ffmpeg have got installed in your system. Ln -s libavcodec/avcodec.h avcodec.h ln -s libavformat/avformat.h avformat.h ln -s libavformat/avio.h avio.h ln -s libavutil/avutil.h avutil.h 5--- . OpenCV. Fedora 15 Compile OpenCV-2.2.0 From Source Herman Oosthuysen, GPL, 2011 Fedora Linux 15 Scope This is a brief guide to compiling OpenCV on Fedora 15, since the package included with Fedora does not work with video, which makes it rather useless. The biggest problem is finding a combination of software versions that work together and then a few small bugs need to be fixed which arose due to changes in the Linux kernel video drivers. Read my other guides on X264 and FFmpeg and compile them first. Download It is important to use the correct old version of FFmpeg-0.6.3.

Go to Source Forge and download the older version 2.2.0 of OpenCV: Unpack it: $ tar -jxvf OpenCV-2.2.0.tar.bz2 $ cd OpenCV-2.2.0 $ mkdir release $ cd release Configure In my case, ccmake didn’t crash, but it also didn’t work. Build and Bug Fixes Build OpenCV: $ make Bug fix for error: ‘ptrdiff_t’ does not name a type $ gedit .. Install La voila! RPM Fedora 15 opencv-devel 2.2.0 i686 rpm. Install OpenCV 2.3 with video support in Fedora 15 « Pratyush’s Weblog. Much has changed since OpenCV 2.0.. android support, CUDA support, etc are up and running. So is the change in the method of installing OpenCV. So, i though to quickly jot down the steps to follow for a painless install. I must add, due to changes in gcc, removal of libv4l support from linux kernel, etc.. OpenCV 2.1 and 2.2 give loads of issues during install. I just couldnt manage installing v2.1, though v2.2 needed few hacks as mentioned in the link : . So, for people wanting to install v2.2, can follow exactly same steps mentioned below after making the above hack.

Note that, even UVC-webcams dont work with v2.2. 1. (i have tried copying the package names via OCR software and some editing as much as could be possible from the screenshot below) 2. And you are done !!! NOTE : due to requests for Ubuntu specific steps, i’ll put the changed steps in this post itself in a few days. Install OpenCV in Linux with video (ffmpeg) support « Pratyush’s Weblog. Faced with the task of running Computer Vision problems in Linux environment, i started googling for the methods.. Though i found the install steps at many places, but my install always failed, getting stuck while doing a make operation on the source files.

Finally, i managed to install it from source.. I am listing the steps here, with a special thanks to all the people, their blogs and google for helping me succeed in installing OpenCV. Download ffmpegExtract contents to a folder. do a cd to the folder location in the terminal. Build ffmpeg as follows (as root) : su -c. The –enable-shared option during configuration ensures compatibility between LGPL licence of ffmpeg contents and BSD licence of OpenCV.ADDITIONAL IMPORTANT STEPS (before installing OpenCV)goto the folder where library files of ffmpeg have got installed in your system. you can do a “locate ffmpeg” to know that. for e.g, in my case, its /usr/include/ffmpeg/Now, type in the follwing (as root): . makemake install Like this:

Ubuntu