下一代PPT?尝试利用谷歌的bodyPix,DIY一个fastmask功能



我们如何利用tensorflow.js实现一个类似的功能呢?
为了方便使用,我这边使用了ml5.js
ml5.js里对bodypix进行了封装,只需几行代码即可快速调用。
const bodypix = ml5.bodyPix(modelReady)
function modelReady() { // segment the image given bodypix.segment(img, gotResults)}
function gotImage(error, result) { if (error) { console.log(error); return; } // log the result console.log(result.maskBackground);}
可以怎么玩呢?
下一代PPT工具的一个案例:
Prezi Next

沉浸感的PPT工具,
也是我实验室里的一个试验项目。
欢迎一起探索~
赞 (0)
