Alexey
2018-06-04 3eb58c51b96791d68188a8ade57d81b66c6ac670
src/yolo_v2_class.cpp
@@ -119,6 +119,10 @@
   detector_gpu_t &detector_gpu = *static_cast<detector_gpu_t *>(detector_gpu_ptr.get());
   return detector_gpu.net.h;
}
YOLODLL_API int Detector::get_net_color_depth() const {
   detector_gpu_t &detector_gpu = *static_cast<detector_gpu_t *>(detector_gpu_ptr.get());
   return detector_gpu.net.c;
}
YOLODLL_API std::vector<bbox_t> Detector::detect(std::string image_filename, float thresh, bool use_mean)
@@ -222,7 +226,7 @@
   int letterbox = 0;
   float hier_thresh = 0.5;
   detection *dets = get_network_boxes(&net, im.w, im.h, thresh, hier_thresh, 0, 1, &nboxes, letterbox);
   if (nms) do_nms_sort_v3(dets, nboxes, l.classes, nms);
   if (nms) do_nms_sort(dets, nboxes, l.classes, nms);
   std::vector<bbox_t> bbox_vec;