skylord commited on
Commit
dff3e74
1 Parent(s): f1f093f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -14,10 +14,11 @@ def show_preds_image(image):
14
 
15
  image = cv2.imread(image_path)
16
  outputs = model.predict(source=image_path)
17
- print("output:: ", outputs[0])
18
  results = outputs[0].boxes.xyxy.cpu().numpy()
19
  for det in results:
20
  x1, y1, x2, y2 = det[:4]
 
21
  label = "Pothole"
22
  cv2.rectangle(
23
  image,
 
14
 
15
  image = cv2.imread(image_path)
16
  outputs = model.predict(source=image_path)
17
+ #print("output:: ", outputs[0])
18
  results = outputs[0].boxes.xyxy.cpu().numpy()
19
  for det in results:
20
  x1, y1, x2, y2 = det[:4]
21
+ print(type(det),det)
22
  label = "Pothole"
23
  cv2.rectangle(
24
  image,