Live data from Hacker News

Face detection jQuery Plugin

facedetection.jaysalvat.com

21–30 of 43 posts

Re: Face detection jQuery Plugin

#21
post #12

Looks like more evidence for Atwood's Law: Any application that can be written in JavaScript, will eventually be written in JavaScript. I have a couple of questions: 1. How does Liu Liu's algorithm (which I think he calls "deformable parts model") compare with Viola-Jones [1]? Any idea what the error stats (false positives & negatives) are like? In my experience [2] Viola-Jones has very low error rates. Regarding per…

Liu Liu's code is a javascript port from openCV I think. As far as I know it is an implementation of Voila-Jones.

Re: Face detection jQuery Plugin

#22
post #19

Try this in the page: $('#detect').click(); setTimeout(function() { $('.face').prepend(' http://officialpsds.com/images/thumbs/Santa-Hat-psd20202.png width="90px" />'); $('.santaHat').css('position', 'relative'); $('.santaHat').css('top', '-60px');$('.face').css('border-width','0px'); }, 200);

[deleted]

replace:

  src="http://officialpsds.com/images/thumbs/Santa-Hat-psd20202.png width="90px"
with

  src="http://officialpsds.com/images/thumbs/Santa-Hat-psd20202.png" width="90px"
and it's perfect

Re: Face detection jQuery Plugin

#23
post #15

Earlier quoted context omitted.

The author credits Liu Liu for the algorithm

It's not just the algorithm, the whole detection code is just cutpasted from liu liu's repository. https://github.com/liuliu/ccv/blob/stable/js/ccv.js

The sheen is coming off this quite rapidly.

Re: Face detection jQuery Plugin

#24
post #19

Earlier quoted context omitted.

[deleted]

replace: src="http://officialpsds.com/images/thumbs/Santa-Hat-psd20202.png width="90px" with src="http://officialpsds.com/images/thumbs/Santa-Hat-psd20202.png" width="90px" and it's perfect

Thanks for the correction!

Corrected version:

$('#detect').click(); setTimeout(function() { $('.face').prepend('http://officialpsds.com/images/thumbs/Santa-Hat-psd20202.png width="90px" />'); $('.santaHat').css('position', 'relative'); $('.santaHat').css('top', '-60px');$('.face').css('border-width','0px'); }, 200);

Re: Face detection jQuery Plugin

#27
post #15

Earlier quoted context omitted.

The author credits Liu Liu for the algorithm

It's not just the algorithm, the whole detection code is just cutpasted from liu liu's repository. https://github.com/liuliu/ccv/blob/stable/js/ccv.js

So what did this new library do other than wrap this algorithm with a redundant jQuery plugin?

Re: Face detection jQuery Plugin

#28

Earlier quoted context omitted.

replace: src="http://officialpsds.com/images/thumbs/Santa-Hat-psd20202.png width="90px" with src="http://officialpsds.com/images/thumbs/Santa-Hat-psd20202.png" width="90px" and it's perfect

Thanks for the correction! Corrected version: $('#detect').click(); setTimeout(function() { $('.face').prepend(' http://officialpsds.com/images/thumbs/Santa-Hat-psd20202.png width="90px" />'); $('.santaHat').css('position', 'relative'); $('.santaHat').css('top', '-60px');$('.face').css('border-width','0px'); }, 200);

Still missing a quote here... There is a missing quote before width= I tried posting the full code, but HN seems to remove it.
Post reply on HN