Home  >  Article  >  Web Front-end  >  基于HTML5 的人脸识别技术

基于HTML5 的人脸识别技术

WBOY
WBOYOriginal
2016-05-17 09:08:302186browse

     通过 HTML5 + JavaScript 技术实现的人脸识别,目前仅适用于 Chrome 浏览器,首先需要在地址栏输入 about:flags ,然后找到“启用 MediaStream” 这一项,点击“启用” 后重启 Chrome 浏览器。

基于HTML5 的人脸识别技术

  当你摇头晃脑的时候,那副眼镜会跟着移动并帮你戴上眼镜。

  你可以查看网页源码来了解具体的实现细节。

  这是一篇国外的文章,介绍如何通过 WebRTC、OpenCV 和 WebSocket 技术实现在 Web 浏览器上的人脸识别,架构在 Jetty 之上。

  实现的效果包括:

基于HTML5 的人脸识别技术

  还能识别眼睛

基于HTML5 的人脸识别技术

  人脸识别的核心代码:

基于HTML5 的人脸识别技术

页面:

  基于HTML5 的人脸识别技术

  英文原文:http://www.smartjava.org/content/face-detection-using-html5-javascript-webrtc-websockets-jetty-and-javacvopencv

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn