Spaces:
Running
Running
english
Browse files
app.py
CHANGED
|
@@ -31,8 +31,8 @@ if file is not None:
|
|
| 31 |
image = Image.open(file) # read image with PIL library
|
| 32 |
st.image(image) #display
|
| 33 |
|
| 34 |
-
# it will only detect the English
|
| 35 |
-
reader = easyocr.Reader(['en'
|
| 36 |
result = reader.readtext(np.array(image)) # turn image to numpy array
|
| 37 |
|
| 38 |
# Add a placeholder
|
|
|
|
| 31 |
image = Image.open(file) # read image with PIL library
|
| 32 |
st.image(image) #display
|
| 33 |
|
| 34 |
+
# it will only detect the English part of the image as text
|
| 35 |
+
reader = easyocr.Reader(['en'], gpu=False)
|
| 36 |
result = reader.readtext(np.array(image)) # turn image to numpy array
|
| 37 |
|
| 38 |
# Add a placeholder
|