Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
|
| 45 |
|
| 46 |
-
# Display the
|
| 47 |
-
st.image(
|
| 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"
|