mv_machine_learning: code clean to setModelInfo function
authorInki Dae <inki.dae@samsung.com>
Mon, 7 Aug 2023 22:45:58 +0000 (07:45 +0900)
committerKwanghoon Son <k.son@samsung.com>
Mon, 4 Sep 2023 04:57:02 +0000 (13:57 +0900)
commit1e5df059adf3df83e991d9f3fdd6cfad6bb731ff
treeb721d9f5a11b59a86613a60c9b12089e22c8145b
parentdb5127a86ab0da0ef669030cb0511fbd4fcae850
mv_machine_learning: code clean to setModelInfo function

[Issue type] : code cleanup

Clean up setModelInfo function by doing function extraction.

setModelInfo function converted a given model name to its corresponding
task type internally so it made the function to be complicated.
This patch extracts the conversion portion from setModelInfo function as
another function and makes the function to be called instead.

Change-Id: I93243ffba543f9c6e9a1f0d7690d8f48a1bd14e1
Signed-off-by: Inki Dae <inki.dae@samsung.com>
mv_machine_learning/object_detection/include/object_detection_adapter.h
mv_machine_learning/object_detection/src/object_detection_adapter.cpp