mv_machine_learning: use DEFAULT_MODEL_NAME for landmark detection task group
authorInki Dae <inki.dae@samsung.com>
Wed, 25 Oct 2023 11:07:07 +0000 (20:07 +0900)
committerInki Dae <inki.dae@samsung.com>
Tue, 14 Nov 2023 07:38:48 +0000 (16:38 +0900)
commitd8ab87ec9c01e38d1aaf9bd7d2bcacd058abc36c
tree0340456493c4792de4d76b972da1726e6b763a32
parent8327ac36ea7f9ff6a1887cc28822e167ff9de55c
mv_machine_learning: use DEFAULT_MODEL_NAME for landmark detection task group

[Issue type] : new feature

Use the meta file for landmark detection tasks to set the default model

With this patch, a proper concrete class object will be created
at the constructor of FacialLandmarkAdapter and PoseLandmarkAdapter classes
according to the default model names which are parsed from each meta file,
facial_landmark.json and pose_landmark.json files.

And also this patch calls the member function, create, to create the concrete
class object corresponding to the default model name instead of creating
a default concrete class object directly.

Finally, we can create user-desired concrete class object without rebuilding
by simply modifying the meta files.

Change-Id: I4ef045fe1ae24177ae4ebc7a3f48ae6e136c01dc
Signed-off-by: Inki Dae <inki.dae@samsung.com>
mv_machine_learning/landmark_detection/include/facial_landmark_adapter.h
mv_machine_learning/landmark_detection/include/landmark_detection_type.h
mv_machine_learning/landmark_detection/include/mv_landmark_detection_config.h
mv_machine_learning/landmark_detection/include/pose_landmark_adapter.h
mv_machine_learning/landmark_detection/meta/facial_landmark.json
mv_machine_learning/landmark_detection/meta/pose_landmark.json
mv_machine_learning/landmark_detection/src/facial_landmark_adapter.cpp
mv_machine_learning/landmark_detection/src/pose_landmark_adapter.cpp