Ceci est une ancienne révision du document !
Table des matières
OpenCV 2.4.11
doc d'installation: http://docs.opencv.org/doc/tutorials/introduction/linux_install/linux_install.html#linux-installation
http://opencv.org/downloads.html
wget https://github.com/Itseez/opencv/archive/2.4.11.zip unzip 2.4.11.zip cd opencv-2.4.11 sudo apt-get install python-sphinx sphinx-common mkdir release cd release cmake -D BUILD_DOCS=YES -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local .. make sudo make install
Obsolète Doc OpenCV
Version 2.1
Dans cette version, les images sont des matrices, il n'y a plus besoin d'utiliser les IplImage
version c
version c++
vrac
vielle doc pas à jour (2006) http://www.cs.iit.edu/~agam/cs512/lect-notes/opencv-intro/opencv-intro.html#SECTION00073000000000000000
liste de codecs
installation sur mac
http://opencv.willowgarage.com/wiki/Welcome
http://opencv.willowgarage.com/wiki/Mac_OS_X_OpenCV_Port
sudo port selfupdate sudo port install opencv sudo port upgrade opencv
ls -la /opt/local/lib/ | grep cv -rwxr-xr-x 2 root admin 2622620 6 jul 15:17 libcv.4.dylib lrwxr-xr-x 1 root admin 13 6 jul 15:17 libcv.dylib -> libcv.4.dylib -rwxr-xr-x 2 root admin 970 6 jul 15:17 libcv.la -rwxr-xr-x 2 root admin 1266416 6 jul 15:17 libcvaux.4.dylib lrwxr-xr-x 1 root admin 16 6 jul 15:17 libcvaux.dylib -> libcvaux.4.dylib -rwxr-xr-x 2 root admin 1009 6 jul 15:17 libcvaux.la
OpenCV dans un projet Qtcreator sur mac
Dans le fichier .pro avec Qtcreator
INCLUDEPATH += /opt/local/include/opencv/
LIBS += -L/opt/local/lib/ -lcxcore -lcv -lcvaux -lhighgui
Dans les options de projet, regler
DYLD_LIBRARY_PATH à /opt/local/lib et LD_LIBRARY_PATH à /opt/local/lib
OpenCV enregistrement images et video
Version C++
#include <cv.h> #include <highgui.h> int width=600; int height=600; cv::VideoWriter *Video; Video=new cv::VideoWriter("./out.avi",CV_FOURCC('D','I','V','X') ,15,cv::Size(width,height),true); cv::Mat *Img; Img=new cv::Mat(height,width,CV_8UC3,( char *)HokuyoProcess->im_ray->data); Video->operator <<(*Img); delete Video;
//pour generer une image aleatoire randu(*Img, cv::Scalar(0), cv::Scalar(256)); //pour sauver en jpg cv::imwrite("./out.jpg",*Img);
http://aspratyush.wordpress.com/2010/04/22/install-opencv-in-linux-with-video-ffmpeg-support/
http://stackoverflow.com/questions/903753/opencv-cvcreatevideowriter-always-returns-null
OpenCV sous Windows
avec Visual C++ express 2008
- dans le dossier C:\Program Files\OpenCV\otherlibs\highgui
- ouvrir highgui.vs2005.vcproj et le convertir; F7 pour compiler la lib
- le sous projet highgui de la solution opencv qui contient les 14 projets ne marche pas!!!
C:\Program Files\OpenCV\samples\c
exemple acquisition images: http://gb01.blogspot.com/2008/01/get-images-from-camera-using-opencv.html
http://www710.univ-lyon1.fr/~eguillou/doku.php?id=m2pro:image:opencv-camera
installation driver webcam mac sous windows:
autodetection
http://www.touslesdrivers.com/index.php?v_page=29
http://www.cnetfrance.fr/telecharger/en/apple-built-in-isight-39437486s.htm
faire toutes les actions de : http://forum.parallels.com/showthread.php?p=57896
This what I did to solve the problem. It seems to work fine.
Quote: Originally Posted by Tim Surgent The easiest way to get iSight drivers is: 1. Download and install latest Apple Boot Camp from http://www.apple.com/macosx/bootcamp/ 2. Browse to Macintosh HD→Applications→Utilities 3. Right-click the “Boot Camp Assistant” and select “Show Package Contents”. 4. Go to Contents→Resources and click the DiskImage.dmg to mount it. 5. Find the “Install Macintosh Drivers for Windows XP.exe” and copy inside your VM. 6. Run
pour faire marcher camera usb sous mac, utiliser macam: http://sourceforge.net/projects/webcam-osx/files/macam/0.9.2/macam.0.9.2.dmg/download
je telecharge bootcamp
install du fichier dmg → extraire les drivers windows
onsoir, pas besoin de graver une galette pour rien, Tu vas dans application, utilitaire, clique droit sur assistant bootcamp“afficher le contenu du paquet”, contents, ressources, disque image.dmg, ca te monte un disque virtuel “macintoshdrivers”.
Tu l'ouvre et tu prend le dossier “intall macintosh drivers …..exe” soit sur une clés USB soit tu le met direct dans ton disque windows (si il est en fat32, soit avec un DD ext