Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HID and openCV capture can point to different devices #60

Open
ghost opened this issue Aug 19, 2020 · 1 comment
Open

HID and openCV capture can point to different devices #60

ghost opened this issue Aug 19, 2020 · 1 comment
Labels

Comments

@ghost
Copy link

ghost commented Aug 19, 2020

There is no common data value between HID and OpenCV Video Capture. Currently, both just make sure that they find a camera of the correct vendor and manufacture name but if two Deimos' are connected then there is a chance these will connect to different devices.

(See src/camera/StereoCameraDeimos.cpp)

Here the hid_open takes the vendor and manufacture id (0x2560,0xC114):

deimos_device = hid_open(0x2560, 0xC114, NULL);

Searching the windows registry it doesn't look like there is a common setting between the video capture and HID device.

However, looks like ecosystems has made changes to OpenCV to allow it to return device information, see here.

@ghost ghost added the bug label Aug 19, 2020
@jveitchmichaelis
Copy link
Contributor

jveitchmichaelis commented Aug 27, 2020

Oh this is fun. The order that devices appear in DShow should be identical to OpenCV though because they're enumerated in the same order. We can query basically anything that comes up in the properties tab in Device Manager I think?

We can probably query serial here, just after we've identified that the device is a Deimos:

// Get description or friendly name.

But is device path serial the same as some unique hardware serial?

The HID struct also has some info:

We query the serial on the camera, but we should maybe compare to what the HID struct contains too.

qDebug() << "Serial: " << (qint64) getSerial();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant