mv_machine_learning: fix label removal issue of face recognition 19/298919/1
authorInki Dae <inki.dae@samsung.com>
Fri, 15 Sep 2023 07:17:51 +0000 (16:17 +0900)
committerInki Dae <inki.dae@samsung.com>
Fri, 15 Sep 2023 07:17:51 +0000 (16:17 +0900)
commita83779277d59086bb649630870643a51ec4e0d08
treef6be43b1bea49213202942c70136c0d916ca522c
parentc41abdc62cbded4789035a2658e5f1aede311517
mv_machine_learning: fix label removal issue of face recognition

[Issue type] : bug fix
[Version] : 0.28.16

Fix a label removal issue of face recognition framework.

Due to this issue, seg. fault happened when unregistering a given label
because the label table wan't updated after unregistering the label.

Therefore, this patch fixes the problem by making sure to update the label
table after unregistering. In addition, this patch makes the result CAPI
to be allowed after mv_face_recognition_inference function call so relevalt
test case is also updated properly.

Change-Id: Ib913d56c8b3625c2c6ebf9468aa19734d4ada0d2
Signed-off-by: Inki Dae <inki.dae@samsung.com>
mv_machine_learning/face_recognition/src/face_recognition.cpp
mv_machine_learning/training/src/label_manager.cpp
packaging/capi-media-vision.spec
test/testsuites/machine_learning/face_recognition/test_face_recognition.cpp