ncnn-mobilenet-ssd
ncnn-mobilenet-ssd copied to clipboard
请问,检测完的结果怎么看,没有检测后框出目标物体的图片吗
forward_layer 112 conv16_2_mbox_priorbox done 0 mseconds forward_layer 119 conv17_2_mbox_priorbox done 0 mseconds forward_layer 122 mbox_priorbox done 1 mseconds forward_layer 126 detection_out done 385 mseconds 7 3 1 0.000000 8.000000 0.999993 0.007754 0.306279 0.532859 0.680911 0.000000 8.000000 0.999537 0.459915 0.222411 0.959244 0.696018 0.000000 8.000000 0.351194 0.149015 0.268500 0.848147 0.696818
这对应的是ssd网络的输出,你自己乘个倍数就可以得到矩形框,然后用opencv就可以画到原图了。
请问下这个倍数是多少呢?我看ssd.pytorch中对应的scale是img.shape[1]和img.shape[0],是直接乘以原图的宽高吗?
已解决,乘以原图的宽高即可对应到原图上。