@@ -115,7 +115,7 @@ def AI_Seg_process(im0s,segmodel,digitWordFont,trtFlag_seg=True,segPar={'modelSi | |||
x1=np.max( bpoints[:,0] ) | |||
y1=np.max( bpoints[:,1] ) | |||
conf= ((x0+x1)/W + (y0+y1)/H)/4.0; | |||
conf=math.fabs((conf-0.5)/0.5) | |||
conf=1.0 - math.fabs((conf-0.5)/0.5) | |||
xyxy=[x0,y0,x1,y1] | |||
xyxy=[int(x+0.5) for x in xyxy] | |||
#float(cls_c), *xywh, float(conf_c)] |