Soumen commited on
Commit
6e25163
·
1 Parent(s): f5aabdb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.jpg")
136
- imge = cv2.imread("img.jpg")
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]