内容简介:An extension that puts masks on faces on the internet (only works on Chrome).Beware:This extension is a proof of concept and really slows down your browser (and also destroys several sites).
:mask:
Face Mask Browser Extension
An extension that puts masks on faces on the internet (only works on Chrome).
Beware:This extension is a proof of concept and really slows down your browser (and also destroys several sites).
Demo Video
https://twitter.com/moklick/status/1234421465287680000
Try it out
In order to try the extension you can load the unpacked version in your Chrome browser by following these steps:
chrome://extensions Developer Mode Load Unpacked Extension… extenion/chrome
How it works
- Check site for images and wrap them with a div
- Observe these wrapped images with IntersectionObserver
- When an image appears in the viewport, check if there are faces on it using ml5js face-api
- If there are faces add a canvas to the wrapper and draw the masks with this drawMask function
Development
You need Node.js in order to modify this extension.
Installation
npm install
Start
npm run dev:chrome
Thanks
This extension is based on the great web-extension-starter by Abhijith Vijayan
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
松本行弘的程序世界
松本行弘 / 柳德燕、李黎明、夏倩、张文旭 / 人民邮电出版社 / 2011-8 / 75.00元
《松本行弘的程序世界》是探索程序设计思想和方法的经典之作。作者从全局的角度,利用大量的程序示例及图表,深刻阐述了Ruby编程语言的设计理念,并以独特的视角考察了与编程相关的各种技术。阅读《松本行弘的程序世界》不仅可以深入了解编程领域各个要素之间的关系,而且能够学到大师的思考方法。 《松本行弘的程序世界》面向各层次程序设计人员和编程爱好者,也可以供相关技术人员参考。一起来看看 《松本行弘的程序世界》 这本书的介绍吧!