testmail-gmail commited on
Commit
b4d13b0
·
1 Parent(s): 73df16c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -129,7 +129,6 @@ def detect_Custom(img):
129
 
130
  if save_img or view_img:
131
  label = f'{names[int(cls)]} {conf:.2f}'
132
- plot_one_box(xyxy, im0, label=label, color=colors[int(cls)], line_thickness=3)
133
  if(cls == 1):
134
  x1 = int(xyxy[0].item())
135
  y1 = int(xyxy[1].item())
@@ -138,6 +137,8 @@ def detect_Custom(img):
138
  orig_img = im0
139
  crop_img = im0[y1:y2, x1:x2]
140
  cv2.imwrite('MRZ_1.png', crop_img)
 
 
141
 
142
  if view_img:
143
  cv2.imshow(str(p), im0)
 
129
 
130
  if save_img or view_img:
131
  label = f'{names[int(cls)]} {conf:.2f}'
 
132
  if(cls == 1):
133
  x1 = int(xyxy[0].item())
134
  y1 = int(xyxy[1].item())
 
137
  orig_img = im0
138
  crop_img = im0[y1:y2, x1:x2]
139
  cv2.imwrite('MRZ_1.png', crop_img)
140
+ plot_one_box(xyxy, im0, label=label, color=colors[int(cls)], line_thickness=3)
141
+
142
 
143
  if view_img:
144
  cv2.imshow(str(p), im0)