Results 1 to 6 of 6

Thread: How to capture Video with OpenCV

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2011
    Posts
    120
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: How to capture Video with OpenCV

    Why are you want to use OpenCV (for capturing image or video)?
    If you want to capture image

    Qt Code:
    1. CvCapture *capture = 0;
    2. IplImage *frame = 0;
    3. capture = cvCaptureFromCAM( 0 );
    4. frame = cvQueryFrame( capture );
    To copy to clipboard, switch view to plain text mode 

    In frame you get all the data of image.

  2. #2
    Join Date
    Nov 2009
    Posts
    29
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to capture Video with OpenCV

    Hi,

    Make sure your webcam is connected and working.

    I made it work using

    Qt Code:
    1. CvCapture * camera = cvCreateCameraCapture(0);
    To copy to clipboard, switch view to plain text mode 

    If argument 0 does not work, try with 1, and so on.

Similar Threads

  1. Webcam Video Capture
    By bajoelkid12 in forum Qt Programming
    Replies: 28
    Last Post: 25th December 2011, 03:28
  2. Qt Gui with OpenCV video and buttons
    By marcusbarnet in forum Qt Programming
    Replies: 3
    Last Post: 20th May 2011, 08:48
  3. v4l2 video capture input in Phonon
    By abbot in forum Qt Programming
    Replies: 6
    Last Post: 16th February 2011, 10:31
  4. capture video from DV camera
    By ekkondela in forum Newbie
    Replies: 1
    Last Post: 7th March 2010, 09:38
  5. Replies: 3
    Last Post: 5th July 2009, 17:22

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.