Vikas01 commited on
Commit
a4c0180
·
1 Parent(s): 5cedf58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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