News for hackers. Stuff that matters.
Re:Face Detection in JavaScript via Canvas by jbail on Tuesday November 02, 2010 @11:54AM (#1860920)
Here is the face detection demo I ran: http://liuliu.me/detect/detect.html#http%3A%2F%2Fimg.dailyma...

(press the Detect button when the page loads)

That is impressive.

Re:Face Detection in JavaScript via Canvas by mayanklahiri on Tuesday November 02, 2010 @11:57AM (#1860937)
The 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

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.

Re:Face Detection in JavaScript via Canvas by yatsyk on Tuesday November 02, 2010 @12:15PM (#1861028)
http://squidder.com/face/ - real time face detection with flash
Re:Face Detection in JavaScript via Canvas by templaedhel on Tuesday November 02, 2010 @09:08PM (#1863155)
It seems to on average get about half the faces. http://liuliu.me/detect/detect.html#http%3A%2F%2Fwww.alexrei... 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.... Overall, a great demo.
Re:Face Detection in JavaScript via Canvas by callmeed on Tuesday November 02, 2010 @01:14PM (#1861333)
I did this one: http://liuliu.me/detect/detect.html#http://antikewl.com/dail...

And it only detected Jobs, but not Woz ...

Re:Face Detection in JavaScript via Canvas by abeppu on Tuesday November 02, 2010 @02:43PM (#1861735)
Re:Face Detection in JavaScript via Canvas by kevin_morrill on Tuesday November 02, 2010 @08:40PM (#1863082)
Some of the bricks look like the Face on Mars :) http://bit.ly/aWTgzA
Re:Face Detection in JavaScript via Canvas by elliottcarlson on Tuesday November 02, 2010 @01:42PM (#1861436)
There already is a Facebook app to aide in tagging photos by detecting faces:

http://apps.facebook.com/photo-finder/

It's actually quite accurate too...

Re:Face Detection in JavaScript via Canvas by abi on Tuesday November 02, 2010 @02:13PM (#1861598)
I 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?
Re:Face Detection in JavaScript via Canvas by apu on Tuesday November 02, 2010 @03:07PM (#1861838)
I 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_fr...

[2] http://www.pittpatt.com/

[3] http://vasc.ri.cmu.edu/NNFaceDetector/

Re:Face Detection in JavaScript via Canvas by liuliu on Tuesday November 02, 2010 @11:11PM (#1863473)
I doubt that PittPatt uses NN. Here is the reference I found:

Feature-Centric Evaluation for Efficient Cascaded Object Detection, Henry Schneiderman

Maybe Schneiderman himself can clarify this :)

Re:Face Detection in JavaScript via Canvas by apu on Wednesday November 03, 2010 @12:33AM (#1863660)
Ah good point. I forgot that he had his own method, separate from Takeo's.
Re:Face Detection in JavaScript via Canvas by liuliu on Tuesday November 02, 2010 @11:10PM (#1863465)
Hi, I put an introduction to the particular implementation behind it:

https://github.com/liuliu/ccv/blob/current/doc/bbf.md

You can checkout the first paper, it is a light reading.

Re:Face Detection in JavaScript via Canvas by albertzeyer on Tuesday November 02, 2010 @12:46PM (#1861200)
Doesn't really seem to work that good on pictures with more objects on it.
Re:Face Detection in JavaScript via Canvas by akivabamberger on Tuesday November 02, 2010 @11:03PM (#1863449)
It'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.
Re:Face Detection in JavaScript via Canvas by devongovett on Tuesday November 02, 2010 @11:11PM (#1863471)
haha, nice!