Ask Your Question

Kinimod's profile - activity

2015-02-04 15:01:49 -0500 commented question Access Violation by reading msvcr120d.dll VC12

Hey Guys,

Here is the answer :) I've identified the cause.

Properties Pages -> General -> Character Set was not set to anything. I changed it to Unicode and now it works fine.

2015-02-03 13:40:23 -0500 asked a question Access Violation by reading msvcr120d.dll VC12

Hello guys,

I'm using Visual Studio 2013. I have a x64 Windows 7 with Visual Studio 2013 -> VC12 and OPENCV 2410. I've done the following steps for another x64 System with VC12 and OPENCV 2410, but Windows 8.1. The code works fine on the last named machine.

But I get a access violation error by reading msvcr120d.dll on the first one.

I have hardcoded the path to the library and include folder for testing. Also the path to the image. So opencv is set in C:\opencv

Set the configs to:

Added user variable with name "OPENCV_DIR" and path "C:\opencv\build\x86\vc12"

Added the bin-path to system's path environment variable: %OPENCV_DIR%\bin

Compiler -> General -> Additional libraries: C:\opencv\build\include

Linker -> General -> Additional libraries: C:\opencv\build\x86\vc12\lib

Linker -> Input :

opencv_core2410d.lib opencv_imgproc2410d.lib opencv_highgui2410d.lib opencv_ml2410d.lib opencv_video2410d.lib opencv_features2d2410d.lib opencv_calib3d2410d.lib opencv_objdetect2410d.lib opencv_contrib2410d.lib opencv_legacy2410d.lib opencv_flann2410d.lib

This is my test code:

#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>

using namespace cv;
using namespace std;

int main(int argc, char** argv)
{    
    String path = "Capture.PNG";
        Mat image = imread(path, IMREAD_COLOR); // Read the file

    waitKey(0); // Wait for a keystroke in the window
    return 0;
}
2015-02-03 12:48:57 -0500 commented question Access Violation with imread

Hello NeVrOzAy, could you please post some more information? I have the same issue. I've read the tutorials again and again, but I have not found any solution. Do you have any link to a tutorial, which fixed your issue?

2015-01-30 13:33:19 -0500 commented question namedWindow does not show window

Oh... sorry, you're right... So I hard coded the reference and removes the argument condition

//if (argc != 2)
//{
//  cout << " Usage: display_image ImageToLoadAndDisplay" << endl;
//  return -1;
//}

So I have figure out now what's going wrong by executing the exe with command prompt. Thank you. Now it works fine.

2015-01-30 12:47:13 -0500 received badge  Editor (source)
2015-01-30 12:43:32 -0500 commented answer namedWindow does not show window

Thanks, but my issue is that the image window is not displayed. So it finds referenced image, but the image window is not displayed.

2015-01-30 12:40:28 -0500 commented question namedWindow does not show window

yes, I know... so the sample works here on my machine and finds the referenced image, because it does not return -1 and waits for a key stroke, but the image window is not displayed.

2015-01-30 11:28:08 -0500 asked a question namedWindow does not show window

Hello,

I'm using VC12 and Win8.1. I think that I configured my project fine, because it compiles.

I use this sample code http://docs.opencv.org/doc/tutorials/...

So I run the application without debugging about VC12. The Message " Usage: display_image ImageToLoadAndDisplay" is displayed and the console application waits for key stroke. But no new window will be displayed.

Same issue by executing the program about command prompt.

I tried also the execution by using admin rights, but it does not display any new window.

Any hints for fixing this issue?