Update app.py
Browse files
app.py
CHANGED
|
@@ -132,8 +132,8 @@ def main():
|
|
| 132 |
st.success(text)
|
| 133 |
elif uploaded_photo.type != "application/image":
|
| 134 |
img = Image.open(uploaded_photo)
|
| 135 |
-
img = img.save("img.
|
| 136 |
-
imge = cv2.imread("img.
|
| 137 |
# get co-ordinates to crop the image
|
| 138 |
imag, lc = line_cor.mark_region(imge)
|
| 139 |
c = lc[1]
|
|
|
|
| 132 |
st.success(text)
|
| 133 |
elif uploaded_photo.type != "application/image":
|
| 134 |
img = Image.open(uploaded_photo)
|
| 135 |
+
img = img.save("img.png")
|
| 136 |
+
imge = cv2.imread("img.png")
|
| 137 |
# get co-ordinates to crop the image
|
| 138 |
imag, lc = line_cor.mark_region(imge)
|
| 139 |
c = lc[1]
|