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.68k stars 533 forks source link

Image not being rendered in the 'JeelizFacefilterFollow' div in Safari. #265

Closed nitinrhr200 closed 2 years ago

nitinrhr200 commented 2 years ago

The comedyglasses.js doesnt render the comedyglasses.png image in Safari. It is working perfectly in Chrome and firefox, but when run through Safari, the image doesn't display in the corresponding div even though when inspected, the div is being found and fluctuates wrt the head movements..I have taken the code from https://github.com/ikebastuz/jeelizTest ,...

xavierjs commented 2 years ago

You are using a deprecated version of Jeeliz faceFilter. Please try with the version of comedy glasses included in this Github repo:

If the problem persists, provide more information (Safari version, console logs, screenshots) so that I can figure out what happens.

xavierjs commented 2 years ago

I am not here to teach you react

kuerm commented 2 years ago

Hi @xavierjs I tested the comedy-glasses Live demo on Safari, Version 15.0 (16612.1.29.41.4, 16612). Video stays black (on Chrome it's working perfect) No Console outs - except "INFO: JEELIZFACEFILTER IS READY" The Comedy-Glasses picture on the upper left corner is disappearing after everything is loaded. Camera is showing that something accesses it (camera-on "light") Screenshot 2022-01-09 at 14 34 05

xavierjs commented 2 years ago

Hi Do other demos work? Like this one: https://jeeliz.com/demos/faceFilter/demos/canvas2D/faceTrack/

This issue looks like a duplicate of this one: https://github.com/jeeliz/jeelizFaceFilter/issues/253 It was an issue with Safari 15.0, video could not be transferred to a WebGL Texture (it just makes a black texture without any error or warning). It was solved in Safari 15.1

kuerm commented 2 years ago

faceTrack looks the same - doesn't work too. I downloaded Safari Tech Preview Release 137 (Safari 15.4, WebKit 16613.1.11.8) - which stays black too. Unfortunately I can't download Safari Betas since I'm not an Apple Developer.

I hope that Safari 15.1 will released soon and that bug is fixed and stays fixed ;)