This patch is to change FD filtering method of cameraHAL. By tuning
FD parameter, All IDs of face those have score above 0 are treated
as faces.
Bug:
7276572
Change-Id: Ideaa5c476397e0da47ee0f17b9c6a50cadf3ab0c
Signed-off-by: Younghwan Joo <yhwan.joo@samsung.com>
int tempFaceCount = 0;
for (int i = 0; i < CAMERA2_MAX_FACES; i++) {
- if (metadata->dm.stats.faceScores[i] >= CAMERA2_FACE_DETECTION_THRESHOLD) {
+ if (metadata->dm.stats.faceIds[i] > 0) {
mataFaceIds[tempFaceCount] = metadata->dm.stats.faceIds[i];
metaFaceScores[tempFaceCount] = metadata->dm.stats.faceScores[i];