mv_machine_learning: introduce Context, ITask and adapter classes
authorInki Dae <inki.dae@samsung.com>
Fri, 1 Jul 2022 06:44:32 +0000 (15:44 +0900)
committerInki Dae <inki.dae@samsung.com>
Wed, 20 Jul 2022 05:16:57 +0000 (14:16 +0900)
commit42f56e7cbdaf642496628f657a0006774fc03bc9
treeced47707618b136b999f9236020c742ebaa49ced
parentf6a4877595e27aa8ae7e49a50a93320e09b836d7
mv_machine_learning: introduce Context, ITask and adapter classes

[Issue type] new feature

Introduced Context, ITask, and adapter class derived from ITask one.

With this patch, each Task API has a context which can have one more
itask objects for controlling inference or training modules.
The purpose of this patch is to keep same interfaces for each module.

As a reference, this patch applies this new approach to Face recognition
framework. This is just a step for next code refactoring
for multi models support.

Change-Id: Iad4c4df9fc87143723decadbc003787854e60e4b
Signed-off-by: Inki Dae <inki.dae@samsung.com>
12 files changed:
CMakeLists.txt
media-vision-config.json
mv_machine_learning/common/include/context.h [new file with mode: 0644]
mv_machine_learning/common/include/itask.h [new file with mode: 0644]
mv_machine_learning/face_recognition/include/face_recognition.h
mv_machine_learning/face_recognition/include/face_recognition_adapter.h [new file with mode: 0644]
mv_machine_learning/face_recognition/include/mv_face_recognition_open.h
mv_machine_learning/face_recognition/meta/face_recognition.json [new file with mode: 0644]
mv_machine_learning/face_recognition/src/face_recognition.cpp
mv_machine_learning/face_recognition/src/face_recognition_adapter.cpp [new file with mode: 0644]
mv_machine_learning/face_recognition/src/mv_face_recognition_open.cpp
packaging/capi-media-vision.spec