mediapipe
mediapipe copied to clipboard
Fix DrawingUtils constructor failing in Web Workers
Without this commit, the DrawingUtils constructor fails in Web Workers because the CanvasRenderingContext2D is not available in the worker context. This commit adds a check whether the CanvasRenderingContext2D is defined before using it.
Fixes #5284
Hi @mbrenon,
Could you please review this fix for the DrawingUtils constructor failing in Web Workers?
Thank you!!
This is still an issue with 0.10.18 (and it looks like there's another breakage in 0.10.20). Can you please merge ?
Hi @schmidt-sebastian,
Could you please review this? It seems the issue persists on our end with version 0.10.20 as well.
Thank you!!