shubham0204 / FaceRecognition_With_FaceNet_Android

Face Recognition using the FaceNet model and MLKit on Android.
https://towardsdatascience.com/using-facenet-for-on-device-face-recognition-with-android-f84e36e19761
Apache License 2.0
264 stars 88 forks source link

Can the source of the photo not be from storage but from a photo link? #36

Closed abdullahJufri closed 1 year ago

abdullahJufri commented 1 year ago

Hi, Can the source of the photo not be from storage but from a photo url? thanks

shubham0204 commented 1 year ago

@abdullahJufri The app currently only reads image from the device's local storage. You can modify the MainActivity.kt file and use the method fileReader.run( images , fileReaderCallback ) where images is an ArrayList<Pair<String,Bitmap>>. You can populate images by downloading them from a URL and pass it to fileReader.run to get the embeddings generated.

abdullahJufri commented 1 year ago

Thanks @shubham0204