Install OpenCV 2.4.8 with Visual studio 2012

Jack Walker · 47K views · 2014 · 11:38

Open on YouTube

C, C++, Rust, Go & systems languagesComputer vision, speech & NLPTesting, debugging & developer toolstutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it when answering OpenCV linking and setup errors in Visual Studio, such as unresolved identifiers or missing opencv .lib files.

Recommended by 3 people across 3 different months, 2014 to 2016.

What it is

A screen-capture tutorial by Jack Walker showing how to install OpenCV 2.4.8 and wire it into a Win32 console project in Visual Studio 2012 or 2013. It walks through adding include and library directories, the x64 platform, and the Debug and Release linker dependencies.

What people said

Recommends Ricardo · 2014-12 · Stack Overflow · on “Build OpencvBlobsLib in Windows Environment”

Step by step (I put this tutorial in github issues but closed) I download your cvBlobslib ( [LINK] ) I create an Empty Project in Visual Studio 2013 I put the 6 .h and 5 .cpp in the project I Binding all OpenCV dependencies ( [this video] ) I download this file: pthreads-w32-2-9-1-release.zip 1.17MB and Unzip in this Folder: C:\pthreads.hWin32 (I create this folder) This folder had 3 Subfolders: "Pre-built.2" , "pthreads.2" , "QueueUserAPCEx". "Pre-built.2" had 3 Subfolders: "lib"(2 Subfolders: x64 with libpthreadGC2.a(Exetension .a) and pthreadVC2.lib, x86 I don't use it), "dll", "include" with 3 .h files. I add "include" in "Additional include directories". I add "lib" in "Additional library di

Recommends oz27 · 2015-12 · Stack Overflow · on “OpenCV - error LNK1104: cannot open file 'opencv_stitching248d.lib'”

i just download [LINK] opencv-3.1.0 and install it, and than i open project in visual studio and define OpenCV from this Video: [this video]

Recommends Abc · 2016-06 · Stack Overflow · on “Identifier not found with a function in Opencv, how to solve this?”

Ok. In order to use fastNlMeansDenoising(image, image, 3.0, 7, 21); 1) You need to configure opencv 2.4.8 or 2.4.9. Here is procedure to link [this video] opencv 249 with Visual studio. 2) Use the following code to test opencv function #include <iostream> #include <opencv2/opencv.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> using namespace std; using namespace cv; int main() { // load the image Mat img = imread("lenna.jpg"); if(!img.data) { cout << "File not found" << endl; return -1; } // show it in a window namedWindow( "Image", WINDOW_AUTOSIZE ); imshow("Image", img); // image window will immediately disappear if the program ends, so // we'll wait for a ke

Recommends Abc · 2016-06 · Stack Overflow · on “fastnlmeanfilter linking error”

You have some linking problem. Try again to configure Opencv 2.4.8 or 2.49 with Visual studio by this [this video] Procedure. Hope this will helps you. Cheers

Cites WikiMalik · 2016-12 · Stack Overflow · on “opencv imgproc error ( C++ VS2012 )”

Alright, So here is the simple code, [ Error Snapshot and Output Log at the bottom ] Update: I have already changed the library names (Debug+Release) from 248 to 2413) Update2: Turning On: Configuration Properties -> C/C++ -> Preprocessor -> Preprocess to a File changes the error to LNK1104 error>Line 1. #include<opencv2\highgui\highgui.hpp> #include<iostream> using namespace std; using namespace cv; int main(void) { Mat frame; frame=imread("room.jpg",CV_LOAD_IMAGE_UNCHANGED); while (waitKey(30)!=27) //27 is ascii equivalent of esc key { imshow("Image", frame); //loop line 1 } } Here are my OpenCV configuration settings I used for Visual Studio 2012 that I followed from this tutorial ( [VIDE