OpenCV: mudanças entre as edições

De Pontão Nós Digitais
Ir para navegaçãoIr para pesquisar
(→‎Compilando: novo repo git)
 
(Uma revisão intermediária pelo mesmo usuário não está sendo mostrada)
Linha 3: Linha 3:
Primeiro precisamos baixar o repositório
Primeiro precisamos baixar o repositório


=== Repositório ===
=== Git ===
git clone https://github.com/Itseez/opencv.git


Testado no Ubuntu 11.04
=== Building and Installing ===
 
==== Git ====
 
$ git svn clone https://code.ros.org/svn/opencv/trunk opencv-git
 
==== SVN ====
 
$ svn co https://code.ros.org/svn/opencv/trunk
 
==== Building and Installing ====




Linha 34: Linha 25:
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 ====
=== Dependencies ===


If any dependencies come up, just install them using
If any dependencies come up, just install them using

Edição atual tal como às 15h49min de 23 de novembro de 2013

Compilando

Primeiro precisamos baixar o repositório

Git

git clone https://github.com/Itseez/opencv.git

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