Results 1 to 3 of 3

Thread: How to open two cameras with opencv?

  1. #1
    Join Date
    Sep 2007
    Posts
    8
    Thanks
    7

    Exclamation How to open two cameras with opencv?

    Dear friends,

    Hello everyone!

    I make a program by QT,I use openCv to operate a camera,But I need to open two Cameras,I find it can't work!

    What should to do to open two cameras by using opencv?


    mp_capture = (CvCapture *)cvCaptureFromCAM(0);
    ? mp_capture = (CvCapture *)cvCaptureFromCAM(1);

    Can you help me?

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: How to open two cameras with opencv?

    If its a USB camera, it is most likely its not possible, since most camera USB drivers don't manage instances of multiple devices.
    There are few I think that are able to do that, so you have to make sure the driver supports it.


    (To mods: shouldn't this be moved to General Programming?)
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. The following 2 users say thank you to high_flyer for this useful post:

    alphaboy (21st December 2007), thaihoangluu (29th December 2011)

  4. #3
    Join Date
    Sep 2007
    Posts
    8
    Thanks
    7

    Default Re: How to open two cameras with opencv?

    thanks very much!

    I move the thread now!

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.