Fix lint 65/313065/2
authorKwanghoon Son <k.son@samsung.com>
Wed, 19 Jun 2024 01:29:10 +0000 (10:29 +0900)
committerKwanghoon Son <k.son@samsung.com>
Wed, 19 Jun 2024 01:38:22 +0000 (10:38 +0900)
[Version] 1.0.2

Change-Id: Ie97328e3e55cfec95620b61f024607faa1e07ab2
Fixes: 5ee3a4ba41c4 ("[ACR-1848] Publish machine learning APIs")
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
16 files changed:
include/mv_face_detection.h
include/mv_facial_landmark.h
include/mv_image_classification.h
include/mv_object_detection.h
include/mv_pose_landmark.h
mv_machine_learning/landmark_detection/src/mv_facial_landmark.cpp
mv_machine_learning/landmark_detection/src/mv_pose_landmark.cpp
mv_machine_learning/object_detection/src/mv_face_detection.cpp
mv_machine_learning/object_detection/src/mv_object_detection.cpp
packaging/capi-media-vision.spec
test/testsuites/machine_learning/image_classification/test_image_classification.cpp
test/testsuites/machine_learning/image_classification/test_image_classification_async.cpp
test/testsuites/machine_learning/landmark_detection/test_landmark_detection.cpp
test/testsuites/machine_learning/landmark_detection/test_landmark_detection_async.cpp
test/testsuites/machine_learning/object_detection/test_object_detection.cpp
test/testsuites/machine_learning/object_detection/test_object_detection_async.cpp

index 3a7a876319d351042adc303a59af60ce468242ba..cab4fb3a954d012ec4d5c0d8af0c8a8e76277942 100644 (file)
@@ -200,7 +200,7 @@ int mv_face_detection_inference_async(mv_face_detection_h handle, mv_source_h so
  * @pre Request an inference by calling mv_face_detection_inference()
  */
 int mv_face_detection_get_result_count(mv_face_detection_h handle, unsigned long *frame_number,
-                                       unsigned int *result_cnt);
+                                                                          unsigned int *result_cnt);
 
 /**
  * @brief Gets a bound box to detected face region.
@@ -228,7 +228,7 @@ int mv_face_detection_get_result_count(mv_face_detection_h handle, unsigned long
  * @pre Get result count by calling mv_face_detection_get_result_count()
  */
 int mv_face_detection_get_bound_box(mv_face_detection_h handle, unsigned int index, int *left, int *top, int *right,
-                               int *bottom);
+                                                                       int *bottom);
 /**
  * @}
  */
index 9c7b81facf7447fc48d08a27088ef01de9516e26..2ef1d448ba7d5a89854e0b9f3db56c37f8b3946a 100644 (file)
@@ -199,7 +199,7 @@ int mv_facial_landmark_inference_async(mv_facial_landmark_h handle, mv_source_h
  * @pre Request an inference by calling mv_facial_landmark_inference()
  */
 int mv_facial_landmark_get_result_count(mv_facial_landmark_h handle, unsigned long *frame_number,
-                                        unsigned int *result_cnt);
+                                                                               unsigned int *result_cnt);
 
 /**
  * @brief Gets the facial landmark position values to a given index.
@@ -237,7 +237,7 @@ int mv_facial_landmark_get_result_count(mv_facial_landmark_h handle, unsigned lo
  * @pre Get result count by calling mv_facial_landmark_get_result_count()
  */
 int mv_facial_landmark_get_position(mv_facial_landmark_h handle, unsigned int index, unsigned int *pos_x,
-                                    unsigned int *pos_y);
+                                                                       unsigned int *pos_y);
 /**
  * @}
  */
index 6c59078097dd81755c11ee1ecebb4db5575d64b5..3ec40d2bc0982fdd9151d1a0844e46529910f47d 100644 (file)
@@ -193,7 +193,7 @@ int mv_image_classification_inference_async(mv_image_classification_h handle, mv
  * @pre Request an inference by calling mv_image_classification_inference()
  */
 int mv_image_classification_get_result_count(mv_image_classification_h handle, unsigned long *frame_number,
-                                             unsigned int *result_cnt);
+                                                                                        unsigned int *result_cnt);
 
 /**
  * @brief Gets the image classification inference result to a given index.
index 94e05aa93153065e6f5b82f07aa35f7398dbd020..a7bfdd61246bb96e16b9aec651cac92c699643b0 100644 (file)
@@ -200,7 +200,7 @@ int mv_object_detection_inference_async(mv_object_detection_h handle, mv_source_
  * @pre Request an inference by calling mv_object_detection_inference()
  */
 int mv_object_detection_get_result_count(mv_object_detection_h handle, unsigned long *frame_number,
-                                         unsigned int *result_cnt);
+                                                                                unsigned int *result_cnt);
 
 /**
  * @brief Gets a bound box to detected object region.
@@ -227,7 +227,7 @@ int mv_object_detection_get_result_count(mv_object_detection_h handle, unsigned
  * @pre Prepare an inference by calling mv_object_detection_inference()
  */
 int mv_object_detection_get_bound_box(mv_object_detection_h handle, unsigned int index, int *left, int *top, int *right,
-                                 int *bottom);
+                                                                         int *bottom);
 /**
  * @}
  */
index 588fb8805b04c16c4ee1c3aaede515423241bea3..5b0dc368f8a8454670f1f483ee42f654de6675ca 100644 (file)
@@ -233,7 +233,7 @@ int mv_pose_landmark_get_result_count(mv_pose_landmark_h handle, unsigned long *
  * @pre Get result count by calling mv_pose_landmark_get_result_count()
  */
 int mv_pose_landmark_get_position(mv_pose_landmark_h handle, unsigned int index, unsigned int *pos_x,
-                                  unsigned int *pos_y);
+                                                                 unsigned int *pos_y);
 /**
  * @}
  */
index 3149688fd41bba2281dcbf0f4b9265c6cd61da1a..b2acf479270dc15dfa20d28777c9ef2cd4d8de72 100644 (file)
  * limitations under the License.
  */
 
-#include "mv_facial_landmark_internal.h"
 #include "mv_facial_landmark.h"
 #include "Context.h"
 #include "FacialLandmarkAdapter.h"
 #include "ITask.h"
 #include "MvMlException.h"
 #include "landmark_detection_type.h"
+#include "mv_facial_landmark_internal.h"
 #include "mv_feature_key.h"
 #include "mv_private.h"
 #include "native_capi.h"
index d78498cc5c09d76320e84dd2c751d4c457986753..aa4190741ec4ee4e0b6641261ed96232eb76a1c3 100644 (file)
@@ -14,7 +14,6 @@
  * limitations under the License.
  */
 
-#include "mv_pose_landmark_internal.h"
 #include "mv_pose_landmark.h"
 #include "Context.h"
 #include "ITask.h"
@@ -22,6 +21,7 @@
 #include "PoseLandmarkAdapter.h"
 #include "landmark_detection_type.h"
 #include "mv_feature_key.h"
+#include "mv_pose_landmark_internal.h"
 #include "mv_private.h"
 #include "native_capi.h"
 
index 41d22373d5bd00dd5298021b94c93d31f1c602cf..f3311a4fef5414a3d9f500bb089dda020a5dae44 100644 (file)
  * limitations under the License.
  */
 
-#include "mv_face_detection_internal.h"
 #include "mv_face_detection.h"
 #include "Context.h"
 #include "FaceDetectionAdapter.h"
 #include "ITask.h"
 #include "MvMlException.h"
+#include "mv_face_detection_internal.h"
 #include "mv_feature_key.h"
 #include "mv_private.h"
 #include "native_capi.h"
@@ -322,7 +322,7 @@ int mv_face_detection_get_result_count(mv_face_detection_h handle, unsigned long
 }
 
 int mv_face_detection_get_bound_box(mv_face_detection_h handle, unsigned int index, int *left, int *top, int *right,
-                                                          int *bottom)
+                                                                       int *bottom)
 {
        MEDIA_VISION_SUPPORT_CHECK(mv_check_feature_key(feature_keys, num_keys, true));
        MEDIA_VISION_INSTANCE_CHECK(handle);
index 5ce06a456737eb4aaa429c0bfc4310fc1823583e..cd2c02c0225a15f12ceea53bfe3cfa33074219c5 100644 (file)
  * limitations under the License.
  */
 
-#include "mv_object_detection_internal.h"
 #include "mv_object_detection.h"
 #include "Context.h"
 #include "ITask.h"
 #include "MvMlException.h"
 #include "ObjectDetectionAdapter.h"
 #include "mv_feature_key.h"
+#include "mv_object_detection_internal.h"
 #include "mv_private.h"
 #include "native_capi.h"
 #include "object_detection_type.h"
@@ -320,7 +320,7 @@ int mv_object_detection_get_result_count(mv_object_detection_h handle, unsigned
 }
 
 int mv_object_detection_get_bound_box(mv_object_detection_h handle, unsigned int index, int *left, int *top, int *right,
-                                                                int *bottom)
+                                                                         int *bottom)
 {
        MEDIA_VISION_SUPPORT_CHECK(mv_check_feature_key(feature_keys, num_keys, true));
        MEDIA_VISION_INSTANCE_CHECK(handle);
index f4f9840682e7a5c4eed7be60fc1314314092b860..bf4496cb14877560dbd8c20ad0326d45cdf05811 100644 (file)
@@ -1,6 +1,6 @@
 Name:        capi-media-vision
 Summary:     Media Vision library for Tizen Native API
-Version:     1.0.1
+Version:     1.0.2
 Release:     0
 Group:       Multimedia/Framework
 License:     Apache-2.0
index 7b297b028debf0c95f84f4ea9b34b6dbac375314..7f495ab71fd445b9bb15f13bb6767d1990645e74 100644 (file)
@@ -22,8 +22,8 @@
 #include "gtest/gtest.h"
 
 #include "ImageHelper.h"
-#include "mv_image_classification_internal.h"
 #include "mv_image_classification.h"
+#include "mv_image_classification_internal.h"
 
 #define IMAGE_PATH TEST_RES_PATH "/res/inference/images/banana.jpg"
 
index 7f0ef2775332abcf7b9768a75e7be5d16e06c7d8..985d445d044ecfb5d2432415a76a12140e63826f 100644 (file)
@@ -22,8 +22,8 @@
 #include "gtest/gtest.h"
 
 #include "ImageHelper.h"
-#include "mv_image_classification_internal.h"
 #include "mv_image_classification.h"
+#include "mv_image_classification_internal.h"
 
 #define IMAGE_PATH TEST_RES_PATH "/res/inference/images/banana.jpg"
 #define MAX_INFERENCE_ITERATION 50
index 134a1cf49f60dccee861ebd78d778ed8fcae70a8..a60408a52e7165269b7f781c698345f5270602d0 100644 (file)
 #include "gtest/gtest.h"
 
 #include "ImageHelper.h"
-#include "mv_facial_landmark_internal.h"
 #include "mv_facial_landmark.h"
-#include "mv_pose_landmark_internal.h"
+#include "mv_facial_landmark_internal.h"
 #include "mv_pose_landmark.h"
+#include "mv_pose_landmark_internal.h"
 
 #define IMG_FACE TEST_RES_PATH "/res/inference/images/faceLandmark.jpg"
 #define IMG_POSE TEST_RES_PATH "/res/inference/images/poseLandmark.jpg"
index caa4437b5f1345349d127dac504b1322e1cbbd32..7ff9a7a881fff96ab1afb5c4cab79db2518dd2fa 100644 (file)
 #include "gtest/gtest.h"
 
 #include "ImageHelper.h"
-#include "mv_facial_landmark_internal.h"
 #include "mv_facial_landmark.h"
-#include "mv_pose_landmark_internal.h"
+#include "mv_facial_landmark_internal.h"
 #include "mv_pose_landmark.h"
+#include "mv_pose_landmark_internal.h"
 
 #define IMG_FACE TEST_RES_PATH "/res/inference/images/faceLandmark.jpg"
 #define IMG_POSE TEST_RES_PATH "/res/inference/images/poseLandmark.jpg"
index b9432d62193c01071c7f42631052aa3146950fb7..205f5c8c0f03841d4f9cbcee7f9d3829894fbad1 100644 (file)
 #include "gtest/gtest.h"
 
 #include "ImageHelper.h"
-#include "mv_face_detection_internal.h"
 #include "mv_face_detection.h"
-#include "mv_object_detection_internal.h"
+#include "mv_face_detection_internal.h"
 #include "mv_object_detection.h"
+#include "mv_object_detection_internal.h"
 
 #define IMG_DOG TEST_RES_PATH "/res/inference/images/dog2.jpg"
 #define IMG_FACE TEST_RES_PATH "/res/inference/images/faceDetection.jpg"
index 4a7cdd81a06f5eb62368060d8eed816e76d74259..f6618607184d9a918e40e9f81fc70182080f2e88 100644 (file)
 #include "gtest/gtest.h"
 
 #include "ImageHelper.h"
-#include "mv_face_detection_internal.h"
 #include "mv_face_detection.h"
-#include "mv_object_detection_internal.h"
+#include "mv_face_detection_internal.h"
 #include "mv_object_detection.h"
+#include "mv_object_detection_internal.h"
 
 #define IMG_DOG TEST_RES_PATH "/res/inference/images/dog2.jpg"
 #define IMG_FACE TEST_RES_PATH "/res/inference/images/faceDetection.jpg"