这是indexloc提供的服务,不要输入任何密码
Skip to content

Error when using in NestJS #952

@alizarei95

Description

@alizarei95
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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions