diff --git a/Configuration.md b/Configuration.md index 29f995e..5735243 100644 --- a/Configuration.md +++ b/Configuration.md @@ -134,7 +134,7 @@ const config: Config = { }, description: { - enabled: true, // to improve accuracy of face embedding extraction it is + enabled: true, // to improve accuracy of face description extraction it is // recommended to enable detector.rotation and mesh.enabled modelPath: '../models/faceres.json', skipFrames: 31, // how many frames to go without re-running the detector @@ -144,14 +144,14 @@ const config: Config = { emotion: { enabled: true, minConfidence: 0.1, // threshold for discarding a prediction - skipFrames: 33, // how many frames to go without re-running the detector + skipFrames: 32, // how many frames to go without re-running the detector modelPath: '../models/emotion.json', }, age: { enabled: false, // obsolete, replaced by description module modelPath: '../models/age.json', - skipFrames: 31, // how many frames to go without re-running the detector + skipFrames: 33, // how many frames to go without re-running the detector // only used for video inputs }, @@ -159,7 +159,7 @@ const config: Config = { enabled: false, // obsolete, replaced by description module minConfidence: 0.1, // threshold for discarding a prediction modelPath: '../models/gender.json', - skipFrames: 32, // how many frames to go without re-running the detector + skipFrames: 34, // how many frames to go without re-running the detector // only used for video inputs }, @@ -171,7 +171,8 @@ const config: Config = { body: { enabled: true, - modelPath: '../models/posenet.json', // can be 'posenet' or 'blazepose' + modelPath: '../models/posenet.json', // can be 'posenet', 'blazepose' or 'efficientpose' + // 'blazepose' and 'efficientpose' are experimental maxDetections: 10, // maximum number of people detected in the input // should be set to the minimum number for performance // only valid for posenet as blazepose only detects single pose @@ -212,11 +213,12 @@ const config: Config = { object: { enabled: false, modelPath: '../models/nanodet.json', - minConfidence: 0.15, // threshold for discarding a prediction - iouThreshold: 0.25, // threshold for deciding whether boxes overlap too much + // 'nanodet' is experimental + minConfidence: 0.20, // threshold for discarding a prediction + iouThreshold: 0.40, // threshold for deciding whether boxes overlap too much // in non-maximum suppression maxResults: 10, // maximum number of objects detected in the input - skipFrames: 13, // how many frames to go without re-running the detector + skipFrames: 41, // how many frames to go without re-running the detector }, }; ``` diff --git a/Embedding.md b/Embedding.md index ed3f554..df372ba 100644 --- a/Embedding.md +++ b/Embedding.md @@ -129,11 +129,11 @@ Last parameter is optional and notes a minimal threshold for a match Database can be further stored in a JS or JSON file and retrieved when needed to have a permanent database of faces that can be expanded over time to cover any number of known faces -For example, see `/demo/facematch.js` and example database `/demo/faces.json`: +For example, see `/demo/facematch.js` and example database `/demo/facematch-faces.json`: ```js // download db with known faces - let res = await fetch('/demo/faces.json'); + let res = await fetch('/demo/facematch-faces.json'); db = (res && res.ok) ? await res.json() : []; ```