Spaces:
Sleeping
Sleeping
testing changes
Browse files
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 |
-
|
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 |
|