So I'm trying to import the following library (@tensorflow-models/face-landmarks-detection) to my expo managed application.
as per the documentation in their Github README, I installed the dependencies via npm, and followed the import instructions:
import * as faceLandmarksDetection from '@tensorflow-models/face-landmarks-detection';
import '@tensorflow/tfjs-core';
import '@tensorflow/tfjs-backend-webgl';
import '@mediapipe/face_mesh';
But simply including the import statement, specifically importing @tensorflow-models/face-landmarks-detection, gives me the following error:
"TypeError: Cannot read property 'includes' of undefined, js engine: hermes"
The source for the error is face_mesh.js, where the error lies in the code navigator.userAgent.includes("Mac")
.
Is it not possible to use this tensorflow.js model with the Expo CLI?
Tried changing backend to RN-webgl, etc.