Solved

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

Posted on 2014-12-06
1
255 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
This article will show, step by step, how to integrate R code into a R Sweave document
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

739 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