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 488552aeb95389951e2624bf1391cfbe6dd12923..0b4aa00aeda943a57de121246c18bba027730e81 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 3bbed3c6f1b53f87a6369ff9eb9e3cb8f4b1508f..ac61fb977098e29b6d0f497c7e9f3f9d2b02de09 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 6741d3501b1e23e664fd3b6573b63ab566821900..63cc92d53ddf5b5fb7f066b6042b0e213d881f67 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 466440daf50a2156da21de99f42a1f759d920dd1..4a6b5b979a96de7dde17e4444c4d11b6f12403a9 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 4196ff97b48906dbe25f9624d591bbee45652988..ef1e312f304cd53435f3bd88edb9a8c3d8e14617 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 9e7dd070211b7df55ac6af6934bcf9d3e847f39b..6ba95a299794503d298da8e6ed936ade0f1797d5 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