diff --git a/app/src/main/java/com/example/ueberwachungssystem/Detection/VideoDetector.java b/app/src/main/java/com/example/ueberwachungssystem/Detection/VideoDetector.java index 8499408..75ca0fb 100644 --- a/app/src/main/java/com/example/ueberwachungssystem/Detection/VideoDetector.java +++ b/app/src/main/java/com/example/ueberwachungssystem/Detection/VideoDetector.java @@ -224,7 +224,7 @@ public class VideoDetector extends Detector { int n = OpenCVHelper.countNonZeroPixels(processed); int pixelCount = image.getWidth() * image.getHeight(); - float percentChanged = (float) (n / pixelCount) * 100; + float percentChanged = ((float) n / pixelCount) * 100; // Violation Condition if (percentChanged> ALARM_THRESHOLD) {