Atualli commited on
Commit
e526360
·
1 Parent(s): 2fa722d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=False)
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: