Tensorflow.js可以用于人脸识别吗?

Can Tensorflow.js be used for face recognition?

python 和 C++ api 可用于制作图像 recognition.The 教程在 tensorflow.org 中提供,但 tensorflow.js 几个月前发布它仅支持 python 和 c++ 实现中可用的所有 api。

does it support all the api's available in the python and c++ implementation.

不,它的功能仍然有限。请记住,它仍在 0.11.6 版中,因此会发生变化。您可以查看 documentation 以查看可用的内容。

如果您想将特定模型移植到 tfjs,请尝试将其作为 keras 模型获取,然后使用 tensorflowjs_converter to a tfjs compatible one like this tutorial 显示进行转换。

甚至还有一个使用网络摄像头数据的 tfjs 示例 (Tutorial, Live Demo),因此您可以先研究一下。

Vincent Mühler 在 tensorflow.js 的基础上创建了 face-api.js,一个 JavaScript API。您可以在下面的链接中找到博客和代码。

https://itnext.io/face-api-js-javascript-api-for-face-recognition-in-the-browser-with-tensorflow-js-bcc2a6c4cf07

https://github.com/justadudewhohacks/face-api.js

加上上面的答案,JavaScript 上的 tensorflow 可能会很慢。这是一个快速比较:

但是,如果您在 Node 上执行 运行 tensorflow.js,您可以直接使用绑定到用 C 编写的 TensorFlow API,这会很快。如果您在 Node.js

上导入正确的包,您还可以 运行 CUDA 版本

在浏览器上 WebGL 用于 运行tensorflow。在浏览器上使用 tensorflow 或某些 ML,开辟了直接在浏览器内做事的全新机会。

正如 Jirapol 所建议的,您可以看看 https://github.com/justadudewhohacks/face-api.js which is super easy to use. It actually took a very short while for me to start writing a facial recognition login system on node using face-api.js. Here's a link if you want to take a look at the unfinshed code: https://github.com/WinstonMarvel/face-recognition-authentication

可以。

并且在浏览器中 webassemblySIMD 的帮助下。

您可以在浏览器中流畅体验图像处理和视频处理

看看 link 来自 google v8.

好消息是,使用相同的 api,您可以 运行 Tensorflow.js 浏览器node.jsReact Native 都具有 native 速度并使用 native能力