Open CVNN
Open CVNN
http://www.codebind.com/cpp-tutorial/install-opencv-ubuntu-cpp/
OpenCV is an image processing library created by Intel and later supported by Willow Garage
and now maintained by Itseez. OpenCV means Intel® Open Source Computer Vision Library.
It is a collection of C functions and a few C++ classes that implement some popular Image
Processing and Computer Vision algorithms. OpenCV is Available on Mac, Windows, Linux
(Terminal environment).
# cd /opt
/opt/opencv# cd release
/opt/opencv/release# ldconfig
/opt/opencv/release# exit
/opt/opencv/release$ cd ~
$ mkdir cpp_test
$ cd cpp_test
$ touch main.cpp
The above command will create a folder called cpp_test and create a main.cpp file inside it
Now place any .jpeg image inside the cpp_test folder.
So Now your cpp_test folder will contain two files as follows
.
├── sample.jpeg
└── main.cpp
//Uncomment the following line if you are compiling this code in Visu
al Studio
//#include "stdafx.h"
#include <opencv2/opencv.hpp>
#include <iostream>
using namespace cv;
using namespace std;
return 0;
}
$ ./output