elimu-ai / ml-authentication

😶‍🌫️ Android application for authenticating the current student using face recognition
MIT License
16 stars 16 forks source link

Delete StudentImages if the featureExtraction can't be run #236

Closed sladomic closed 7 years ago

sladomic commented 7 years ago

Delete StudentImages if the featureExtraction can't be run because the files (student images) are missing on the sdcard

jo-elimu commented 7 years ago

The feature extraction might fail because of these 2 different reasons, right?:

  1. Image missing on SD card
  2. Image exists, but extraction failed.
sladomic commented 7 years ago

Now the StudentImageCollectionEvent and all connected StudentImages and StudentImageFeatures will be deleted if

1) a file is missing 2) feature extraction for a StudentImage fails

@jogrimst I just delete them in the db but not the files itself. Should I also delete the files or keep them for debugging?