vladmandic / human

Human: AI-powered 3D Face Detection & Rotation Tracking, Face Description & Recognition, Body Pose Tracking, 3D Hand & Finger Tracking, Iris Analysis, Age & Gender & Emotion Prediction, Gaze Tracking, Gesture Recognition
https://vladmandic.github.io/human/demo/index.html
MIT License
2.36k stars 323 forks source link

Cant detect multiple faces #488

Closed ceyxasm closed 1 month ago

ceyxasm commented 1 month ago

Hey @vladmandic Human only detecting only single faces.

The following image is from main-demo image

I get similar result when I use the library with my own code. PFA my human config:

  const humanConfig = { 
    modelBasePath: '/model/',
    backend: 'wasm', 
    filter: { enabled: false, equalization: false, flip: false },
    face: {
      enabled: true,
      detector: {
        rotation: false,
        skipFrames: 30,
        return: true
      },
      mesh: {enabled: false},
      attention: {enabled: true},
      iris: {enabled: false},
      description: {enabled: false},
      emotion: {
        enabled: false,
        skipFrames: 30,
      }
    },
    body: { enabled: false },
    hand: { enabled: false },
    gesture: { enabled: false },
    object: { enabled: false },
    segmentation: { enabled: false },
    debug: DEBUG,
  };
vladmandic commented 1 month ago

that is just the default configuration - set it to any number of people you want:

{
  face: {
    detector: {
      maxDetected: 10
    }
  }
}