diff options
author | Patrick Simianer <p@simianer.de> | 2016-11-26 12:40:34 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2016-11-26 12:40:34 +0100 |
commit | 162187608bbaf1f79d38c88803754c8e58359129 (patch) | |
tree | 24a10ed5f715585215377854af6c0cbde276ca83 /opencv-qt-integration-2/README.md | |
parent | 89ec4030ba4e426e6e7992336a6665ef9d37ec48 (diff) |
cleanup
Diffstat (limited to 'opencv-qt-integration-2/README.md')
-rw-r--r-- | opencv-qt-integration-2/README.md | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/opencv-qt-integration-2/README.md b/opencv-qt-integration-2/README.md deleted file mode 100644 index 7c1725b..0000000 --- a/opencv-qt-integration-2/README.md +++ /dev/null @@ -1,41 +0,0 @@ -OpenCV - Qt Integration -======================= - -This code sample shows you how to do basic image manipulation to an image and display the result using the `QLabel` widget. The code loads `The_Chapter_House.jpg` from the `assets/` directory and provides two buttons to perform some basic manipulation. - -![screenshot](http://i.imgur.com/OPCiEw8.png) - -The same program written in Python is available in the `python/` directory. - -To compile and run the code, you need to have Qt 5 installed on your computer. The code is successfully tested on the following environment: - - - Mac OS X Mavericks - - Qt 5.3.0 - - OpenCV 3.0.0 - - Python 3.4.1 - -Compiling ---------- - -Open `ImageApp.pro` and modify the variables to match with your system. For example, you might need to modify the paths for the includes and libraries especially if you're on Windows. - - INCLUDEPATH += /usr/local/include - LIBS += -L/usr/local/lib -lopencv_core -lopencv_highgui -lopencv_imgproc -lopencv_imgcodecs - -Change your working directory and compile the code by typing: - - qmake - make - -If everything is ok, it will produce an executable: `ImageApp` (Linux), `ImageApp.exe` (Windows), or `ImageApp.app` (Mac). Run the executable and you will see the GUI like the screenshot above. - -Known Issues ------------- - -In `ImageApp.cpp`, the code using relative path to locate the input image: - - img = cv::imread("../assets/The_Chapter_House.jpg"); - -If the program cannot display the image and shows the "Cannot load the input image!" warning, try to use absolute path instead. For example: - - img = cv::imread("/full/path/to/The_Chapter_House.jpg"); |