const img = await canvas.loadImage(image.buffer);
const result = await faceapi
.detectSingleFace(img, options)
.withFaceLandmarks()
.withFaceDescriptor();
I'm getting the error below:
TS2345: Argument of type Image is not assignable to parameter of type TNetInput
How can I fix it?