hashb commited on
Commit
c794e33
·
1 Parent(s): 9941aa0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ model.setInputParams(scale=1 / 255, size=(416, 416), swapRB=True)
13
 
14
  def detect(image):
15
  img = Image.fromarray(image)
16
- img = cv2.cvtColor(np.array(img), COLOR_RGBA2BGRA)
17
  classIds, scores, boxes = model.detect(img, confThreshold=0.6, nmsThreshold=0.4)
18
 
19
  for (classId, score, box) in zip(classIds, scores, boxes):
 
13
 
14
  def detect(image):
15
  img = Image.fromarray(image)
16
+ img = cv2.cvtColor(np.array(img), COLOR_RGB2BGR)
17
  classIds, scores, boxes = model.detect(img, confThreshold=0.6, nmsThreshold=0.4)
18
 
19
  for (classId, score, box) in zip(classIds, scores, boxes):