CWrecker commited on
Commit
778333f
1 Parent(s): 0402d46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -27,20 +27,20 @@ def inference(path:str, threshold:float=0.6):
27
  thickness=2,
28
  )
29
 
30
- font = cv2.FONT_HERSHEY_SIMPLEX
31
- fontScale = 1
32
- fontColor = (255,255,255)
33
- thickness = 1
34
- lineType = 2
35
 
36
- cv2.putText(image,
37
- str(cls),
38
- (int(box[0]), int(box[2])),
39
- font,
40
- fontScale,
41
- fontColor,
42
- thickness,
43
- lineType)
44
 
45
  counter+=1
46
  return cv2.cvtColor(image, cv2.COLOR_BGR2RGB), counter
 
27
  thickness=2,
28
  )
29
 
30
+ # font = cv2.FONT_HERSHEY_SIMPLEX
31
+ # fontScale = 1
32
+ # fontColor = (255,255,255)
33
+ # thickness = 1
34
+ # lineType = 2
35
 
36
+ # cv2.putText(image,
37
+ # str(cls),
38
+ # (int(box[0]), int(box[2])),
39
+ # font,
40
+ # fontScale,
41
+ # fontColor,
42
+ # thickness,
43
+ # lineType)
44
 
45
  counter+=1
46
  return cv2.cvtColor(image, cv2.COLOR_BGR2RGB), counter