Ask Your Question

Faraz's profile - activity

2015-03-29 10:30:05 -0600 asked a question dll error when trying to read an image in via imread in Qt

I installed Qt Creator and OpenCV using this guide: http://www.laganiere.name/opencvCookb.... I followed it exactly and was able to run the Hello my World program, but when I want to load a simple image and show it in openCV using the exact same code shown in the tutorial I get errors.

I have added all the paths and added all the libraries, so I am beyond that part. Now when I run my program I get the following error:

OpenCV_wrk.exe has stopped working.

Details show this:

Problem Event Name: APPCRASH
  Application Name: opencv_plzwork.exe
  Application Version:  0.0.0.0
  Application Timestamp:    551719ec
  Fault Module Name:    QtCore4.dll
  Fault Module Version: 4.8.6.0
  Fault Module Timestamp:   00000000
  Exception Code:   c0000005
  Exception Offset: 0001915b
  OS Version:   6.1.7601.2.1.0.256.1
  Locale ID:    2057
  Additional Information 1: 4c0d
  Additional Information 2: 4c0d4d78887f76d971d5d00f1f20a433
  Additional Information 3: 4c0d
  Additional Information 4: 4c0d4d78887f76d971d5d00f1f20a433

And when I press debug I get:

gdb.exe has stopped working with the following details:

 Problem Event Name:    APPCRASH
  Application Name: gdb.exe
  Application Version:  0.0.0.0
  Application Timestamp:    49a7f7bd
  Fault Module Name:    msvcrt.dll
  Fault Module Version: 7.0.7601.17744
  Fault Module Timestamp:   4eeaf722
  Exception Code:   c0000005
  Exception Offset: 000143f9
  OS Version:   6.1.7601.2.1.0.256.1
  Locale ID:    2057
  Additional Information 1: 0a9e
  Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
  Additional Information 3: 0a9e
  Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

After this I get the QtCore4.dll error again.

This has really consumed my entire day. Any guidance here would be appreciated.

I am running this on a 64 bit Windows 7. With Qt 4.8.6, mingw 4.4 and QtCreator 2.6.1 (Yes I know these are not the latest but I need this exact version to run an old program)

2012-10-18 17:20:15 -0600 commented answer Understanding the official histogram tutorial

Yes sorry, I had mistaken the cvRound function for the void Circle() function.. dont know why.. That was the reason I did not understand it. You are right about the histimage and it is a declaration of a function later used in the line function.. Also you did not have to be so harsh, as I was saying I am learning this and its normal for me to confuse two functions..

2012-10-18 16:25:28 -0600 received badge  Critic (source)
2012-10-18 03:43:38 -0600 asked a question Understanding the official histogram tutorial

Hi,

Im following the online documentation of opencv 2.4 to learn it. I am at histogram calculation and found a section that was not commented and not explained at all.

The section I am talking about is point number 5, which I have pasted below:

// Draw the histograms for R, G and B
int hist_w = 512; int hist_h = 400;
int bin_w = cvRound( (double) hist_w/histSize );

Mat histImage( hist_h, hist_w, CV_8UC3, Scalar( 0,0,0) );

The tutorial does not state what hist_w and hist_h are and why are they given these values? Also why was a circle detecting function (cvRound) used here and no comment on its function.

Can some one please address these issues, I have spent way too long on the histogram section.

Thank you