Skip to content
This repository has been archived by the owner on Jan 18, 2020. It is now read-only.

Added a max_duration parameter to __construct() and some code at do_d… #29

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

Conversation

nepomuc
Copy link

@nepomuc nepomuc commented Apr 12, 2018

…etect_greedy_big_to_small() in order to abort the face detection after x seconds and to prevent the process from an endless loop.

Signed-off-by: NEPOMUC.com [email protected]

…etect_greedy_big_to_small() in order to abort the face detection after x seconds and to prevent the process from an endless loop.

Signed-off-by: NEPOMUC.com <[email protected]>
@mauricesvay
Copy link
Owner

I'm not sure adding a timeout is a good strategy. It would be better to fix the infinite loop.

@nepomuc
Copy link
Author

nepomuc commented Apr 16, 2018

@mauricesvay Thanks for you feedback! My "solution" with the timeout is already six years old. I only created the pull request a few days ago, because I thought it might be helpful. I totally understand your concerns and you're right: It's not a real fix. For me it worked out fine as a quick workaround and ensure control over execution time.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants