News for hackers. Stuff that matters.
Re:Show HN: A Face-Detection Library in 200 Lines of JavaScript by xem on Monday April 23, 2018 @06:44AM (#16902160)
Here's a similar app but golfed in 280b: https://twitter.com/MaximeEuziere/status/987222337081704448
Re:Show HN: A Face-Detection Library in 200 Lines of JavaScript by acutesoftware on Friday April 20, 2018 @08:23AM (#16884161)
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.

Re:Show HN: A Face-Detection Library in 200 Lines of JavaScript by helb on Friday April 20, 2018 @08:58AM (#16884352)
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.

Re:Show HN: A Face-Detection Library in 200 Lines of JavaScript by sebazzz on Friday April 20, 2018 @04:20AM (#16883052)
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.
Re:Show HN: A Face-Detection Library in 200 Lines of JavaScript by helb on Friday April 20, 2018 @07:24AM (#16883865)
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

Re:Show HN: A Face-Detection Library in 200 Lines of JavaScript by C14L on Friday April 20, 2018 @05:16AM (#16883329)
Why not try it out and report back? There is a live demo on the project page.
Re:Show HN: A Face-Detection Library in 200 Lines of JavaScript by aayushjain on Friday April 20, 2018 @06:18AM (#16883587)
To add on to that, the demo is completely Client-side. You can turn off your net if you have any privacy issues.
Re:Show HN: A Face-Detection Library in 200 Lines of JavaScript by sebazzz on Friday April 20, 2018 @09:22AM (#16884505)
The demo uses the webcam, and unfortunately I lack the proper skin color for this task.