mv_machine_learning: use DEFAULT_MODEL_NAME for face detection task
authorInki Dae <inki.dae@samsung.com>
Wed, 25 Oct 2023 06:48:25 +0000 (15:48 +0900)
committerInki Dae <inki.dae@samsung.com>
Tue, 14 Nov 2023 07:38:37 +0000 (16:38 +0900)
commit8327ac36ea7f9ff6a1887cc28822e167ff9de55c
tree776b5b2dc6141a3a4ca179da3fc39bd85e2427ef
parentcd9fcd4dec9d9f07633a2b79a47b303b5283f92d
mv_machine_learning: use DEFAULT_MODEL_NAME for face detection task

[Issue type] : new feature

Use the meta file for face detection task to set the default model

With this patch, a proper concrete class object will be created
at the constructor of FaceDetectionAdapter class according to the default
model name which is parsed from face_detection.json file.

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 file, face_detection.json.

Change-Id: Iaddd0a820180332707852bbea51afcafb49238fa
Signed-off-by: Inki Dae <inki.dae@samsung.com>
mv_machine_learning/object_detection/include/face_detection_adapter.h
mv_machine_learning/object_detection/meta/face_detection.json
mv_machine_learning/object_detection/src/face_detection_adapter.cpp