问题
I am trying to implement msqrd/snapchat fiters in a fashion related phonegap mobile app. Is there any way I can implement these filters using javascript?
回答1:
I think you are looking for a library that performs facial recognition and masking using Constrained Local Models. Fortunately there's someone who has made a JavaScript library for that: https://github.com/auduno/clmtrackr
回答2:
The best way to do that is to use Jeeliz Facefilter API here : https://github.com/jeeliz/jeelizFaceFilter There are various integration examples with different 3D engines (THREE.JS, BABYLON.JS, A-FRAME) or CSS3D. It is faster than clmtrackr and it works on mobile devices.
来源:https://stackoverflow.com/questions/38369447/creating-msqrd-or-snapchat-filters-using-javascript