EC2 Default User commited on
Commit
b7d1177
·
1 Parent(s): 2c64a65

fix crop_image bug

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -62,6 +62,7 @@ def crop_image(image, detection_result):
62
  width = image.shape[1]
63
  height = image.shape[0]
64
  # print(width, height)
 
65
  for i, result in enumerate(detection_result[:1]): # TODO only return first detected table
66
  class_id = int(result[5])
67
  score = float(result[4])
 
62
  width = image.shape[1]
63
  height = image.shape[0]
64
  # print(width, height)
65
+ crop_image = image
66
  for i, result in enumerate(detection_result[:1]): # TODO only return first detected table
67
  class_id = int(result[5])
68
  score = float(result[4])