openpnp / openpnp-capture

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

Handle case on mac where product/vendor ID not defined #25

Closed sampepose closed 5 years ago

sampepose commented 6 years ago

I ran into an issue on Mac where the product and vendor ID aren't defined for my camera. I'm using iGlasses (http://www.ecamm.com/mac/iglasses/) which doesn't set those values in the modelID. This checks the length of the range first and logs a warning if the IDs aren't found.

trcwm commented 5 years ago

Sorry @sampepose , I didn't see this PR until today 😲 Thanks for the contribution! 👍

vonnieda commented 5 years ago

This is now released in v0.0.16: https://github.com/openpnp/openpnp-capture-java/releases/tag/v0.0.16