Vikas01 commited on
Commit
f4c386c
·
1 Parent(s): 655fdba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -41,10 +41,11 @@ if img_file_buffer is not None:
41
  new_img = image[y:y + h, x:x + w]
42
  break
43
 
44
- cv2.drawContours(image, [screenCnt], -1, (0, 255, 0), 3)
 
45
 
46
- # Display the cropped image
47
- st.image(new_img, caption="Cropped License Plate")
48
 
49
  # Configuration for tesseract
50
  pytesseract.pytesseract.tesseract_cmd = r"tesseract1\tesseract.exe"
 
41
  new_img = image[y:y + h, x:x + w]
42
  break
43
 
44
+ image_with_contours = image.copy()
45
+ cv2.drawContours(image_with_contours, [screenCnt], -1, (0, 255, 0), 3)
46
 
47
+ # Display the image with contours
48
+ st.image(image_with_contours, caption="Image with detected license plate")
49
 
50
  # Configuration for tesseract
51
  pytesseract.pytesseract.tesseract_cmd = r"tesseract1\tesseract.exe"