Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def execute_text_recognition_tflite( boxes, frame, interpreter, input_details, o
|
|
33 |
interpreter.set_tensor(input_details[0]['index'], test_image)
|
34 |
interpreter.invoke()
|
35 |
output_data = interpreter.get_tensor(output_details[0]['index'])
|
36 |
-
decoded = tf.keras.backend.ctc_decode(output_data,(24,),greedy=
|
37 |
text = ""
|
38 |
for i in np.array(decoded[0][0][0]):
|
39 |
if i >-1:
|
|
|
33 |
interpreter.set_tensor(input_details[0]['index'], test_image)
|
34 |
interpreter.invoke()
|
35 |
output_data = interpreter.get_tensor(output_details[0]['index'])
|
36 |
+
decoded = tf.keras.backend.ctc_decode(output_data,(24,),greedy=True)
|
37 |
text = ""
|
38 |
for i in np.array(decoded[0][0][0]):
|
39 |
if i >-1:
|