summaryrefslogtreecommitdiff
path: root/test/testsuites/machine_learning/image_classification
AgeCommit message (Collapse)AuthorFilesLines
13 daysRemove cout in testKwanghoon Son1-12/+1
When test passed, it just noisy. Change-Id: I1f4e417a1f37856c712a0e182204032007319583 Signed-off-by: Kwanghoon Son <k.son@samsung.com>
13 daysFix mv_{task}_set_modelKwanghoon Son2-23/+8
- Missing parameter - Parameter model_name is optional so move to the end of parameter list - Test created a std::bad_alloc exception problem because structure model_info was used in several places under the same name. Change-Id: I8f1a77bfeff724e5405b5ac54eb3bdbe6a3e1b6c Signed-off-by: Kwanghoon Son <k.son@samsung.com>
2024-06-19Fix lintKwanghoon Son2-2/+2
[Version] 1.0.2 Change-Id: Ie97328e3e55cfec95620b61f024607faa1e07ab2 Fixes: 5ee3a4ba41c4 ("[ACR-1848] Publish machine learning APIs") Signed-off-by: Kwanghoon Son <k.son@samsung.com>
2024-06-12[ACR-1848] Publish machine learning APIsaccepted/tizen/unified/x/asan/20240625.092955accepted/tizen/unified/x/20240619.013513accepted/tizen/unified/toolchain/20240624.121719accepted/tizen/unified/dev/20240620.004157accepted/tizen/unified/20240618.060058accepted/tizen_unified_x_asanaccepted/tizen_unified_toolchainVibhav Aggarwal2-0/+2
Please refer to the following ACR: https://jira.sec.samsung.net/browse/ACR-1848 Change-Id: I92c053b3cb1d872735ccd548a091ba9e6b29861f Signed-off-by: Vibhav Aggarwal <v.aggarwal@samsung.com>
2024-03-06Apply clang-format sort includeKwanghoon Son2-2/+2
Change-Id: If9201c73eec2ac6ac09439f8d5ae54e1d202bda0 Signed-off-by: Kwanghoon Son <k.son@samsung.com>
2024-02-05mv_machine_learning: use explicit API name and code cleanupInki Dae2-14/+5
[Issue type] : code cleanup Use explicit result API name for task group API to make it easier for users to understand what kind of information they will receive from the Task Group API. In addition, this patch cleans up test code for each task group by dropping console output and unnecessary parameters from task group API and its test case code. Change-Id: I3194c50e3b712640034ccd7437c408fb5a6679ab Signed-off-by: Inki Dae <inki.dae@samsung.com>
2024-01-31mv_machine_learning: move frame_number to get_result_count APIInki Dae2-6/+6
[Issue type] : parameter change Move frame_number parameter to get_result_count API because frame_number depends on input data. The frame_number will be used to check if current result coresponds to which input data. And minor typo fixup. Change-Id: I0774c0d18b8fde459dda60f7a42763ab4c672651 Signed-off-by: Inki Dae <inki.dae@samsung.com>
2024-01-26mv_machine_learning: introduce get_result_count API for image classificationInki Dae2-12/+31
[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>
2024-01-17mv_machine_learning: make testing more robustVibhav Aggarwal2-9/+18
[Issue type] code improvement This patch makes the testing more robust by checking the return value of some native APIs and also fixes some minor bugs. Change-Id: I352599b86467ce885e171b4b071a28eb396c2161 Signed-off-by: Vibhav Aggarwal <v.aggarwal@samsung.com>
2023-12-06mv_machine_learing: enable inference-based testsVibhav Aggarwal2-4/+4
[Issue type] code improvement This patch re-enables some of the testcases which were disabled in [1]. Specifically, all the machine learning testcases except Face Recognition and Image Segmentation task groups have been enabled. For Face Recognition, there are still some memory leaks related to NNTrainer and further investigation is required. Image Segmentation testcases are still under development [2]. [1] https://review.tizen.org/gerrit/#/c/platform/core/api/mediavision/+/301888/ [2] https://review.tizen.org/gerrit/#/c/platform/core/api/mediavision/+/301785/ Change-Id: If97012b42165f210b1f67aaaf4a28e169c16303f Signed-off-by: Vibhav Aggarwal <v.aggarwal@samsung.com>
2023-12-06mv_machine_learning: disable testsVibhav Aggarwal2-4/+4
[Issue type] temporary fix Some memory related bug in mv_machine_learning task groups is causing the testcases to fail. This came to notice after machine learning testcases were integrated into mv_test[1] and the Tizen MMFW bot reported an error after running the testcases with ASan enabled. This patch temporarily disables those testcases until the issue is resolved. [1] https://review.tizen.org/gerrit/#/c/platform/core/api/mediavision/+/301594/ Change-Id: I4f69c6a2b2eded914a5422696d3af85f3ed0be00 Signed-off-by: Vibhav Aggarwal <v.aggarwal@samsung.com>
2023-12-06mv_test: integrate machine learning testcases into mv_testVibhav Aggarwal1-27/+5
[Issue type] code refactoring Change-Id: I881586381c9957d15cf97331c2a44ad52df75847 Signed-off-by: Vibhav Aggarwal <v.aggarwal@samsung.com>
2023-11-14Update cmake version to 3.13Kwanghoon Son1-1/+1
Range version supported from 3.12 so just set minimum version to 3.13 Change-Id: Ied6872be4fff447318709e816d84ca08ee4219dd Signed-off-by: Kwanghoon Son <k.son@samsung.com>
2023-11-14mv_machine_learning: use MachineLearningConfig class for other task groupsInki Dae1-0/+2
[Issue type] : code refactoring Use MachineLearningConfig class for other task groups instead of internal ones. We have introduced a new common config class[1] and object detection and object detection 3d task groups use already it. So this patch makes other task groups - which not use the common config class - to use the common class instead of internal ones, and drop the internal config class. In addition, this patch applies confidence threshold config key for landmark detection task group to MachineLearningConfig class. [1] https://review.tizen.org/gerrit/#/c/platform/core/api/mediavision/+/301043/ Change-Id: I6e77ce33349bbdcb22f64102a7ec3f8808249b1c Signed-off-by: Inki Dae <inki.dae@samsung.com>
2023-10-25mv_machine_learning: add async API for image classification task groupInki Dae2-0/+194
[Issue type] : new feature Add asynchronous API, mv_image_classification_inference_async, for image classification task group using AsyncManger class which is a common class for asynchronous API support including test case. In addition, this patch includes one fixup and cleanup. - Fix a issue that it can access to the empty input queue after waitforInputQueue() call by checking if the input queue is empty or not. - Clean up parseMetaFile and configure member functions by using const & as a parameter type. Change-Id: I402760e9f585e113b06933b7d36df1767637e5c2 Signed-off-by: Inki Dae <inki.dae@samsung.com>
2023-07-04Fix auto to const auto &Kwanghoon Son1-1/+1
[Version] 0.28.8 [Issue] coverity Coverity report major defect auto_causes_copy. Change-Id: I5fe928d8a95572f26ddd0f299299a45a2c043732 Signed-off-by: Kwanghoon Son <k.son@samsung.com>
2023-04-17Change test resource path to owner mediaaccepted/tizen/unified/20230420.041535Kwanghoon Son2-2/+2
Change resource path /usr/share/capi-media-vision/ to /opt/usr/home/owner/media/Others/mv_test/. The problem is that the resource is stored in the location where the root authority is required, so it's not working during auto-coverage(user-mode). Change-Id: Ibfbc8a3fd8d75af8ba75203bb2841795afd04e42 Signed-off-by: Kwanghoon Son <k.son@samsung.com>
2023-03-22mv_machine_learning: introduce engine configuration task APIInki Dae1-0/+47
[Issue type] : new feature Introduced inference engine configuration task API, which allows user to set user desired inference engine and its device type for inference request. Regarding this, this patch adds below itask interfaces, - setEngineInfo . Set user desired inference engine and its device type. - getNumberOfEngine . Get how many inference engines are available for a given task API. - getEngineType . Get inference engine type to a given index. - getNumberOfDevice . Get how many device types are available for a given inference engine. - getDeviceType . Get device type with a given index. And as an actual task API implementation, this patch introduces inference engine configuration API for image classification task group. Change-Id: I8c8a161ea83e851d120bc04290323f2f15103da8 Signed-off-by: Inki Dae <inki.dae@samsung.com>
2023-02-13mv_machine_learning: introduce image classification task groupInki Dae2-0/+110
[Issue type] : new feature Introduce itask based image classification task group which is just a portion of code refactoring to the legacy deep learning API set. As we had a talk internally, I will introduce each task group based on itask interface which is able to inference existing all image classification models, and we will deprecate all legacy code as soon as all task groups are introduced. Until that, we will use "internal" postfix for all the CAPI. Below is the new CAPI set, mv_image_classification_create mv_image_classification_destroy mv_image_classification_configure mv_image_classification_prepare mv_image_classification_inference mv_image_classification_get_label mv_image_classification_set_model And its test case application, test_image_classification Change-Id: I846fd1685b1185d0cd60409aa45bbb04a9f17ca6 Signed-off-by: Inki Dae <inki.dae@samsung.com>