|
|
@@ -22,7 +22,6 @@ import com.google.common.util.concurrent.ListenableFuture; |
|
|
|
import java.nio.ByteBuffer; |
|
|
|
import java.util.concurrent.ExecutionException; |
|
|
|
|
|
|
|
|
|
|
|
@ExperimentalGetImage |
|
|
|
public class VideoDetector { |
|
|
|
|
|
|
@@ -54,7 +53,7 @@ public class VideoDetector { |
|
|
|
public void setOnDetectionListener(OnDetectionListener listener) { |
|
|
|
this.listener = listener; |
|
|
|
} |
|
|
|
public void reportViolation(float amplitude) { |
|
|
|
private void reportViolation(float amplitude) { |
|
|
|
if (listener != null) { |
|
|
|
DetectionReport detectionReport = new DetectionReport("123", "Video", amplitude); |
|
|
|
listener.onDetection(detectionReport); |