Ask Your Question

andrempunkt's profile - activity

2020-12-17 02:29:47 -0600 received badge  Notable Question (source)
2020-07-11 18:23:34 -0600 received badge  Popular Question (source)
2018-08-29 08:35:25 -0600 received badge  Student (source)
2013-05-18 07:27:43 -0600 commented answer printf output is too late

thanks for the fast answer, worked perfect :)

2013-05-18 05:49:02 -0600 asked a question printf output is too late

Hi, i have the following code:

#include "highgui.h"
#include "stdio.h"
using namespace std;

const char* name="Example1";

int main(int argc, char** argv) {
    IplImage* img = cvLoadImage(argv[1]);
    cvNamedWindow( name, CV_WINDOW_AUTOSIZE);
    cvShowImage( name, img);
    printf("HelloWorld...");
    cvWaitKey(0);
    cvReleaseImage(&img);
    cvDestroyWindow (name);
}

It is all working but the "HelloWorld" is not written until I press a key. I don't understand why it is not written before.

ciao, Andre

2013-05-05 03:36:33 -0600 asked a question findContours debug assertion failed

Hi,

I tried to run an exampleCode I have found, but the function

enter code here

Mat temp; threshold.copyTo(temp); //these two vectors needed for output of findContours vector< vector<point> > contours; vector<vec4i> hierarchy;

findContours(temp,contours,hierarchy,CV_RETR_CCOMP,CV_CHAIN_APPROX_SIMPLE );

enter code here

seems to produce an error. image description

Is there something obvouis wrong ?

C ya, Andre

2013-03-25 07:24:08 -0600 answered a question set size of an window

Thanks, the Parameter CV_WINDOW_NORMAL has done the trick, works fine.

Ciao, Andre

2013-03-20 17:56:36 -0600 asked a question set size of an window

Hi,

the following code produces a window, that is a little bit to large for my taste. How can I set the size of an window (in px or something like that)?

Hi,

the following code produces a window, that is a little bit to large for my taste. How can I set the size of an window (in px or something like that)?

Code: int main(){

VideoCapture cam("Basketball.mp4");
Mat image;
namedWindow("window");

while(1){
    cam >> image;
    imshow("window", image);
    if(waitKey(30) == 8) break;
}

}

enter code here