Ask Your Question

How To Display image while capturing Video

asked 2014-04-02 04:23:26 -0500

Kaanx gravatar image

Hi , Do u have any idea How can ı display my image , While at the same time, within the framework of this video, the video captures a image how do I do ?

I am trying to make control console with opencv. I figured as first step I have to generate motion button or like referance links. May you help me anyone ? I have to write with C or C ++. And I am using Ubuntu 12.04 opencv 2.4.8 Referance Links for example ;

I gave you some example like my project. I want to generate as first step Display one image on video screen Just this please help me :)

edit retag flag offensive close merge delete



youtube vids are useless.

start here

in general, will be your friend !

berak gravatar imageberak ( 2014-04-02 06:12:25 -0500 )edit

Thanks for reply. I did already these documents but I couldnt understand how can ı generate while capturing video meanwhile display the picture on video frame ?

Kaanx gravatar imageKaanx ( 2014-04-02 06:15:56 -0500 )edit

1 answer

Sort by » oldest newest most voted

answered 2014-04-02 07:07:54 -0500

berak gravatar image

here's a simple videoloop

#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
using namespace cv;

int main()
    VideoCapture cap(0); // get 1st cam. you can also put a string with a videofile here.
    while( cap.isOpened() )
        Mat frame;
        if ( ! )

        // your processing here

        int k = waitKey(10);
        if ( k==27 ) // esc.
    return 0;
edit flag offensive delete link more


I need to do opencv picturebox How can I do ?

Kaanx gravatar imageKaanx ( 2014-04-02 14:14:42 -0500 )edit

what do you mean ? a filebox ? (there is none)

berak gravatar imageberak ( 2014-04-02 14:25:43 -0500 )edit

No İt has to be like that But I am using Ubuntu 12.04.

Kaanx gravatar imageKaanx ( 2014-04-03 14:59:48 -0500 )edit

Question Tools


Asked: 2014-04-02 04:23:26 -0500

Seen: 165 times

Last updated: Apr 02 '14