Skip to content

Commit

Permalink
updated jni
Browse files Browse the repository at this point in the history
  • Loading branch information
mdurrani808 committed Jan 8, 2024
1 parent 001b5ec commit 15487b5
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/main/java/org/photonvision/rknn/RknnJNI.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 15487b5

Please sign in to comment.