mirror of https://github.com/vladmandic/human
fix for face crop when mesh is disabled
parent
4f2993a2f5
commit
b93ea7314c
|
@ -9,7 +9,10 @@
|
|||
|
||||
## Changelog
|
||||
|
||||
### **HEAD -> main** 2021/11/11 mandic00@live.com
|
||||
### **HEAD -> main** 2021/11/12 mandic00@live.com
|
||||
|
||||
|
||||
### **origin/main** 2021/11/11 mandic00@live.com
|
||||
|
||||
- add similarity score range normalization
|
||||
- add faceid demo
|
||||
|
|
1
TODO.md
1
TODO.md
|
@ -46,6 +46,7 @@ New:
|
|||
- new optional model `liveness`
|
||||
checks if input appears to be a real-world live image or a recording
|
||||
best used together with `antispoofing` that checks if input appears to have a realistic face
|
||||
- new face masking option in `face.config.detector.mask`
|
||||
|
||||
Other:
|
||||
- Improved **Safari** compatibility
|
||||
|
|
|
@ -66,7 +66,8 @@ export async function predict(input: Tensor, config: Config): Promise<FaceResult
|
|||
annotations: {},
|
||||
};
|
||||
|
||||
[angle, rotationMatrix, face.tensor] = util.correctFaceRotation(false && config.face.detector?.rotation, box, input, config.face.mesh?.enabled ? inputSize : blazeface.size()); // optional rotate based on detector data
|
||||
// optional rotation correction based on detector data only if mesh is disabled otherwise perform it later when we have more accurate mesh data. if no rotation correction this function performs crop
|
||||
[angle, rotationMatrix, face.tensor] = util.correctFaceRotation(!config.face.mesh?.enabled && config.face.detector?.rotation, box, input, config.face.mesh?.enabled ? inputSize : blazeface.size());
|
||||
if (config?.filter?.equalization) {
|
||||
const equilized = await histogramEqualization(face.tensor as Tensor);
|
||||
tf.dispose(face.tensor);
|
||||
|
|
Loading…
Reference in New Issue