mv_machine_learning: add multiple tasks support to MachineLearningNative module
authorInki Dae <inki.dae@samsung.com>
Fri, 8 Dec 2023 07:18:03 +0000 (16:18 +0900)
committerKwanghoon Son <k.son@samsung.com>
Wed, 27 Dec 2023 03:22:49 +0000 (12:22 +0900)
commit72a0b05bb4caff2e97492ed3bf4bf155c03963ad
treee1f0f870ce47d57fa88815b0ca2c793dcd5c4a94
parentc9362644b15764e187804e125f044fe36e04048e
mv_machine_learning: add multiple tasks support to MachineLearningNative module

[Issue type] : new feature

Add multiple tasks support to MachineLearningNative module. In case of
face recognition task group, two tasks - facenet and face_recognition -
are needed. Therefore, this patch adds a new API,
machine_learning_native_add() which adds a given task object to
the given context, to MachineLearningNative module, changes return type of
machine_learning_native_create() to void * type for API consistency, and
updates other task groups to call this API.

In addition, this patch drops a redundant parameter, task_name, from
machine_learning_native_destroy().

Change-Id: I9c3ca2645dc876a3c7eb31bb9ce0aca56d376ad9
Signed-off-by: Inki Dae <inki.dae@samsung.com>
mv_machine_learning/common/include/MachineLearningNative.h
mv_machine_learning/common/src/MachineLearningNative.cpp
mv_machine_learning/face_recognition/src/mv_face_recognition.cpp
mv_machine_learning/image_classification/src/mv_image_classification.cpp
mv_machine_learning/landmark_detection/src/mv_facial_landmark.cpp
mv_machine_learning/landmark_detection/src/mv_pose_landmark.cpp
mv_machine_learning/object_detection/src/mv_face_detection.cpp
mv_machine_learning/object_detection/src/mv_object_detection.cpp