| | |
| | | |
| | | ::YoloDetect::ObjInfos |
| | | YoloDetectServerI::YoloDetect(::Ice::Int w, ::Ice::Int h, const ::std::string &shM, const ::Ice::Current &) { |
| | | ClockTimer ct("YoloDetectServerI::YoloDetect"); |
| | | // ClockTimer ct("YoloDetectServerI::YoloDetect"); |
| | | |
| | | // std::thread::id key = std::this_thread::get_id(); |
| | | // DBG("key is " << key); |
| | |
| | | int nboxes = 0; |
| | | detection *dets = get_network_boxes(m_net, im.w, im.h, m_thresh, m_hier_thresh, 0, 1, &nboxes); |
| | | if (nboxes > 30) { |
| | | DBG("nboxes="<<nboxes); |
| | | free_image(im); |
| | | free_image(sized); |
| | | return objInfos; |
| | | } |
| | | if (m_nms) do_nms_sort(dets, nboxes, l.classes, m_nms); |