Improved speed of yolo_console_dll.cpp - 40 FPS on 4K using GeForce GTX 960

This commit is contained in:
AlexeyAB
2017-09-12 17:16:21 +03:00
parent 6f1ce1f3e8
commit 8fa9f44211
3 changed files with 31 additions and 16 deletions

View File

@ -109,11 +109,11 @@ YOLODLL_API Detector::~Detector()
#endif
}
YOLODLL_API int Detector::get_net_width() {
YOLODLL_API int Detector::get_net_width() const {
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() {
YOLODLL_API int Detector::get_net_height() const {
detector_gpu_t &detector_gpu = *reinterpret_cast<detector_gpu_t *>(detector_gpu_ptr.get());
return detector_gpu.net.h;
}