Spaces:
Build error
Build error
Update app.py
Browse files
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[
|
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 |
|