refactored shitty unusable code

Signed-off-by: rattatwinko <seppmutterman@gmail.com>
This commit is contained in:
2026-01-19 12:00:50 +01:00
parent c393e05bb1
commit f6ee3e915e
24 changed files with 684 additions and 680 deletions

View File

@@ -34,7 +34,18 @@ public class WebcamCaptureLoop {
Thread captureThread = new Thread(() -> {
// this is where we open it. if the res isnt known then it fucks up.
webcam.open();
try {
webcam.open();
} catch (WebcamException e) {
JOptionPane.showMessageDialog(
null,
"WebcamException" + e.getMessage(),
"WebcamException",
JOptionPane.ERROR_MESSAGE
);
} finally {
webcam.open();
}
while (running) {
BufferedImage img = webcam.getImage();