PaulMartrenchar commited on
Commit
d9bbe60
·
1 Parent(s): a0612ff

encoding issue

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -111,7 +111,7 @@ def detect_cards_and_sum(image, game):
111
  if box_area < 0.002 * img_area or box_area > 0.9 * img_area:
112
  continue # too small or too big to be a card
113
 
114
- # aspect ratio (card ~ 1.41.8 between long/short edges)
115
  long_side = max(rw, rh)
116
  short_side = min(rw, rh)
117
  ratio = long_side / short_side
 
111
  if box_area < 0.002 * img_area or box_area > 0.9 * img_area:
112
  continue # too small or too big to be a card
113
 
114
+ # aspect ratio (card ~ 1.4-1.8 between long/short edges)
115
  long_side = max(rw, rh)
116
  short_side = min(rw, rh)
117
  ratio = long_side / short_side