summaryrefslogtreecommitdiff
path: root/opencv-qt-integration-1/README.md
blob: e58f939b7413f41cd442a0e59a5f8243d61cad53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
OpenCV - Qt Integration
=======================

This sample demonstrate how to display `cv::Mat` using `QLabel` widget. Tested on Mac OS X and Qt 5.3.0. The Python version is available on the `python/` directory.

<a href='http://postimg.org/image/4k1iv0kon/' target='_blank'><img src='http://s15.postimg.org/4k1iv0kon/opencv_qt.jpg' border='0' alt="opencv qt" /></a>

Compiling
---------

1. Change the current working directory:

    cd opencv-qt-integration-1

2. Modify the variables on `ImageViewer.pro` as needed then generate the Makefile:

    qmake

3. Compile:

    make

4. Run the generated executable.