example-mediapipe-udp icon indicating copy to clipboard operation
example-mediapipe-udp copied to clipboard

Where is example-protobuf-udp?

Open Datagrdn opened this issue 4 years ago • 2 comments

Hey Madeline! Thanks for this awesome example, looking forward to getting it up and running.

My question is where is example-protobuf-udp? Or am I to create it in projectGenerator and add the files as described?

I tried doing the latter but received an error that none of the "google/protobuf/..." files were found. So I updated the locations of all of them to point to the google/protobuf directory in my usr folder. This got the application to compile but only led to a blank window.

I'm not sure what I'm missing here, would be grateful for your insight on this.

Thanks again!

Datagrdn avatar May 01 '20 07:05 Datagrdn

If you press SPACEBAR, do you see a bunch of particles on the screen? By default, the canvas should look blank until a hand is detected in the mediapipe handtracking demo we modified in the tutorial.

You shouldn't need to modify any headers ... but if it works, it works!

In case it's not working:

Make sure that this repo is downloaded to you $OF_ROOT/apps/myApps directory (folder structure is very important in oF). There's an overview here.

You can generate necessary xcode project files by clicking the Import button In the oF Project Generator. (There's a tutorial for that here).

I have a separate tutorial for setting up google protobuf in openframeworks here. You may want to look that over first.

Also, I should note that you don't need to broadcast the wrapper_hand_tracking.proto from the mediapipe demo. You can just send and receive formatted strings of landmarks over UDP. For example, sending "{1:x,y,z}" as Landmark 1 at point {x,y,z}.

madelinegannon avatar May 01 '20 18:05 madelinegannon

Thanks for this! Nothing happens when I press SPACE so I'm looking that the additional resources here.

Going through everything again I have two questions:

  1. Since I just installed protobuf I don't have 3.6.1, will I need that to work with oF?

  2. I'm new to Bazel. How do I use it to build wrapper_hand_tracking.proto? I'm trying bazel build command but getting the error that there is no BUILD file

Thanks again, psyched to play with this!

Datagrdn avatar May 01 '20 23:05 Datagrdn