* @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
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);
* @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
* @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
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;
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