Vahe commited on
Commit
caad806
1 Parent(s): be8bb4f

testing changes

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -34,7 +34,7 @@ def main():
34
  # Convert the image to a NumPy array
35
  image = Image.open(img_file_buffer)
36
  image_np = np.array(image)
37
- resized_image = cv2.resize(image_np, (128, 128))
38
  resized_image = resized_image.astype(np.uint8)
39
  resized_image = cv2.cvtColor(resized_image, cv2.COLOR_BGR2RGB)
40
  cv2.imwrite('card_image.jpg', resized_image)
@@ -55,7 +55,7 @@ def main():
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
 
61
  # extracted_digit = get_digit(
 
34
  # Convert the image to a NumPy array
35
  image = Image.open(img_file_buffer)
36
  image_np = np.array(image)
37
+ resized_image = cv2.resize(image_np, (640, 640))
38
  resized_image = resized_image.astype(np.uint8)
39
  resized_image = cv2.cvtColor(resized_image, cv2.COLOR_BGR2RGB)
40
  cv2.imwrite('card_image.jpg', resized_image)
 
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, (640, 640))
59
  cv2.imwrite('card_number_image.jpg', cropped_image)
60
 
61
  # extracted_digit = get_digit(