Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. OpenCV select camera ID to connect
Forum Updated to NodeBB v4.3 + New Features

OpenCV select camera ID to connect

Scheduled Pinned Locked Moved Unsolved 3rd Party Software
3 Posts 2 Posters 935 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • DQUY05D Offline
    DQUY05D Offline
    DQUY05
    wrote on last edited by
    #1

    Hello,
    I am writing an application that uses opencv to connect to multiple cameras, the problem is, every time I start the computer, the usb port can be changed, so I need to know exactly which camera to connect to, I I'm using Dino-lite (all cameras share the same VID and PID information), is there a way to make a permanent installation by usb port?

    Thanks!

    cv::VideoCapture capture0,capture1,capture2;
    capture0.open(0);
    capture1.open(1);
    capture2.open(2);
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      That's rather something you should check with the OpenCV folks.
      As for fixing the order of the cameras, maybe you can do something with udev or equivalent on Linux.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      DQUY05D 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        That's rather something you should check with the OpenCV folks.
        As for fixing the order of the cameras, maybe you can do something with udev or equivalent on Linux.

        DQUY05D Offline
        DQUY05D Offline
        DQUY05
        wrote on last edited by
        #3

        @SGaist said in OpenCV select camera ID to connect:

        That's rather something you should check with the OpenCV folks.
        As for fixing the order of the cameras, maybe you can do something with udev or equivalent on Linux.

        Thanks for your reply, I am using windows, and still want to wait for someone who can help,

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved