4 ms·
Face Detection in JavaScript via Canvas
- jbail 16y agoHere is the face detection demo I ran: http://liuliu.me/detect/detect.html#http%3A%2F%2Fimg.dailymail.co.uk%2Fi%2Fpix%2F2008%2F03_02%2FnicolebatLL_1000x895.jpg http://liuliu.me/detect/detect.html#http%3A%2F%2Fimg.dailyma... (press the Detect button when the page loads) That is impressive.
- mayanklahiri 16y agoThe blog post is a little light on details. Just go to the source and demo on the original creator's site: http://liuliu.me/detect/detect.html http://liuliu.me/detect/detect.html Canvas allows access to individual pixels in an image, and JS is arguably faster than BASIC interpreters of the 80s. Fun things lie ahead in client-side image processing. EDIT: Incidentally, the code is pretty hairy and has about 3 comments. It's hard to figure out what ML approach he's using from a cursory look. EDIT: Aah, definitely an image pyramid in there, so some multi-resolution stuff happening.
- yatsyk 16y agohttp://squidder.com/face/ http://squidder.com/face/ - real time face detection with flash
- deleted 16y ago[deleted]
- albertzeyer 16y agoDoesn't really seem to work that good on pictures with more objects on it.
- callmeed 16y agoI did this one: http://liuliu.me/detect/detect.html#http://antikewl.com/daily/wp-content/uploads/2007/12/stevejobs19751.jpg http://liuliu.me/detect/detect.html#http://antikewl.com/dail... And it only detected Jobs, but not Woz ...
- elliottcarlson 16y agoThere already is a Facebook app to aide in tagging photos by detecting faces: http://apps.facebook.com/photo-finder/ http://apps.facebook.com/photo-finder/ It's actually quite accurate too...
- abi 16y agoI don't know too much about face detection, can you anyone tell which algorithm the author is using? It doesn't work on a lot of pictures so I was wondering if this is the best face detection algorithm available?
- apu 16y agoI didn't look at the source in detail, but almost all face detection systems today (including those implemented in hardware in cameras) use a variant of Viola and Jones' Haar-Like Cascade Detector [1]. The major exception is work from CMU and PittPatt [2], which uses Neural Networks [3]. [1] http://en.wikipedia.org/wiki/Viola-Jones_object_detection_framework http://en.wikipedia.org/wiki/Viola-Jones_object_detection_fr... [2] http://www.pittpatt.com/ http://www.pittpatt.com/ [3] http://vasc.ri.cmu.edu/NNFaceDetector/ http://vasc.ri.cmu.edu/NNFaceDetector/
- liuliu 16y agoHi, I put an introduction to the particular implementation behind it: https://github.com/liuliu/ccv/blob/current/doc/bbf.md https://github.com/liuliu/ccv/blob/current/doc/bbf.md You can checkout the first paper, it is a light reading.
- abeppu 16y agoTrouble with false positives : http://liuliu.me/detect/detect.html#http%3A%2F%2Ffarm1.static.flickr.com%2F25%2F95283121_f300f7d188_o.jpg http://liuliu.me/detect/detect.html#http%3A%2F%2Ffarm1.stati...
- kevin_morrill 16y agoSome of the bricks look like the Face on Mars :) http://bit.ly/aWTgzA http://bit.ly/aWTgzA
- templaedhel 16y agoIt seems to on average get about half the faces. http://liuliu.me/detect/detect.html#http%3A%2F%2Fwww.alexreisner.com%2Fimg%2Fbaseball%2Ffaces.reisner.gif http://liuliu.me/detect/detect.html#http%3A%2F%2Fwww.alexrei... http://liuliu.me/detect/detect.html#http%3A%2F%2Fkk.org%2Fct2%2FFaceSw2.jpg http://liuliu.me/detect/detect.html#http%3A%2F%2Fkk.org%2Fct... It recognizes upside down faces though, which is impressive. http://liuliu.me/detect/detect.html#http%3A%2F%2Fwww.scifun.ed.ac.uk%2Fpages%2Fabout_us%2Fshows%2FJennifer_Lopez-upside-down-face.jpg http://liuliu.me/detect/detect.html#http%3A%2F%2Fwww.scifun.... Overall, a great demo.
- akivabamberger 16y agoIt's pretty sweet. I wrote qoobster.com/bieber to get Antoine Dodson's sweet headband instead of that silly red square plastered on my friends.
- devongovett 16y agohaha, nice!