本文介绍了面部检测javascript / html5 / flash的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



这是最常用的一个,实际上我需要的是检测脸部,捕捉一张脸。

我没有这方面的经验。

有没有可用的js解决方案?



你们的建议和意见是什么?

谢谢。

这里有一些可能性,这取决于你想用哪种目标语言来实现。其中一种可能性就是Flash,你可以使用一个Ohtsuka Masakazu脸部检测库移植到最初在 OpenCV 中实现的 AS3 >。





这由Mario Klingemann完善。你可以在这里找到这个项目:,其中包括源代码。

如果所需的平台是原生的web浏览器,没有任何专有的插件,那么新的 W3倡议是其中一种选择。还有一个,稍后再讨论。你可以在这里找到实现::提供websockets和许多其他集成。



:由计算机视觉领域的研究人员提供常用库的封装。使用这个Java包装,我们可以直接从Jetty收到的数据分析图像。



这里是一个很酷的 这是一个将脸部模型拟合到视频或图像中的库。该技术的详细解释可以在这里找到:


What is the best way for face detection in a web page ?

Which is the most used one ,actually what i need is detect the faces ,capture one face.

i have no experience about this .

is there any js solution available ?

whats ur suggestions and opinions ?

Thank you.

Friends : I am testing all your answers : i will come back with result.

解决方案

You have a few possibilities here, it depends which is the target language you want to use for implementation. One of the possibilities would be Flash, where you can use a Ohtsuka Masakazu face detection library ported to AS3 originally implemented in OpenCV.

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

This was refined by Mario Klingemann. You can find the project here: http://www.quasimondo.com/archives/000687.php, which includes the source codes.

If the desired platform is the native web browser, without any proprietary plugins, then the new WebRTC W3 initiative is one of the alternatives. There is another one, which w'll discuss later. You can find the implementation here: http://neave.com/webcam/html5/face/.

The other solution would be to use websockets for front end communication with the back end server, where the heavy image detection analysis is happening. There whole process can be summarized in a few steps:

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

There are a few options we can use at the backend site:

Jetty: Provides websockets and many other integration.

OpenCV: Library that has all kind of algorithms for image manipulation. We use their support for face recognition.

JavaCV: Provides wrappers to commonly used libraries by researchers in the field of computer vision. Using this java wrapper we can analyze the images directly by data received from Jetty.

And here is a cool implementation of the description above.

UPDATE

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

这篇关于面部检测javascript / html5 / flash的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-22 17:10
查看更多