Avatar of Bytech India
Bytech India

asked on 

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

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.
C++Programming Languages-OtherResponsive Web

Avatar of undefined
Last Comment
Bytech India
ASKER CERTIFIED SOLUTION
Avatar of Bytech India
Bytech India

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
C++
C++

C++ is an intermediate-level general-purpose programming language, not to be confused with C or C#. It was developed as a set of extensions to the C programming language to improve type-safety and add support for automatic resource management, object-orientation, generic programming, and exception handling, among other features.

58K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo