diff options
author | Vibhav Aggarwal <v.aggarwal@samsung.com> | 2024-06-12 18:09:43 +0900 |
---|---|---|
committer | Vibhav Aggarwal <v.aggarwal@samsung.com> | 2024-06-12 18:09:43 +0900 |
commit | 5ee3a4ba41c4de5241f4fed867a60e575d7fc09b (patch) | |
tree | 3140d074673a093509080e04cac3a8ebde3e5d08 /test/testsuites | |
parent | 73632120a834f87d020841985eff7f307a3abf28 (diff) | |
download | mediavision-5ee3a4ba41c4de5241f4fed867a60e575d7fc09b.tar.gz mediavision-5ee3a4ba41c4de5241f4fed867a60e575d7fc09b.tar.bz2 mediavision-5ee3a4ba41c4de5241f4fed867a60e575d7fc09b.zip |
[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_toolchain
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>
Diffstat (limited to 'test/testsuites')
6 files changed, 14 insertions, 4 deletions
diff --git a/test/testsuites/machine_learning/image_classification/test_image_classification.cpp b/test/testsuites/machine_learning/image_classification/test_image_classification.cpp index ba3037bc..7b297b02 100644 --- a/test/testsuites/machine_learning/image_classification/test_image_classification.cpp +++ b/test/testsuites/machine_learning/image_classification/test_image_classification.cpp @@ -23,6 +23,7 @@ #include "ImageHelper.h" #include "mv_image_classification_internal.h" +#include "mv_image_classification.h" #define IMAGE_PATH TEST_RES_PATH "/res/inference/images/banana.jpg" diff --git a/test/testsuites/machine_learning/image_classification/test_image_classification_async.cpp b/test/testsuites/machine_learning/image_classification/test_image_classification_async.cpp index e292a53f..7f0ef277 100644 --- a/test/testsuites/machine_learning/image_classification/test_image_classification_async.cpp +++ b/test/testsuites/machine_learning/image_classification/test_image_classification_async.cpp @@ -23,6 +23,7 @@ #include "ImageHelper.h" #include "mv_image_classification_internal.h" +#include "mv_image_classification.h" #define IMAGE_PATH TEST_RES_PATH "/res/inference/images/banana.jpg" #define MAX_INFERENCE_ITERATION 50 diff --git a/test/testsuites/machine_learning/landmark_detection/test_landmark_detection.cpp b/test/testsuites/machine_learning/landmark_detection/test_landmark_detection.cpp index 752553c0..134a1cf4 100644 --- a/test/testsuites/machine_learning/landmark_detection/test_landmark_detection.cpp +++ b/test/testsuites/machine_learning/landmark_detection/test_landmark_detection.cpp @@ -22,7 +22,9 @@ #include "ImageHelper.h" #include "mv_facial_landmark_internal.h" +#include "mv_facial_landmark.h" #include "mv_pose_landmark_internal.h" +#include "mv_pose_landmark.h" #define IMG_FACE TEST_RES_PATH "/res/inference/images/faceLandmark.jpg" #define IMG_POSE TEST_RES_PATH "/res/inference/images/poseLandmark.jpg" diff --git a/test/testsuites/machine_learning/landmark_detection/test_landmark_detection_async.cpp b/test/testsuites/machine_learning/landmark_detection/test_landmark_detection_async.cpp index 93e7f3fc..caa4437b 100644 --- a/test/testsuites/machine_learning/landmark_detection/test_landmark_detection_async.cpp +++ b/test/testsuites/machine_learning/landmark_detection/test_landmark_detection_async.cpp @@ -23,7 +23,9 @@ #include "ImageHelper.h" #include "mv_facial_landmark_internal.h" +#include "mv_facial_landmark.h" #include "mv_pose_landmark_internal.h" +#include "mv_pose_landmark.h" #define IMG_FACE TEST_RES_PATH "/res/inference/images/faceLandmark.jpg" #define IMG_POSE TEST_RES_PATH "/res/inference/images/poseLandmark.jpg" diff --git a/test/testsuites/machine_learning/object_detection/test_object_detection.cpp b/test/testsuites/machine_learning/object_detection/test_object_detection.cpp index aaee147b..b9432d62 100644 --- a/test/testsuites/machine_learning/object_detection/test_object_detection.cpp +++ b/test/testsuites/machine_learning/object_detection/test_object_detection.cpp @@ -22,7 +22,9 @@ #include "ImageHelper.h" #include "mv_face_detection_internal.h" +#include "mv_face_detection.h" #include "mv_object_detection_internal.h" +#include "mv_object_detection.h" #define IMG_DOG TEST_RES_PATH "/res/inference/images/dog2.jpg" #define IMG_FACE TEST_RES_PATH "/res/inference/images/faceDetection.jpg" @@ -184,7 +186,7 @@ TEST(ObjectDetectionTest, InferenceShouldBeOk) for (unsigned int idx = 0; idx < number_of_objects; ++idx) { int left, top, right, bottom; - int ret = mv_object_detection_get_bbox(handle, idx, &left, &top, &right, &bottom); + int ret = mv_object_detection_get_bound_box(handle, idx, &left, &top, &right, &bottom); ASSERT_EQ(ret, MEDIA_VISION_ERROR_NONE); ASSERT_EQ(coordinate_answers[answer_idx][idx][0], left); @@ -252,7 +254,7 @@ TEST(FaceDetectionTest, InferenceShouldBeOk) for (unsigned int idx = 0; idx < number_of_objects; ++idx) { int left, top, right, bottom; - int ret = mv_face_detection_get_bbox(handle, idx, &left, &top, &right, &bottom); + int ret = mv_face_detection_get_bound_box(handle, idx, &left, &top, &right, &bottom); ASSERT_EQ(ret, MEDIA_VISION_ERROR_NONE); ASSERT_EQ(coordinate_answers[idx][0], left); diff --git a/test/testsuites/machine_learning/object_detection/test_object_detection_async.cpp b/test/testsuites/machine_learning/object_detection/test_object_detection_async.cpp index 5084b276..4a7cdd81 100644 --- a/test/testsuites/machine_learning/object_detection/test_object_detection_async.cpp +++ b/test/testsuites/machine_learning/object_detection/test_object_detection_async.cpp @@ -23,7 +23,9 @@ #include "ImageHelper.h" #include "mv_face_detection_internal.h" +#include "mv_face_detection.h" #include "mv_object_detection_internal.h" +#include "mv_object_detection.h" #define IMG_DOG TEST_RES_PATH "/res/inference/images/dog2.jpg" #define IMG_FACE TEST_RES_PATH "/res/inference/images/faceDetection.jpg" @@ -62,7 +64,7 @@ void object_detection_callback(void *user_data) for (unsigned int idx = 0; idx < number_of_objects; ++idx) { int left, top, right, bottom; - int ret = mv_object_detection_get_bbox(handle, idx, &left, &top, &right, &bottom); + int ret = mv_object_detection_get_bound_box(handle, idx, &left, &top, &right, &bottom); ASSERT_EQ(ret, MEDIA_VISION_ERROR_NONE); ASSERT_EQ(coordinate_answers[idx][0], left); @@ -202,7 +204,7 @@ void face_detection_callback(void *user_data) for (unsigned int idx = 0; idx < number_of_objects; ++idx) { int left, top, right, bottom; - int ret = mv_face_detection_get_bbox(handle, idx, &left, &top, &right, &bottom); + int ret = mv_face_detection_get_bound_box(handle, idx, &left, &top, &right, &bottom); ASSERT_EQ(ret, MEDIA_VISION_ERROR_NONE); ASSERT_EQ(coordinate_answers[idx][0], left); |