The Face XY Project has you collect pictures of your nose, the left eye and the right eye. If some of the pictures were incorrectly taken, how can we reset the pictures and restart again?
Thank you.
The Face XY Project has you collect pictures of your nose, the left eye and the right eye. If some of the pictures were incorrectly taken, how can we reset the pictures and restart again?
Thank you.
Hi,
You can add a checking dialog before the process.
If the image goes wrong, apply nothing and recapture it again.
def live(state_widget, model, camera, prediction_widget):
global dataset
while state_widget.value == 'live':
image = camera.value
// Add some handler here
if valid:
preprocessed = preprocess(image)
...
Thanks.