Ask Your Question
0

How To Display image while capturing Video

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

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 ; http://www.youtube.com/watch?v=1Db7r3ujUSQ http://www.youtube.com/watch?v=Z43_hCM74rU http://www.youtube.com/watch?v=hPoiQlimdks http://www.youtube.com/watch?v=wgSlJ38NT4w http://www.youtube.com/watch?v=5BM9F5m54Io http://www.youtube.com/watch?v=VEZw7wIEeVY

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

Comments

2

youtube vids are useless.

start here

in general, http://docs.opencv.org will be your friend !

berak gravatar imageberak ( 2014-04-02 06:12:25 -0600 )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 -0600 )edit

1 answer

Sort by » oldest newest most voted
1

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

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 ( ! cap.read(frame) )
            break;

        // your processing here

        imshow("lalala",frame);
        int k = waitKey(10);
        if ( k==27 ) // esc.
            break;
    }
    return 0;
}
edit flag offensive delete link more

Comments

I need to do opencv picturebox How can I do ?

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

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

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

No İt has to be like that http://melihcicek.blogspot.com.tr/2013/10/opencv-haartraining-ile-obje-yakalama.html But I am using Ubuntu 12.04.

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

Question Tools

Stats

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

Seen: 228 times

Last updated: Apr 02 '14