From 505e8879a014cbfd2ec9ed1a1a7d89e5a0a63efb Mon Sep 17 00:00:00 2001 From: Johannes Klein Date: Wed, 10 Apr 2024 08:48:45 +0200 Subject: [PATCH] Remove log from Android side --- .../java/com/visioncameraplugininatvision/ImageClassifier.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/android/src/main/java/com/visioncameraplugininatvision/ImageClassifier.java b/android/src/main/java/com/visioncameraplugininatvision/ImageClassifier.java index fe40d3a..25436f8 100644 --- a/android/src/main/java/com/visioncameraplugininatvision/ImageClassifier.java +++ b/android/src/main/java/com/visioncameraplugininatvision/ImageClassifier.java @@ -144,7 +144,6 @@ private void convertBitmapToByteBuffer(Bitmap bitmap) { return; } imgData.rewind(); - long startTime = SystemClock.uptimeMillis(); // Convert pixel values to be float from 0 to 1 float[][][][] input = new float[1][ImageClassifier.DIM_IMG_SIZE_X][ImageClassifier.DIM_IMG_SIZE_Y][3]; @@ -179,8 +178,6 @@ private void convertBitmapToByteBuffer(Bitmap bitmap) { } byteBuffer.rewind(); imgData.put(byteBuffer); - long endTime = SystemClock.uptimeMillis(); - Timber.tag(TAG).d("Timecost to put values into ByteBuffer: " + Long.toString(endTime - startTime)); } catch (BufferOverflowException exc) { Timber.tag(TAG).w("Exception while converting to byte buffer: " + exc); }