Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Robustness to Actual Face Detection #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Jhruzik
Copy link

@Jhruzik Jhruzik commented Aug 29, 2020

Whenever the detect_faces function encounters an error inside the for loop, it might happen that it gets stuck in the wrong directory. As soon as the loop reaches the next iteration, it can't find the correct data since it is in the wrong directory.

This PR introduces a try-except clause which makes sure, that it is inside the correct directors after every iteration.

Also, I fixed the indentation.

Added robustness and fixed indentation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant