We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff1c7c1 commit dcc677aCopy full SHA for dcc677a
android/src/main/java/com/vladih/computer_vision/flutter_vision/models/Yolo.java
@@ -8,6 +8,7 @@
8
import android.util.Log;
9
10
import org.tensorflow.lite.Interpreter;
11
+import org.tensorflow.lite.Tensor;
12
import org.tensorflow.lite.gpu.CompatibilityList;
13
import org.tensorflow.lite.gpu.GpuDelegate;
14
@@ -57,6 +58,12 @@ public Yolo(Context context,
57
58
this.rotation = rotation;
59
}
60
61
+
62
+ public Tensor getInputTensor() {
63
+ if (interpreter == null) return null;
64
+ return this.interpreter.getInputTensor(0);
65
+ }
66
67
public void initialize_model() throws Exception {
68
AssetManager asset_manager = null;
69
MappedByteBuffer buffer;
0 commit comments