omarelsayeed commited on
Commit
ca117ec
·
verified ·
1 Parent(s): 1de3ad4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,7 +11,7 @@ hoppa = {
11
  "F": "ف", "Kaaf": "ك", "Meem": "م", "Noon": "ن", "Q": "ق", "R": "ر",
12
  "Saad": "ص", "Seen": "س", "Wow": "و", "Yeeh": "ي", "Zeen": "ز",
13
  "alef": "أ", "daal": "د", "geem": "ج", "car": "", "License Plate": "" , "Heeh" : "هه",
14
- "1" :"١" ,"2" : "٢" , "3" : "٣" , "4":"٤" , "5" : "٥" , "6":"٦" , "7" : "٧","8" : "٨" , "9":"٩"
15
 
16
 
17
 
@@ -29,7 +29,7 @@ def predict_and_draw(img, conf_threshold, iou_threshold):
29
  image = np.array(img)
30
 
31
  # Predict with YOLO
32
- results = model.predict(image, conf=conf_threshold, iou=iou_threshold, verbose=False ,imgsz=640,)
33
 
34
  if not results:
35
  return img, "No objects detected."
 
11
  "F": "ف", "Kaaf": "ك", "Meem": "م", "Noon": "ن", "Q": "ق", "R": "ر",
12
  "Saad": "ص", "Seen": "س", "Wow": "و", "Yeeh": "ي", "Zeen": "ز",
13
  "alef": "أ", "daal": "د", "geem": "ج", "car": "", "License Plate": "" , "Heeh" : "هه",
14
+ "1" :"١" ,"2" : "٢" , "3" : "٣" , "4":"٤" , "5" : "٥" , "6":"٦" , "7" : "٧","8" : "٨" , "9":"٩" }
15
 
16
 
17
 
 
29
  image = np.array(img)
30
 
31
  # Predict with YOLO
32
+ results = model.predict(image, conf=conf_threshold, iou=iou_threshold, verbose=False ,imgsz=1024,)
33
 
34
  if not results:
35
  return img, "No objects detected."