Results 1 to 6 of 6

Thread: read webcam with opencv

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2012
    Posts
    3
    Thanks
    1

    Default Re: read webcam with opencv

    Thanks you all for some good guides around here!

    I've tried to implement with these and found some problems:
    + the framework of ChrisW67 is good but in OpenCV, the SLOT capture() needs to hold an object Videocapture (an OpenCV class) to avoid repeating creating this class inside SLOT capture() -> by now, I still don't know how to work around this

    Besides, I work with both Qt and OpenCV new versions Qt 4 and OpenCV 2.3.1 respectively and I had to do some editings to recode your ideas

    ** Solution:
    I've just found it:
    + create a class variable VideoCapture cap
    + open it in class constructor with cap.Open(0) // default device
    + then, it can be used in SLOT without having to pass this 'cap' variable around

    => DONE already !! thanks all!
    Last edited by study24816; 1st July 2012 at 09:41. Reason: add solutions

Similar Threads

  1. Replies: 7
    Last Post: 31st January 2012, 16:19
  2. OpenCV Record Webcam And Audio ???
    By Thành Viên Mới in forum Qt Programming
    Replies: 0
    Last Post: 25th December 2011, 05:18
  3. Replies: 8
    Last Post: 18th March 2011, 12:27
  4. Replies: 2
    Last Post: 15th November 2010, 18:44
  5. use Webcam
    By sabeesh in forum Qt Programming
    Replies: 1
    Last Post: 21st August 2007, 08:52

Tags for this Thread

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.