Solved

Use of OPENCV library in visual C++ win32 console application

Posted on 2014-12-06
1
247 Views
Last Modified: 2014-12-08
Hello All,

After installing,configuring OPENCV in Microsoft visual studio,I created a project ,used opencv functions and simply compiled,which worked fine but giving error while running it.i.e. missing some opencv dll file.Please reinstall your application.

I have reinstalled the app,but of no use.
Earlier while configuration,I put the dir at D drive,Changed it to C drive but same dll missing error.
Below is my three lines of code.

#include "stdafx.h"
#include <string>
#include <stdio.h>
#include "opencv2/core/core.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
using namespace cv;

int _tmain(int argc, _TCHAR* argv[])
{
      std::string Imgpath="C:\testImage";
      Mat img = imread(Imgpath, CV_LOAD_IMAGE_UNCHANGED);
      /*Size new_size = img.size();
      resize(img, img, new_size);
      namedWindow("Step 1", CV_WINDOW_AUTOSIZE);
      imshow("Step 1", img);*/

      return 0;
}

Please help.
0
Comment
Question by:BYTECHINDIA
1 Comment
 

Accepted Solution

by:
BYTECHINDIA earned 0 total points
ID: 40486444
At last I solved it by importing the required dlls locally.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
This article will show, step by step, how to integrate R code into a R Sweave document
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now