Hacker News new | comments | show | ask | jobs | submit login
Show HN: A Face-Detection Library in 200 Lines of JavaScript (tkv.io)
36 points by aayushjain 4 months ago | hide | past | web | favorite | 8 comments



Here's a similar app but golfed in 280b: https://twitter.com/MaximeEuziere/status/987222337081704448


Nice work, though I can't test the live demo as I don't have a webcam on my desktop.

You could add some sample results on the github repo (or some tests) with photos of different quality and complexity showing before and face recognised.


Here's a quick-n-dirty demo with image loaded from a file: https://codepen.io/helb/full/LmVjjG/

Code is mostly taken from the project's github, i just added file selection and image resizing to fit canvas.


I wonder how this works of people with darker skin tones. Often the contrast between face and environment is smaller, or at least significantly different. This has caused problems in face detection before.


Just tried to run it on few images from the internet, looks very good to me.

Screenshot of Marsellus Wallace from Pulp fiction:

- original: https://vgy.me/7aljyA.png

- contrast lowered: https://vgy.me/fxzO6J.png


Why not try it out and report back? There is a live demo on the project page.


To add on to that, the demo is completely Client-side. You can turn off your net if you have any privacy issues.


The demo uses the webcam, and unfortunately I lack the proper skin color for this task.




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: