my vuejs project includes face-api.js@0.22.1 and jimp@0.9.3. For some reasons on Safari (works on chrome, firefox and microsoft edge), when I used jimp plugin, I'm getting TypedArray.from requires its this argument subclass a TypedArray constructor when I load the models. If I commented out import Jimp from "jimp";, the error goes away.
Below is my code:
import * as faceapi from "face-api.js";
import Jimp from "jimp";
...
try{
await faceapi.nets.tinyFaceDetector.loadFromUri("/models");
} catch(err) {
console.log(err);
}
Hmm apparently importing jimp has some side effects then. I am not familar with jimp sorry, so I am not sure what it does and how to avoid it breaking other packages.
Hi,
my vuejs project includes
face-api.js@0.22.1
andjimp@0.9.3
. For some reasons on Safari (works on chrome, firefox and microsoft edge), when I usedjimp
plugin, I'm gettingTypedArray.from requires its this argument subclass a TypedArray constructor
when I load the models. If I commented outimport Jimp from "jimp";
, the error goes away.Below is my code: