Atualli commited on
Commit
e6faa3a
·
1 Parent(s): 5342399

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -48,10 +48,10 @@ def execute_text_recognition_tflite( boxes, frame, interpreter, input_details, o
48
  if len(text) >= 9:
49
  text = text[1:8]
50
  else :
51
- if text[0].isdigit() :
52
- text = text[1:]
53
- else :
54
  text = text[:7]
 
 
55
 
56
  return text,cv2.resize(save_frame,(94,24))
57
 
 
48
  if len(text) >= 9:
49
  text = text[1:8]
50
  else :
51
+ if text[3].isdigit() :
 
 
52
  text = text[:7]
53
+ else :
54
+ text = text[1:]
55
 
56
  return text,cv2.resize(save_frame,(94,24))
57