mediapipe icon indicating copy to clipboard operation
mediapipe copied to clipboard

Creating ios examples externally

Open serrabii opened this issue 3 years ago • 4 comments

Hi,

Is there a way to write an ios example such as those in mediapipe/mediapipe/examples/ios outside of mediapipe's repository?

It seems that all such examples need to depend on rules (//mediapipe/objc:mediapipe_framework_ios, //mediapipe/objc:mediapipe_input_sources_ios, //mediapipe/objc:mediapipe_layer_renderer) which are not publicly visible.

My use case:

I have done some changes to mediapipe/mediapipe/examples/ios/common so that i can run graphs on a video file instead of the camera. It works when i build the example directly from the cloned mediapipe repository.

However i would like to version control my ios app independently from the mediapipe repository (which can then be added as an http_archive in my WORKSPACE).

serrabii avatar Jul 27 '22 16:07 serrabii

Hi @serrabii , Please check this documentation for your reference and can build ios externally.

sureshdagooglecom avatar Aug 02 '22 14:08 sureshdagooglecom

Hi @sureshdagooglecom ,

Thanks for replying.

I believe that the documentation you linked doesn't build the ios app outside of the mediapipe source code.

Copy these files to a directory named HelloWorld to a location that can access the MediaPipe source code. For example, the source code of the application that we will build in this tutorial is located in mediapipe/examples/ios/HelloWorld.

ghost avatar Aug 03 '22 12:08 ghost

Hi @serrabii , These rules have recently moved and made it public ,could you test and verify.

sureshdagooglecom avatar Aug 05 '22 06:08 sureshdagooglecom

Hi @sureshdagooglecom ,

I am doing something similar to https://github.com/google/mediapipe/issues/256 . Since I am using mediapipe as a remote bazel dependency i can't depend on rules that aren't publicly visible.

ghost avatar Aug 05 '22 07:08 ghost

We will discuss this with the team and follow up.

schmidt-sebastian avatar Sep 06 '22 19:09 schmidt-sebastian

The build rules are now public.

schmidt-sebastian avatar Sep 07 '22 17:09 schmidt-sebastian

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

google-ml-butler[bot] avatar Sep 07 '22 17:09 google-ml-butler[bot]

Great, thank you so much!

ghost avatar Sep 07 '22 18:09 ghost