Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -48,8 +48,8 @@ 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 = r"D:\number_plate\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")
|
|
|
48 |
st.image(image_with_contours, caption="Image with detected license plate")
|
49 |
|
50 |
# Configuration for tesseract
|
51 |
+
# tesseract_path = r"D:\number_plate\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")
|