aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/TypePrinter.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/utils/TypePrinter.h b/utils/TypePrinter.h
index f0c1bd1329..811fb7b1e8 100644
--- a/utils/TypePrinter.h
+++ b/utils/TypePrinter.h
@@ -1454,5 +1454,24 @@ inline std::string to_string(const GPUTarget &gpu_target)
str << gpu_target;
return str.str();
}
+/** Formatted output of the DetectionWindow type. */
+inline ::std::ostream &operator<<(::std::ostream &os, const DetectionWindow &detection_window)
+{
+ os << "{x=" << detection_window.x << ","
+ << "y=" << detection_window.y << ","
+ << "width=" << detection_window.width << ","
+ << "height=" << detection_window.height << ","
+ << "idx_class=" << detection_window.idx_class << ","
+ << "score=" << detection_window.score << "}";
+
+ return os;
+}
+
+inline std::string to_string(const DetectionWindow &type)
+{
+ std::stringstream str;
+ str << type;
+ return str.str();
+}
} // namespace arm_compute
#endif /* __ARM_COMPUTE_TEST_TYPE_PRINTER_H__ */ \ No newline at end of file