You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
in some cases it's important to obtain a webcam reference by its name, e.g. if you want to capture an image from a specific device.
Now getDefaults() returns only a ref to the default camera.
What about a specific method for this?
In my plugin I create the following method
publicWebcamgetCameraByName(Stringname) {
for (Webcamwebcam : Webcam.getWebcams()) {
if (webcam.getName().equalsIgnoreCase(name)) {
returnwebcam;
}
}
returnnull;
}
The text was updated successfully, but these errors were encountered:
Hi,
in some cases it's important to obtain a webcam reference by its name, e.g. if you want to capture an image from a specific device.
Now getDefaults() returns only a ref to the default camera.
What about a specific method for this?
In my plugin I create the following method
The text was updated successfully, but these errors were encountered: