update docs

master
Vladimir Mandic 2021-03-11 22:04:32 -05:00
parent fa7ac1f695
commit a6a1fb7149
1 changed files with 5 additions and 4 deletions

@ -100,7 +100,7 @@ config = {
// (note: module is not loaded until it is required) // (note: module is not loaded until it is required)
detector: { detector: {
modelPath: '../models/blazeface-back.json', modelPath: '../models/blazeface-back.json',
rotation: true, // use best-guess rotated face image or just box with rotation as-is rotation: false, // use best-guess rotated face image or just box with rotation as-is
// false means higher performance, but incorrect mesh mapping if face angle is above 20 degrees // false means higher performance, but incorrect mesh mapping if face angle is above 20 degrees
// this parameter is not valid in nodejs // this parameter is not valid in nodejs
maxFaces: 10, // maximum number of faces detected in the input maxFaces: 10, // maximum number of faces detected in the input
@ -118,7 +118,7 @@ config = {
scoreThreshold: 0.2, // threshold for deciding when to remove boxes based on score scoreThreshold: 0.2, // threshold for deciding when to remove boxes based on score
// in non-maximum suppression, // in non-maximum suppression,
// this is applied on detection objects only and before minConfidence // this is applied on detection objects only and before minConfidence
return: true, // return extracted face as tensor return: false, // return extracted face as tensor
}, },
mesh: { mesh: {
@ -154,7 +154,8 @@ config = {
}, },
embedding: { embedding: {
enabled: false, enabled: false, // to improve accuracy of face embedding extraction it is recommended
// to enable detector.rotation and mesh.enabled
modelPath: '../models/mobilefacenet.json', modelPath: '../models/mobilefacenet.json',
}, },
}, },
@ -198,7 +199,7 @@ config = {
modelPath: '../models/handskeleton.json', modelPath: '../models/handskeleton.json',
}, },
}, },
} };
``` ```
<br> <br>