Skip to content

Commit

Permalink
ope
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 committed Jan 7, 2024
1 parent c1278cc commit 426ea3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/main/native/cpp/rknn_jni.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@

static JClass detectionResultClass;

extern "C" {

JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *reserved) {
JNIEnv *env;
if (vm->GetEnv(reinterpret_cast<void **>(&env), JNI_VERSION_1_6) != JNI_OK) {
Expand Down Expand Up @@ -116,3 +118,5 @@ Java_src_main_java_org_photonvision_rknn_RknnJNI_detect

return jarr;
}

}
1 change: 0 additions & 1 deletion src/main/native/cpp/rknn_yolo_wrapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include "yolov7.h"
#include "file_utils.h"
#include "rknn_yolo_wrapper.h"
#include "rknn_jni.h"

RknnYoloWrapper::RknnYoloWrapper() {
// Make very sure zero-inited? copied from example
Expand Down

0 comments on commit 426ea3a

Please sign in to comment.