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 use mediapipe on iOS? #2084

Closed
cckv opened this issue May 27, 2021 · 15 comments
Closed

How to use mediapipe on iOS? #2084

cckv opened this issue May 27, 2021 · 15 comments
Assignees
Labels
platform:ios::tulsi IOS Tulsi related issues type:support General questions

Comments

@cckv
Copy link

cckv commented May 27, 2021

I have created an iOS project according to the tutorial, but I get an error when I run it:

Showing Recent Messages

  1. /Users/apple/Desktop/Code/MediaPipe/mediapipe/mediapipe/examples/ios/facedetectioncpu/BUILD:34:16: //mediapipe/examples/ios/facedetectioncpu:FaceDetectionCpuApp_entitlements: missing input file'//mediapipe:provisioning_profile .mobileprovision'
    2,
    Showing Recent Messages
    /Users/apple/Desktop/Code/MediaPipe/mediapipe/mediapipe/examples/ios/facedetectioncpu/BUILD:34:16 1 input file(s) do not exist
  2. Showing Recent Messages
    Build did NOT complete successfully

Showing Recent Messages
/Users/apple/Desktop/Code/MediaPipe/mediePipe_ios/Mediapipe.xcodeproj/.tulsi/Scripts/bazel_build.py:581: Bazel build failed with exit code 1. Please check the build log in Report Navigator (⌘9) for more information.
This is my first question,

Another question is: How can I package it into a framework and use the ability of mediapipe in my project?

thanks!

@sgowroji sgowroji self-assigned this May 27, 2021
@sgowroji sgowroji added platform:ios::tulsi IOS Tulsi related issues stat:awaiting response Waiting for user response type:support General questions labels May 27, 2021
@sgowroji
Copy link

Hi @cckv, For your first query look at this. And if you still not resolved, Please let us know at what step here you are facing the error.

@cckv
Copy link
Author

cckv commented May 27, 2021

@sgowroji thanks, I will try it.

@cckv
Copy link
Author

cckv commented May 27, 2021

@sgowroji
when i build, here has a error:
ERROR: /Users/apple/Desktop/cckv/Code/MediaPipe/mediapipe/mediapipe/examples/ios/iristrackinggpu/BUILD:34:16: in entitlements rule //mediapipe/examples/ios/iristrackinggpu:IrisTrackingGpuApp_entitlements: Traceback (most recent call last):
File "/private/var/tmp/_bazel_cckv/eb5acd1c8a9a78619e586b58525642aa/external/build_bazel_rules_apple/apple/internal/entitlement_rules.bzl", line 223, column 40, in _entitlements_impl
bundling_support.validate_bundle_id(bundle_id)
File "/private/var/tmp/_bazel_cckv/eb5acd1c8a9a78619e586b58525642aa/external/build_bazel_rules_apple/apple/internal/bundling_support.bzl", line 92, column 25, in _validate_bundle_id
fail("Invalid character(s) in bundle_id: "%s"" % bundle_id)
Error in fail: Invalid character(s) in bundle_id: "SEE_IOS_INSTRUCTIONS.mediapipe.examples.IrisTrackingGpu"
ERROR: Analysis of aspect '@tulsi//:tulsi/tulsi_aspects.bzl%tulsi_sources_aspect of //mediapipe/examples/ios/iristrackinggpu:IrisTrackingGpuApp' failed; build aborted: Analysis of target '//mediapipe/examples/ios/iristrackinggpu:IrisTrackingGpuApp_entitlements' failed
General failure: Bazel aspects could not be built.

@sgowroji
Copy link

Hi @cckv, Could you please share your code repo or changes.

@cckv
Copy link
Author

cckv commented May 27, 2021

thank you for your reply,but code repo is too large.

@sgowroji sgowroji added stat:awaiting googler Waiting for Google Engineer's Response and removed stat:awaiting response Waiting for user response labels May 27, 2021
@sgowroji sgowroji assigned NikolayChirkov and unassigned sgowroji May 27, 2021
@cckv
Copy link
Author

cckv commented May 29, 2021

@sgowroji Thank you very much, I have successfully run the demo, but how can I apply mediapipe to my own project? Are there related documents for reference?

@sgowroji
Copy link

Hi @cckv, Please check here

@sgowroji sgowroji added stat:awaiting response Waiting for user response and removed stat:awaiting googler Waiting for Google Engineer's Response labels May 31, 2021
@google-ml-butler
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you.

@sgowroji
Copy link

sgowroji commented Jun 7, 2021

Hi @cckv, Did you able to build the code or still facing any error?

@cckv
Copy link
Author

cckv commented Jun 8, 2021

@sgowroji build a framework is so complex for �a iOS developer, Gave up temporarily!

@google-ml-butler google-ml-butler bot removed the stale label Jun 8, 2021
@IceFloe
Copy link

IceFloe commented Jun 10, 2021

@cckv look at my example here. I did it base on an article on medium. #2132
After compiling a framework you should modify it with a script and add modulemap file. Then it will work

@google-ml-butler
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you.

@sgowroji
Copy link

That's great for sharing with the community. We are closing this issue now. Thanks!

@google-ml-butler
Copy link

Are you satisfied with the resolution of your issue?
Yes
No

@sgowroji sgowroji removed stale stat:awaiting response Waiting for user response labels Jun 21, 2021
@CheungBH
Copy link

@sgowroji Thank you very much, I have successfully run the demo, but how can I apply mediapipe to my own project? Are there related documents for reference?

What's your solution to this problem? I also encountered it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform:ios::tulsi IOS Tulsi related issues type:support General questions
Projects
None yet
Development

No branches or pull requests

5 participants