jeeliz / jeelizFaceFilter

Javascript/WebGL lightweight face tracking library designed for augmented reality webcam filters. Features : multiple faces detection, rotation, mouth opening. Various integration examples are provided (Three.js, Babylon.js, FaceSwap, Canvas2D, CSS3D...).
https://jeeliz.com
Apache License 2.0
2.69k stars 533 forks source link

is it possible to give an input canvas in video settings instead of a video element? #259

Closed triptu closed 2 years ago

triptu commented 2 years ago

Hi! thanks for the amazing library. I was wondering if something like below is possible?

JEELIZFACEFILTER.init({
 ...
 videoSettings: {
       canvasElement
  }
}

I can probably create a temp video element with captureStream to make this work, any recommendations?

xavierjs commented 2 years ago

Hi, Nop, you need to handle your own web texture through the set_inputTexture method. Demos for face replacement in this repo are using it.