opencv dnn模块研究
其他
2018-08-08 16:03:29
阅读次数: 0
DNN:Deep Neural Network 深度神经网络
CPU/GPU
-
blobFromImage(image,size,mean,scalefactor,swapRB,crop)
image |
input image (with 1-, 3- or 4-channels). |
size |
spatial size for output image |
mean |
scalar with mean values which are subtracted from channels. Values are intended to be in (mean-R, mean-G, mean-B) order if image has BGR ordering and swapRB is true. |
scalefactor |
multiplier for image values. |
swapRB |
flag which indicates that swap first and last channels in 3-channel image is necessary. |
crop |
flag which indicates whether image will be cropped after resize or not |
-
NMSBoxes(bboxes,scores,score_threshold,nms_threshold,indices,eta,top_k)
bboxes |
a set of bounding boxes to apply NMS. |
scores |
a set of corresponding confidences. |
score_threshold |
a threshold used to filter boxes by score. |
nms_threshold |
a threshold used in non maximum suppression. |
indices |
the kept indices of bboxes after NMS. |
eta |
a coefficient in adaptive threshold formula: nms_thresholdi+1=eta⋅nms_thresholdi. |
top_k |
if >0 , keep at most top_k picked indices. |
model |
Binary file contains trained weights. The following file extensions are expected for models from different frameworks:
|
config |
Text file contains network configuration. It could be a file with the following extensions:
|
转载自www.cnblogs.com/hongzijie/p/9443308.html