ITSAIDI
commited on
Commit
·
0a3b303
1
Parent(s):
d7c9d31
scds
Browse files- utilitis.py +1 -0
utilitis.py
CHANGED
@@ -39,6 +39,7 @@ def processbbox(BBOX, width, height):
|
|
39 |
|
40 |
|
41 |
def Preprocess(image):
|
|
|
42 |
image_array = np.array(image)
|
43 |
width, height = image.size
|
44 |
results = ocr.ocr(image_array, cls=True)
|
|
|
39 |
|
40 |
|
41 |
def Preprocess(image):
|
42 |
+
ocr = PaddleOCR(use_angle_cls=False,lang='fr',rec=False)
|
43 |
image_array = np.array(image)
|
44 |
width, height = image.size
|
45 |
results = ocr.ocr(image_array, cls=True)
|