openpnp / openpnp-capture

A cross platform video capture library with a focus on machine vision.
MIT License
129 stars 56 forks source link

OSX UVC: two cameras with same VID/PID will cause problems #13

Closed trcwm closed 7 years ago

trcwm commented 7 years ago

On OSX, two cameras that have the same USB VID/PID will be mis-identified. Only one camera will respond to UVC property updates. This is related to the way the AVFoundation and USB devices are matched using VID/PID only. We need to implement a more unique way of matching AVFoundation cameras and their USB devices, probably through a 'device path' or USB location ID.

vonnieda commented 7 years ago

Just pushed the first test binaries with the Mac camera property support, and it looks good. Haven't yet tested the above concern.

vonnieda commented 7 years ago

Just tested, and as expected, with two of the same camera the settings only get applied to the first.

trcwm commented 7 years ago

This should be fixed after pull request #14. I hope you can test this as I don't have two identical cameras 📷

vonnieda commented 7 years ago

Tested using two identical cameras. As of the previous release I was only able to adjust properties on one, and now it work on both. Great work @trcwm!