clmdraw例子
pointsFromCLM are points that were detected by clm of a persons face
canvas is a HTMLCanvasElement
最后一个属性是你想要使用的颜色。
clmdraw.draw(pointsFromCLM, canvas, #OOCAFE
);
clmdraw.drawLeftEye(pointsFromCLM, canvas, #FF00FF
);
clmdraw.draw(clmPositions, canvas, [strokeStyle, doClear])
Draw等效于内置于clm中的绘图(绘制整个面部),除了可以使用自定义的笔画样式绘制面部部件。
暂无评论