-
Hello. No matter what I try I only ever get 1 face in the result. Config: const config: Partial<Config> = {
modelBasePath: `file://${resolve("./node_modules/@vladmandic/human/models")}`,
debug: true,
face: {
enabled: true,
// modelPath: "blazeface.json", // faceres.json
description: { enabled: true },
mesh: { enabled: true }, // Required to find anything for some reason.
liveness: { enabled: false },
antispoof: { enabled: false },
attention: { enabled: false },
gear: { enabled: false },
detector: { enabled: true, rotation: false },
iris: { enabled: false },
emotion: { enabled: false },
},
hand: { enabled: false },
body: { enabled: false },
object: { enabled: false },
gesture: { enabled: false },
}; And faces is always an array with 1 face. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Eh... looks like this fixes its: |
Beta Was this translation helpful? Give feedback.
-
@mctrafik You are correct on the required config. Btw, I've changed the default value for |
Beta Was this translation helpful? Give feedback.
Eh... looks like this fixes its:
{ ..., detector: { maxDetected: 100 }, ... }
which I thought was the default. It's really odd that it's defaulting to1
. I saw in this wiki article: https://github.com/vladmandic/human/wiki/Embedding that it will just detect multiple faces without specifyingmaxDetected
in the config.