From c320c40c0226eec943002d61c0a05411030419b4 Mon Sep 17 00:00:00 2001 From: Bastian Kohler Date: Fri, 2 Jun 2023 11:20:18 +0200 Subject: [PATCH] Moved all relevant classes of detectors to a folder --- .../ueberwachungssystem/{ => Detection}/DetectionReport.java | 2 +- .../example/ueberwachungssystem/{ => Detection}/Detector.java | 2 +- .../{VideoDetection => Detection}/VideoDetector.java | 3 +-- .../java/com/example/ueberwachungssystem/MainActivity.java | 3 ++- 4 files changed, 5 insertions(+), 5 deletions(-) rename app/src/main/java/com/example/ueberwachungssystem/{ => Detection}/DetectionReport.java (95%) rename app/src/main/java/com/example/ueberwachungssystem/{ => Detection}/Detector.java (96%) rename app/src/main/java/com/example/ueberwachungssystem/{VideoDetection => Detection}/VideoDetector.java (98%) diff --git a/app/src/main/java/com/example/ueberwachungssystem/DetectionReport.java b/app/src/main/java/com/example/ueberwachungssystem/Detection/DetectionReport.java similarity index 95% rename from app/src/main/java/com/example/ueberwachungssystem/DetectionReport.java rename to app/src/main/java/com/example/ueberwachungssystem/Detection/DetectionReport.java index bfcb52c..2dc8cba 100644 --- a/app/src/main/java/com/example/ueberwachungssystem/DetectionReport.java +++ b/app/src/main/java/com/example/ueberwachungssystem/Detection/DetectionReport.java @@ -1,4 +1,4 @@ -package com.example.ueberwachungssystem; +package com.example.ueberwachungssystem.Detection; import android.util.Log; diff --git a/app/src/main/java/com/example/ueberwachungssystem/Detector.java b/app/src/main/java/com/example/ueberwachungssystem/Detection/Detector.java similarity index 96% rename from app/src/main/java/com/example/ueberwachungssystem/Detector.java rename to app/src/main/java/com/example/ueberwachungssystem/Detection/Detector.java index 7f00656..0b726a7 100644 --- a/app/src/main/java/com/example/ueberwachungssystem/Detector.java +++ b/app/src/main/java/com/example/ueberwachungssystem/Detection/Detector.java @@ -1,4 +1,4 @@ -package com.example.ueberwachungssystem; +package com.example.ueberwachungssystem.Detection; import androidx.annotation.NonNull; diff --git a/app/src/main/java/com/example/ueberwachungssystem/VideoDetection/VideoDetector.java b/app/src/main/java/com/example/ueberwachungssystem/Detection/VideoDetector.java similarity index 98% rename from app/src/main/java/com/example/ueberwachungssystem/VideoDetection/VideoDetector.java rename to app/src/main/java/com/example/ueberwachungssystem/Detection/VideoDetector.java index babb677..a55b155 100644 --- a/app/src/main/java/com/example/ueberwachungssystem/VideoDetection/VideoDetector.java +++ b/app/src/main/java/com/example/ueberwachungssystem/Detection/VideoDetector.java @@ -1,4 +1,4 @@ -package com.example.ueberwachungssystem.VideoDetection; +package com.example.ueberwachungssystem.Detection; import android.content.Context; import android.graphics.ImageFormat; @@ -15,7 +15,6 @@ import androidx.camera.view.PreviewView; import androidx.core.content.ContextCompat; import androidx.lifecycle.LifecycleOwner; -import com.example.ueberwachungssystem.Detector; import com.google.common.util.concurrent.ListenableFuture; import java.nio.ByteBuffer; diff --git a/app/src/main/java/com/example/ueberwachungssystem/MainActivity.java b/app/src/main/java/com/example/ueberwachungssystem/MainActivity.java index 1173b49..535f77d 100644 --- a/app/src/main/java/com/example/ueberwachungssystem/MainActivity.java +++ b/app/src/main/java/com/example/ueberwachungssystem/MainActivity.java @@ -15,7 +15,8 @@ import android.widget.TextView; import android.widget.Toast; import android.widget.ToggleButton; -import com.example.ueberwachungssystem.VideoDetection.VideoDetector; +import com.example.ueberwachungssystem.Detection.DetectionReport; +import com.example.ueberwachungssystem.Detection.VideoDetector; @ExperimentalGetImage public class MainActivity extends AppCompatActivity {