Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,8 +48,9 @@ if img_file_buffer is not None:
|
|
| 48 |
st.image(image_with_contours, caption="Image with detected license plate")
|
| 49 |
|
| 50 |
# Configuration for tesseract
|
| 51 |
-
tesseract_path = "tessract/tesseract.exe"
|
| 52 |
pytesseract.pytesseract.tesseract_cmd = tesseract_path
|
|
|
|
| 53 |
# Run tesseract OCR on the cropped image
|
| 54 |
text = pytesseract.image_to_string(new_img, lang="eng")
|
| 55 |
|
|
|
|
| 48 |
st.image(image_with_contours, caption="Image with detected license plate")
|
| 49 |
|
| 50 |
# Configuration for tesseract
|
| 51 |
+
tesseract_path = os.path.abspath("tessract/tesseract.exe")
|
| 52 |
pytesseract.pytesseract.tesseract_cmd = tesseract_path
|
| 53 |
+
|
| 54 |
# Run tesseract OCR on the cropped image
|
| 55 |
text = pytesseract.image_to_string(new_img, lang="eng")
|
| 56 |
|