From 15487b5b184e8ebecf08346344168f7945fbd98e Mon Sep 17 00:00:00 2001 From: Mohammad Durrani Date: Mon, 8 Jan 2024 16:41:18 -0500 Subject: [PATCH] updated jni --- .../java/org/photonvision/rknn/RknnJNI.java | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/photonvision/rknn/RknnJNI.java b/src/main/java/org/photonvision/rknn/RknnJNI.java index 4942c5e..5a40870 100644 --- a/src/main/java/org/photonvision/rknn/RknnJNI.java +++ b/src/main/java/org/photonvision/rknn/RknnJNI.java @@ -21,7 +21,22 @@ public class RknnJNI { public static class RknnResult { public RknnResult( int left, int top, int right, int bottom, float conf, int class_id - ) {} + ) { + this.left = left; + this.right = right; + this.bottom = bottom; + this.top = top; + this.conf = conf; + this.class_id = class_id; + + } + + public final int left; + public final int right; + public final int bottom; + public final int top; + public final float conf; + public final int class_id; } public static native long create(String modelPath);