-
-
Notifications
You must be signed in to change notification settings - Fork 130
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
Unable to Capture multiple same name webcams #68
Comments
Also running into this problem. Have worked out Parsing the individual devices (Logitech c920), but each lists 3 entries for 640x480/30 (is this because color modes aren't shown?). Has anyone successfully set multiple capture devices with the same name? |
you can create/edit the camera friendly name, i've got 4 working all been edited i followed this guide https://www.avoiderrors.net/rename-devices-device-manager/ |
is there a similar solution for linux? |
wonderful, thanks! |
This issue has been around for years, The only solution I've found online is renaming camera's through the registry, but that doesn't actually work. If you have two webcams with the same name, Capture.list(); will list them, but you can only get the first instance.
In this example I happen to know that the 3rd and 48th camera's are:
"name=Microsoft LifeCam HD-3000,size=1280x720,fps=10"
But since list() just produces an array of Strings, assigning the camera's to new captures just grabs the first camera with that name.
void getCamysByIndex() { String[] cameras = Capture.list(); if (cameras.length == 0) { println("There are no cameras available for capture."); exit(); } else { cam[0] = new Capture(this, cameras[3]); cam[0].start(); cam[1] = new Capture(this, cameras[48]); cam[1].start(); } }
I'm using this to count standing bowling pins. Right now I can get by just fine with two different brands of camera, but it's not very extensible. Seems like there should be a better way.
The text was updated successfully, but these errors were encountered: