Javascript / html5 / flash face detection

What is the best way to detect faces on a web page?

Which one is most useful, in fact, what I need is face detection, capture of one face.

I have no experience with this.

is there any js solution?

What suggestions and opinions do you have?

Thanks.

Friends: I am testing all your answers: I will return with the result.

+2
source share
4 answers

You have several options here, it depends on which target language you want to use for implementation. One option would be Flash, where you can use the Ohtsuka Masakazu face-detection library ported to AS3 , originally implemented in OpenCV .

http://www.libspark.org/wiki/mash/Marilena

This has been clarified by Mario Klingemann. You can find the project here: http://www.quasimondo.com/archives/000687.php , which includes the source code.

If the desired platform is a native web browser, without any proprietary plug-ins, the new WebRTC W3 initiative is one of the alternatives, there is one more that we will talk about later. You can find the implementation here: http://neave.com/webcam/html5/face/ .

Another solution would be to use web interfaces to communicate with the destination server, where heavy image detection analysis takes place. The whole process can be summarized in several stages:

  • We access the webcam using the getUserMedia function, which is an HTML5 function.
  • Then we send the webcam data to the server using websocket.
  • Here we analyze the data obtained, using, for example, JavaCV / OpenCV to detect and mark any recognized face.
  • We send data to the client using websockets again.

There are several options that we can use on the website:

Jetty : Provides Web sites and other integration.

OpenCV : a library that has all kinds of algorithms for manipulating images. We use their face recognition support.

JavaCV : Provides wrappers for widely used libraries by computer vision researchers. Using this java shell, we can analyze images directly with data received from Jetty.

And here's a cool implementation of the above description.

UPDATE

Currently the most impressive JS face recognition library: clmtrackr , which is a library for fitting facial models to faces in videos or images. A detailed explanation of the technology is here: http://auduno.tumblr.com/post/61888277175/fitting-faces

+4
source

This demo version uses only JavaScript and the getUserMedia API to detect faces on the client side in real time: http://neave.github.com/face-detection/

+2
source

You can use the free API from face.com . It can be used in any language you want (AS, JS, etc.).

It has some nice features (detection of facial signs - eyes, mouth, etc.), age determination and much more.

It is limited to 5ooo photos per hour, but in most cases this is more than enough.

+1
source

Not sure if it is available, but you can certainly transfer it. My opinion is that this is definitely possible, although you may need to connect to Flash to access the cam.

Definitely google this one, it's pretty well covered. For instance. there is even www.facedetection.com - plus a lot of API / SDK, for example, in the comment above.

If you have time, why not try to create your own / improve what is there. You can find an easy way to make it easy and just what you want. :)

If you are interested in more than just detection, then: You must consider that you are performing recognition or identification.

Acknowledgment that you need to search for face images in the face database.

The identification necessary to confirm that the face of the image matches this identifier.

0
source

All Articles