From 52462f2ba6d385054681156853684ce411144836 Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Fri, 04 Aug 2017 17:24:27 +0000
Subject: [PATCH] Changed example of DLL/SO usage to work faster
---
src/yolo_v2_class.cpp | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/yolo_v2_class.cpp b/src/yolo_v2_class.cpp
index 31f623c..e8be427 100644
--- a/src/yolo_v2_class.cpp
+++ b/src/yolo_v2_class.cpp
@@ -102,6 +102,15 @@
#endif
}
+YOLODLL_API int Detector::get_net_width() {
+ detector_gpu_t &detector_gpu = *reinterpret_cast<detector_gpu_t *>(detector_gpu_ptr.get());
+ return detector_gpu.net.w;
+}
+YOLODLL_API int Detector::get_net_height() {
+ detector_gpu_t &detector_gpu = *reinterpret_cast<detector_gpu_t *>(detector_gpu_ptr.get());
+ return detector_gpu.net.h;
+}
+
YOLODLL_API std::vector<bbox_t> Detector::detect(std::string image_filename, float thresh)
{
--
Gitblit v1.10.0