JaydeepR commited on
Commit
6eb7212
·
verified ·
1 Parent(s): 9caf2cc

Update text_extraction_model.py

Browse files
Files changed (1) hide show
  1. text_extraction_model.py +1 -1
text_extraction_model.py CHANGED
@@ -14,6 +14,6 @@ def extract_text(image):
14
  # Extract text from the OCR result
15
  extracted_text = []
16
  for (bbox, text, prob) in result:
17
- extracted_text.append({'text': text, 'bbox': bbox, 'confidence': prob})
18
 
19
  return extracted_text
 
14
  # Extract text from the OCR result
15
  extracted_text = []
16
  for (bbox, text, prob) in result:
17
+ extracted_text.append(text)
18
 
19
  return extracted_text