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 Face Size To Fitness #6

Open
ghost opened this issue Sep 7, 2012 · 0 comments
Open

Add Face Size To Fitness #6

ghost opened this issue Sep 7, 2012 · 0 comments

Comments

@ghost
Copy link

ghost commented Sep 7, 2012

Add size of face to fitness, thereby favouring larger faces. For example, line 343 could be changed from
"this.fitness = comp[0].confidence;"
to
"this.fitness = comp[0].confidence * ((comp[0].width * comp[0].height) / (CANVAS_SIZE * CANVAS_SIZE));"
This would scale the fitness based on the size of the face, thereby favouring larger faces with the same score as smaller faces. There is probably a better way to implement this.

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

No branches or pull requests

0 participants