Mediapipe: How to build mediapipe as standalone aar library ?

Created on 6 Sep 2019  Â·  7Comments  Â·  Source: google/mediapipe

What is the steps to do to build mediapipe as a standalone aar library to be integrated in a project ?

build feature request question

Most helpful comment

@aminm2a @lqz @ZhangWen0301
Pls note in MediaPipe v0.6.3 we released support for building AAR

All 7 comments

same problem

same problem

We will be looking into this

@aminm2a @lqz @ZhangWen0301
Pls note in MediaPipe v0.6.3 we released support for building AAR

The instruction said to "put the following code into mediapipe/examples/android/src/java/com/google/mediapipe/apps/aar_example/BUILD"

But I looked in v0.6.3 linked above, and there's no aar_example in the said folder.
I don't know how to proceed, can someone comment on what I am missing?

@aminm2a @lqz @ZhangWen0301
Pls note in MediaPipe v0.6.3 we released support for building AAR

Can there be more help documents, such as how to use the interface?

load(“//mediapipe/java/com/google/mediapipe:mediapipe_aar.bzl”, “mediapipe_aar”)
mediapipe_aar(
name = “mp_object_detection_aar”,
calculators = [“//mediapipe/graphs/object_detection:mobile_calculators”],
)

https://medium.com/@doquocbao_91868/build-object-detection-mediapipe-aar-and-integrate-in-smart-mirror-running-on-careos-c074db846313

actually there's official guide
https://google.github.io/mediapipe/getting_started/android_archive_library.html
but it doesn't mention how to deal with binary size the answer is – add --linkopt="-s" to bazel build command. As described here.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RealBBakGosu picture RealBBakGosu  Â·  4Comments

baocareos picture baocareos  Â·  5Comments

karfly picture karfly  Â·  3Comments

Devin0202 picture Devin0202  Â·  5Comments

Choons picture Choons  Â·  4Comments