Hi,
I would like to import SelfieSegmentation from mediapipe via CDN. I have seen the usage via npm (npm install @mediapipe/selfie_segmentation), but want it via CDN and use the object SelfieSegmentation
I have tried the code below. but could not find the object SelfieSegmentation
Then, in a separate js file you can reference it from the window:
const selfieSegmentation = new window.mediapipeselfieSegmentation(...)
In your code snippet it looks like youβre trying to use SelfieSegmentation, not the object you were trying to import (mediapipeselfieSegmentation) so you probably want to figure out how to import SelfieSegmentation instead.