onursavas commited on
Commit
2a74343
1 Parent(s): 72850a8

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -2
main.py CHANGED
@@ -9,7 +9,6 @@ from PIL import Image
9
  ocr_en = PaddleOCR(use_angle_cls=True, lang="en")
10
  ocr_ch = PaddleOCR(use_angle_cls=True, lang='ch')
11
  ocr_ru = PaddleOCR(use_angle_cls=True, lang='cyrillic')
12
- ocr_arabic = PaddleOCR(use_angle_cls=True, lang='arabic')
13
  ocr_ar = PaddleOCR(use_angle_cls=True, lang='ar')
14
  ocr_korean = PaddleOCR(user_angle_cls=True, lang="korean")
15
  ocr_fa = PaddleOCR(user_angle_cls=True, lang="fa")
@@ -26,7 +25,7 @@ def perform_ocr(img, lang):
26
  elif lang == "Russian" or lang == "Ukrainian":
27
  ocr = ocr_ru
28
  elif lang == "Arabic":
29
- ocr = ocr_arabic
30
  elif lang == "Persian":
31
  ocr = ocr_fa
32
  elif lang == "Only Arabic Lang":
 
9
  ocr_en = PaddleOCR(use_angle_cls=True, lang="en")
10
  ocr_ch = PaddleOCR(use_angle_cls=True, lang='ch')
11
  ocr_ru = PaddleOCR(use_angle_cls=True, lang='cyrillic')
 
12
  ocr_ar = PaddleOCR(use_angle_cls=True, lang='ar')
13
  ocr_korean = PaddleOCR(user_angle_cls=True, lang="korean")
14
  ocr_fa = PaddleOCR(user_angle_cls=True, lang="fa")
 
25
  elif lang == "Russian" or lang == "Ukrainian":
26
  ocr = ocr_ru
27
  elif lang == "Arabic":
28
+ ocr = ocr_ar
29
  elif lang == "Persian":
30
  ocr = ocr_fa
31
  elif lang == "Only Arabic Lang":