Mediapipe Segmentation Sample

How to use

Download git repository

git clone https://github.com/afsaredrisy/SegmentationMediapipe.git

Download OpenCV prebuild binary files and mediapipe arr

Download the opencv .so file from this-link unzip the and copy the corrensponding .so file in app/src/main/jniLibs

Your project should look like this.
image

Download mediapipe aar from this-link and copy to /app/libs folder.

image

Build & Run

Now you can build the project in Android studio with gradle & can RUN.

How to change model

Prebuild binarypb is for following configration

input: [224,224] 
output: [224,224]
Number of Channels: 3

To change model copy your tflite file in assets folder with name hair_segmentation.tflite