cdiddy77 / react-native-mediapipe

A React Native Camera and Player for MediaPipe applications.
MIT License
18 stars 15 forks source link

feat(inference): Download models at build time #85

Closed dwgray closed 6 months ago

dwgray commented 6 months ago

Download the three different models as build time. This is a separate process for android and ios.

For android, it's a matter of including the gradle pluglin for downloads and then adding a gradle file for doing the actual downloads, which grabs the files from the google server and puts them directly in the assets directory.

For ios, it's a custom build step written as an sh script. In addition, I had to manually set up the resources in xcode.

This was working for both ios and android before I pulled things apart to make this a separate PR. I haven't done as much verification as I normally would, so your call as to what you do with it - I'll do another pass when I get back if you don't need to pull it in sooner.