OpenCV: mudanças entre as edições
(→Compilando: novo url repo svn) |
|||
Linha 3: | Linha 3: | ||
Primeiro precisamos baixar o repositório | Primeiro precisamos baixar o repositório | ||
=== | === Git === | ||
$ git svn clone http://code.opencv.org/svn/opencv/trunk opencv-git | |||
=== | === SVN === | ||
$ | $ svn co http://code.opencv.org/svn/opencv/trunk | ||
=== Building and Installing === | |||
Linha 34: | Linha 30: | ||
Press "c" (configure) until a "g" key (generate) shows up. Then press it and follow the remainder of the above instructions. | Press "c" (configure) until a "g" key (generate) shows up. Then press it and follow the remainder of the above instructions. | ||
=== Dependencies === | |||
If any dependencies come up, just install them using | If any dependencies come up, just install them using |
Edição das 10h33min de 27 de junho de 2012
Compilando
Primeiro precisamos baixar o repositório
Git
$ git svn clone http://code.opencv.org/svn/opencv/trunk opencv-git
SVN
$ svn co http://code.opencv.org/svn/opencv/trunk
Building and Installing
Feito isso, vamos a compilação e instalação. Acredito que tudo deve ocorrer sem maiores complicações.
$ cd opencv $ cmake ./ $ make $ sudo make install
E pronto! OpenCV já está instalado.
Optional: to better set the compile options, use "ccmake" instead of "cmake":
$ ccmake .
Press "c" (configure) until a "g" key (generate) shows up. Then press it and follow the remainder of the above instructions.
Dependencies
If any dependencies come up, just install them using
apt-get install <dependency package>
The apt-file utility is sometimes useful to find the package containing dependency files.
Utilização
Linkagem
Para saber quais bibliotecas incluir na para compilar seus códigos fontes, use o comando
$ pkg-config opencv --libs
O que aparecer na tela, você deve colocar na linha de comando para compilar seu arquivo sem problemas, dessa forma (utilizando o gcc)
$ gcc [o resultado do pkg-config] seu_arquivo.c
Links
Página oficial dos desenvolvedores
http://opencv.willowgarage.com/wiki/
Mapa básico de funções
http://opencv.willowgarage.com/wiki/Welcome?action=AttachFile&do=view&target=opencv_cheatsheet.pdf
Definições das funções
http://www.cs.iit.edu/~agam/cs512/lect-notes/opencv-intro/opencv-intro.html
Um pequeno tutorial que contém 3 funções básicas
http://web.tagus.ist.utl.pt/~alexandra.ribeiro/TFC/OpenCV/tutorialOpenCV.pdf