Vahe commited on
Commit
9c1be93
1 Parent(s): 16a9047

testing changes

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -53,8 +53,8 @@ def main():
53
  display_text = "A card is not detected in the image!!!"
54
  st.image('card_image.jpg', caption=f"{display_text}", use_column_width=True)
55
  else:
56
- cropped_image = gray[y1:y2, x1:x2]
57
- # cropped_image = resized_image[y1:y2, x1:x2]
58
  cropped_image = cv2.resize(cropped_image, (128, 128))
59
  cv2.imwrite('card_number_image.jpg', cropped_image)
60
 
 
53
  display_text = "A card is not detected in the image!!!"
54
  st.image('card_image.jpg', caption=f"{display_text}", use_column_width=True)
55
  else:
56
+ # cropped_image = gray[y1:y2, x1:x2]
57
+ cropped_image = resized_image[y1:y2, x1:x2]
58
  cropped_image = cv2.resize(cropped_image, (128, 128))
59
  cv2.imwrite('card_number_image.jpg', cropped_image)
60