mv_machine_learning: face_iris: add face landmark score value
authorInki Dae <inki.dae@samsung.com>
Tue, 20 Dec 2022 04:28:30 +0000 (13:28 +0900)
committerInki Dae <inki.dae@samsung.com>
Tue, 20 Dec 2022 04:28:30 +0000 (13:28 +0900)
Change-Id: I4f87375e52768b2199094d2b0745fea9839f06f6
Signed-off-by: Inki Dae <inki.dae@samsung.com>
mv_machine_learning/face_iris/src/face_landmark_detection.cpp

index 9cd973bda92d162a298c016c51f9cd8426f1e3dc..7cd3ba15ea364f39e31883e4e9cfe09a1863a3e4 100644 (file)
@@ -167,6 +167,7 @@ face_landmark_result_s &FaceLandmarkDetection::getLandmarkResult()
        float *landmark_ptr = reinterpret_cast<float *>(_landmark_tensor->buffer);
 
        for (unsigned int idx = 0; idx < FACE_KEY_NUM; idx ++) {
+               _result.score = *mashscore_ptr;
                _result.joint[idx].x = landmark_ptr[3 * idx + 0] / (float)input_img_w;
                _result.joint[idx].y = landmark_ptr[3 * idx + 1] / (float)input_img_h;
                _result.joint[idx].z = landmark_ptr[3 * idx + 2];