mv_machine_learning: introduce MachineLearningConfig class
authorInki Dae <inki.dae@samsung.com>
Tue, 7 Nov 2023 11:07:51 +0000 (20:07 +0900)
committerInki Dae <inki.dae@samsung.com>
Tue, 14 Nov 2023 07:40:39 +0000 (16:40 +0900)
commit6c120eb7e1799eb22a4cede29a0e5c30312b5889
tree31ea8c0bd8f30559d6092b24d306836b86249722
parent883ae2383e3167a9876e7ef1a5844d135b844ea9
mv_machine_learning: introduce MachineLearningConfig class

[Issue type] : new feature

Introduce MachineLearningConfig class which parses configuration
and meta files for each task group.

Until now, we have fixed the code smell, divergent change, of each task group
by extracting parsing portion from each concrete class of each task group,
and we conformed that the parsing portions can be used commonly for all
task groups.

This patch introduces a new common configuration class, MachineLearningConfig
by moving all parsing portions to this class. As a first use case,
this patch makes ObjectDetection3d task group to use the MachineLarningConfig
class instead of internal code, ObjectDetection3dConfig class so it drops
all relevant internal code - finally, we can drop the ugly code duplication.

Change-Id: I8f6a3c276e61903350fd1ae4390f7b125931b2b3
Signed-off-by: Inki Dae <inki.dae@samsung.com>
15 files changed:
mv_machine_learning/common/CMakeLists.txt
mv_machine_learning/common/include/machine_learning_config.h [moved from mv_machine_learning/object_detection_3d/include/object_detection_3d_config.h with 88% similarity]
mv_machine_learning/common/include/machine_learning_key.h [new file with mode: 0644]
mv_machine_learning/common/src/machine_learning_config.cpp [moved from mv_machine_learning/object_detection_3d/src/object_detection_3d_config.cpp with 57% similarity]
mv_machine_learning/object_detection_3d/CMakeLists.txt
mv_machine_learning/object_detection_3d/include/mv_object_detection_3d_config.h [deleted file]
mv_machine_learning/object_detection_3d/include/object_detection_3d.h
mv_machine_learning/object_detection_3d/include/object_detection_3d_adapter.h
mv_machine_learning/object_detection_3d/include/objectron.h
mv_machine_learning/object_detection_3d/meta/object_detection_3d.json
mv_machine_learning/object_detection_3d/src/object_detection_3d.cpp
mv_machine_learning/object_detection_3d/src/object_detection_3d_adapter.cpp
mv_machine_learning/object_detection_3d/src/objectron.cpp
packaging/capi-media-vision.spec
test/testsuites/machine_learning/object_detection_3d/CMakeLists.txt