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

How to build mediapipe as standalone aar library ? #88

Closed
mamineayari opened this issue Sep 6, 2019 · 7 comments
Closed

How to build mediapipe as standalone aar library ? #88

mamineayari opened this issue Sep 6, 2019 · 7 comments
Assignees
Labels
type:build/install For Build and Installation issues type:feature Enhancement in the New Functionality or Request for a New Solution type:support General questions

Comments

@mamineayari
Copy link

mamineayari commented Sep 6, 2019

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

@chuoling chuoling self-assigned this Sep 7, 2019
@chuoling chuoling added the type:build/install For Build and Installation issues label Sep 7, 2019
@ZhangWen0301
Copy link

same problem

@chuoling chuoling added the type:support General questions label Sep 10, 2019
@lqz
Copy link

lqz commented Sep 18, 2019

same problem

@mgyong mgyong added the type:feature Enhancement in the New Functionality or Request for a New Solution label Sep 18, 2019
@mgyong
Copy link

mgyong commented Sep 18, 2019

We will be looking into this

@mgyong
Copy link

mgyong commented Oct 25, 2019

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

@mgyong mgyong closed this as completed Oct 25, 2019
@billhung
Copy link

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?

@lqz
Copy link

lqz commented Feb 1, 2020

@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?

@gordinmitya
Copy link

gordinmitya commented Jun 12, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:build/install For Build and Installation issues type:feature Enhancement in the New Functionality or Request for a New Solution type:support General questions
Projects
None yet
Development

No branches or pull requests

7 participants