Results 1 to 4 of 4

Thread: Qt Gui with OpenCV video and buttons

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    May 2011
    Posts
    2
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Qt Gui with OpenCV video and buttons

    Thanks a lot for your answer.
    I'm pelased to know that what i want to do is possible with Qt.

    For my question about the example, i mean if it is possible to see an example with a widget which have an area where you can see the images and another area where there are buttons.

    I try to explain better what i'd like to do:

    I have two opencv applications:
    - application A: where i track an object and each time i save a frame in an image file and i control the application behavior with some commands which i write in the shell
    - application B: where i have a loop which reads every time the image file and display it

    I want to integrate application B in application A in order to show a window like the one which i've included in this post in order to have a loop which shows image in the first area and to use buttons in order to give commands which at the moment i write in the shell.

    Do you think it's possible to display the frames in an area with Qt?

    At the moment, my application B is very simple:
    Qt Code:
    1. while(1)
    2. {
    3. Mat img=imread("result.jpg",1);
    4. if(!img.empty())
    5. imshow("HOG",img);
    6. if(waitKey(200)==27) break;
    7. }
    To copy to clipboard, switch view to plain text mode 
    I like to show frames in a Qt window (I'm using Ubuntu).

    There is some example based on a template similar to what i'd like to do?
    (like the jpg image which i've included in this post)
    Attached Images Attached Images
    Last edited by marcusbarnet; 19th May 2011 at 22:40.

Similar Threads

  1. how to set duration of a video in a video player in qt
    By qt_user in forum Qt Programming
    Replies: 1
    Last Post: 7th August 2010, 10:51
  2. Playing video using Phonon video widget
    By Leolander in forum Newbie
    Replies: 0
    Last Post: 26th February 2010, 06:15
  3. Replies: 3
    Last Post: 5th July 2009, 17:22
  4. Video freezes during mpeg video playback using Phonon
    By davejames in forum Qt Programming
    Replies: 2
    Last Post: 12th January 2009, 08:45

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.