Skip to content

Commit

Permalink
Merge pull request #442 from meedan/CV2-4187-Determine-what-percentag…
Browse files Browse the repository at this point in the history
…e-of-an-image-is-text

CV2-4187-Determine-what-percentage-of-an-image-is-text
  • Loading branch information
ahmednasserswe authored Aug 28, 2024
2 parents 5413a6e + d618917 commit b36ad46
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/main/controller/image_ocr_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ def post(self):
if not texts:
return

app.logger.info(
f"[Alegre OCR] [image_uri {image.source.image_uri}] Image OCR response package looks like {response}")

return {
'text': texts[0].description
}

0 comments on commit b36ad46

Please sign in to comment.