Skip to content
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

Merged
merged 25 commits into from
Jun 13, 2024

Conversation

allnes
Copy link
Contributor

@allnes allnes commented Jun 10, 2024

Update demo for Android ARM devices

@allnes allnes requested a review from likholat June 10, 2024 08:03
@allnes allnes requested a review from a team as a code owner June 10, 2024 08:03
@ilya-lavrenov ilya-lavrenov added this to the 2024.3 milestone Jun 10, 2024
@allnes allnes added platform: android OpenVINO on Android category: java API OpenVINO Runtime Java API platform: arm OpenVINO Runtime on ARM / ARM64 labels Jun 10, 2024
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";
Copy link
Contributor

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 = {
Copy link
Contributor

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);
Copy link
Contributor

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:

} catch (UnsatisfiedLinkError e) {
Log.e(
"UnsatisfiedLinkError",
"Failed to load native OpenVINO libraries\n" + e.toString());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"Failed to load native OpenVINO libraries\n" + e.toString());
"Failed to load native OpenCV libraries\n" + e.toString());

@github-actions github-actions bot removed the category: java API OpenVINO Runtime Java API label Jun 12, 2024
@allnes allnes assigned ilya-lavrenov and unassigned likholat Jun 13, 2024
@likholat likholat enabled auto-merge (squash) June 13, 2024 17:04
@likholat likholat merged commit e6eb43a into openvinotoolkit:master Jun 13, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: android OpenVINO on Android platform: arm OpenVINO Runtime on ARM / ARM64
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants