5 ms·
Show HN: A Face-Detection Library in 200 Lines of JavaScript
- sebazzz 8y agoI 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.
- C14L 8y agoWhy not try it out and report back? There is a live demo on the project page.
- aayushjain 8y agoTo add on to that, the demo is completely Client-side. You can turn off your net if you have any privacy issues.
- sebazzz 8y agoThe demo uses the webcam, and unfortunately I lack the proper skin color for this task.
- helb 8y agoJust 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 https://vgy.me/7aljyA.png - contrast lowered: https://vgy.me/fxzO6J.png https://vgy.me/fxzO6J.png
- acutesoftware 8y agoNice 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.
- helb 8y agoHere's a quick-n-dirty demo with image loaded from a file: https://codepen.io/helb/full/LmVjjG/ 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.
- MuneebShahid 8y agoGood achievement although..
- xem 8y agoHere's a similar app but golfed in 280b: https://twitter.com/MaximeEuziere/status/987222337081704448 https://twitter.com/MaximeEuziere/status/987222337081704448