mv_machine_learning: introduce get_result_count API for image classification 11/304911/4
authorInki Dae <inki.dae@samsung.com>
Thu, 25 Jan 2024 08:13:15 +0000 (17:13 +0900)
committerInki Dae <inki.dae@samsung.com>
Fri, 26 Jan 2024 04:38:15 +0000 (04:38 +0000)
commita72aba9b845f7740ead6b9e74e18ccda52eb1a73
treec5543666dd8f44dce7a86c57e765065c34dd4f40
parent58ef97911b32e0cf835ac213d2311701d69ff387
mv_machine_learning: introduce get_result_count API for image classification

[Issue type] : new feature

Introduce get_result_count API for image classification task group.

In user perspective, this API provides information on how many results exist
so that user can request each result corresponding to a user-given index.
And also, in framework perspective, it provides consistent API behavior -
get_result_count API call updates _current_result of task group by calling
getOutput function of ITask, and get_result API call returns _current_result
value by calling getOutputCache function of ITask.

And we are enough with get_result_count and get_result API so drop existing
get_label API.

Change-Id: I9c1cb9e855494474af1510bbaf94febbdc57f05e
Signed-off-by: Inki Dae <inki.dae@samsung.com>
include/mv_image_classification_internal.h
mv_machine_learning/image_classification/include/IImageClassification.h
mv_machine_learning/image_classification/include/ImageClassification.h
mv_machine_learning/image_classification/src/ImageClassification.cpp
mv_machine_learning/image_classification/src/ImageClassificationAdapter.cpp
mv_machine_learning/image_classification/src/mv_image_classification.cpp
test/testsuites/machine_learning/image_classification/test_image_classification.cpp
test/testsuites/machine_learning/image_classification/test_image_classification_async.cpp