Fix more typos
authorKwanghoon Son <k.son@samsung.com>
Thu, 6 Jul 2023 10:42:43 +0000 (19:42 +0900)
committerKwanghoon Son <k.son@samsung.com>
Wed, 12 Jul 2023 09:45:35 +0000 (18:45 +0900)
Change-Id: I9a1a48ec0be0a1def995dace7b70127008612986
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
include/mv_object_detection_internal.h
mv_machine_learning/object_detection/include/mobilenet_v2_ssd.h
mv_machine_learning/object_detection/include/mv_face_detection_open.h
mv_machine_learning/object_detection/include/mv_object_detection_open.h
mv_machine_learning/object_detection/src/mobilenet_v2_ssd.cpp
test/README.md

index 488552a..0b4aa00 100644 (file)
@@ -205,10 +205,10 @@ int mv_object_detection_inference_async(mv_object_detection_h handle, mv_source_
  * @param[out] number_of_objects  A number of objects detected.
  * @param[out] indices            Label indices to detected objects.
  * @param[out] confidences        Probability to detected objects.
- * @param[out] left               An left position array to bound boxs.
- * @param[out] top                An top position array to bound boxs.
- * @param[out] right              An right position array to bound boxs.
- * @param[out] bottom             An bottom position array to bound boxs.
+ * @param[out] left               An left position array to bound boxes.
+ * @param[out] top                An top position array to bound boxes.
+ * @param[out] right              An right position array to bound boxes.
+ * @param[out] bottom             An bottom position array to bound boxes.
  *
  * @return @c 0 on success, otherwise a negative error value
  * @retval #MEDIA_VISION_ERROR_NONE Successful
index 3bbed3c..ac61fb9 100644 (file)
@@ -38,7 +38,7 @@ private:
                                  std::vector<Box> &box_vector);
        Box decodeBox(const DecodingBox *decodingBox, std::vector<float> &bb_tensor, int idx, float score, int label,
                                  int box_offset);
-       Box decodeBoxWithAnchor(const BoxAnchorParam *boxAnchorParm, Box &box, cv::Rect2f &anchor);
+       Box decodeBoxWithAnchor(const BoxAnchorParam *boxAnchorParam, Box &box, cv::Rect2f &anchor);
 
 public:
        MobilenetV2Ssd(ObjectDetectionTaskType task_type);
index 6741d35..63cc92d 100644 (file)
@@ -152,10 +152,10 @@ int mv_face_detection_inference_open(mv_face_detection_h handle, mv_source_h sou
  * @param[out] number_of_objects  A number of objects detected.
  * @param[out] indices            Label indices to detected objects.
  * @param[out] confidences        Probability to detected objects.
- * @param[out] left               An left position array to bound boxs.
- * @param[out] top                An top position array to bound boxs.
- * @param[out] right              An right position array to bound boxs.
- * @param[out] bottom             An bottom position array to bound boxs.
+ * @param[out] left               An left position array to bound boxes.
+ * @param[out] top                An top position array to bound boxes.
+ * @param[out] right              An right position array to bound boxes.
+ * @param[out] bottom             An bottom position array to bound boxes.
  *
  * @return @c 0 on success, otherwise a negative error value
  * @retval #MEDIA_VISION_ERROR_NONE Successful
index 466440d..4a6b5b9 100644 (file)
@@ -182,10 +182,10 @@ int mv_object_detection_inference_async_open(mv_object_detection_h handle, mv_so
  * @param[out] number_of_objects  A number of objects detected.
  * @param[out] indices            Label indices to detected objects.
  * @param[out] confidences        Probability to detected objects.
- * @param[out] left               An left position array to bound boxs.
- * @param[out] top                An top position array to bound boxs.
- * @param[out] right              An right position array to bound boxs.
- * @param[out] bottom             An bottom position array to bound boxs.
+ * @param[out] left               An left position array to bound boxes.
+ * @param[out] top                An top position array to bound boxes.
+ * @param[out] right              An right position array to bound boxes.
+ * @param[out] bottom             An bottom position array to bound boxes.
  *
  * @return @c 0 on success, otherwise a negative error value
  * @retval #MEDIA_VISION_ERROR_NONE Successful
index 4196ff9..ef1e312 100644 (file)
@@ -148,22 +148,22 @@ Box MobilenetV2Ssd::decodeBox(const DecodingBox *decodingBox, vector<float> &bb_
        return box;
 }
 
-Box MobilenetV2Ssd::decodeBoxWithAnchor(const BoxAnchorParam *boxAnchorParm, Box &box, cv::Rect2f &anchor)
+Box MobilenetV2Ssd::decodeBoxWithAnchor(const BoxAnchorParam *boxAnchorParam, Box &box, cv::Rect2f &anchor)
 {
-       if (boxAnchorParm->isFixedAnchorSize) {
+       if (boxAnchorParam->isFixedAnchorSize) {
                box.location.x += anchor.x;
                box.location.y += anchor.y;
        } else {
-               box.location.x = box.location.x / boxAnchorParm->xScale * anchor.width + anchor.x;
-               box.location.y = box.location.y / boxAnchorParm->yScale * anchor.height + anchor.y;
+               box.location.x = box.location.x / boxAnchorParam->xScale * anchor.width + anchor.x;
+               box.location.y = box.location.y / boxAnchorParam->yScale * anchor.height + anchor.y;
        }
 
-       if (boxAnchorParm->isExponentialBoxScale) {
-               box.location.width = anchor.width * exp(box.location.width / boxAnchorParm->wScale);
-               box.location.height = anchor.height * exp(box.location.height / boxAnchorParm->hScale);
+       if (boxAnchorParam->isExponentialBoxScale) {
+               box.location.width = anchor.width * exp(box.location.width / boxAnchorParam->wScale);
+               box.location.height = anchor.height * exp(box.location.height / boxAnchorParam->hScale);
        } else {
-               box.location.width = anchor.width * box.location.width / boxAnchorParm->wScale;
-               box.location.height = anchor.height * box.location.height / boxAnchorParm->hScale;
+               box.location.width = anchor.width * box.location.width / boxAnchorParam->wScale;
+               box.location.height = anchor.height * box.location.height / boxAnchorParam->hScale;
        }
 
        return box;
index 9e7dd07..6ba95a2 100644 (file)
@@ -24,5 +24,5 @@ Tizen tct is for public API verification. It's still valid however mv_test is mo
 Another point is Tizen tct has huge amount of dataset of other packages which is not related with media vision so build takes long, and complicated.
 
 ### Why gtest?
-I tried with libcheck but since Tizen API is C/C++, hard to cover all of C++ modules (interal API is more rely on C++).  
+I tried with libcheck but since Tizen API is C/C++, hard to cover all of C++ modules (internal API is more rely on C++).  
 libcheck also needs runtime dependency.
\ No newline at end of file