Ask Your Question
0

Opencv 3.1 display window without default button

asked 2016-03-18 02:23:24 -0600

kevin12 gravatar image

image description image description

Hello everyone,

currently i have a problem, please help me.

with this code

  VideoCapture cap(0);
        if(!cap.isOpened()) // check if we succeeded
            return -1;

          Mat edges;
         namedWindow("edges",3);
          cv::resizeWindow("edges",820,820);

          for(;;)
          {
            Mat frame;
            cap >> frame;
            imshow("webcam", frame);
            if(waitKey(30) >= 0) break;
           }

but i want to display camera without button and coords for user, how i can to do this?

edit retag flag offensive close merge delete

Comments

1

Did you compile opencv with Qt support? I think you cannot do what you want without recompiling opencv without Qt support.

theodore gravatar imagetheodore ( 2016-03-18 03:30:15 -0600 )edit
2

Does the following do what you want?

cv::namedWindow( "edges", CV_WINDOW_KEEPRATIO | CV_WINDOW_NORMAL | CV_GUI_NORMAL );
Der Luftmensch gravatar imageDer Luftmensch ( 2016-03-18 07:09:10 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-03-23 15:05:50 -0600

kevin12 gravatar image

updated 2016-03-27 07:19:05 -0600

Thanks, my problems was just name in namedWindow("edges",3); have to same that imshow("edges", frame); and this cv::namedWindow( "edges", CV_WINDOW_KEEPRATIO | CV_WINDOW_NORMAL | CV_GUI_NORMAL );run

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-03-18 02:23:24 -0600

Seen: 558 times

Last updated: Mar 27 '16