Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ image = Image.open(file) # read image with PIL library
|
|
18 |
st.image(image) #display
|
19 |
|
20 |
# it will only detect the English and Turkish part of the image as text
|
21 |
-
reader = easyocr.Reader(['
|
22 |
result = reader.readtext(np.array(image)) # turn image to numpy array
|
23 |
|
24 |
textdic_easyocr = {}
|
|
|
18 |
st.image(image) #display
|
19 |
|
20 |
# it will only detect the English and Turkish part of the image as text
|
21 |
+
reader = easyocr.Reader(['my','en'], gpu=False)
|
22 |
result = reader.readtext(np.array(image)) # turn image to numpy array
|
23 |
|
24 |
textdic_easyocr = {}
|