Solved

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

Posted on 2014-12-06
1
244 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

746 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

13 Experts available now in Live!

Get 1:1 Help Now