-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JAVA API][ARM CPU] Add COCO Android ARM demo (update old version) #924
Conversation
public static final float CONFIDENCE_THRESHOLD = 0.6F; | ||
public static final float NMS_THRESHOLD = 0.6F; | ||
public static final String OPENCV_LIBRARY_NAME = "opencv_java4"; | ||
public static final String PLUGINS_XML = "plugins.xml"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need a plugin?
public static final String MODEL_XML = "ssdlite_mobilenet_v2.xml"; | ||
public static final String MODEL_BIN = "ssdlite_mobilenet_v2.bin"; | ||
public static final String DEVICE_NAME = "CPU"; | ||
public static final String[] COCO_CLASSES_91 = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to list all the classes here? My suggestion is to read classes from file.
setContentView(R.layout.activity_main); | ||
try { | ||
System.loadLibrary(OPENCV_LIBRARY_NAME); | ||
System.loadLibrary(Core.NATIVE_LIBRARY_NAME); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now we're loading native OV libs in OV Java bindings, so we don't need to do it here:
openvino_contrib/modules/java_api/src/main/java/org/intel/openvino/NativeLibrary.java
Line 16 in 7239f82
System.loadLibrary(NATIVE_LIBRARY_NAME); |
} catch (UnsatisfiedLinkError e) { | ||
Log.e( | ||
"UnsatisfiedLinkError", | ||
"Failed to load native OpenVINO libraries\n" + e.toString()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Failed to load native OpenVINO libraries\n" + e.toString()); | |
"Failed to load native OpenCV libraries\n" + e.toString()); |
Co-authored-by: Anna Likholat <[email protected]>
Update demo for Android ARM devices