Skip to content
Advertisement

EasyOCR Printing file details instead of text output only

I am trying to test out Easy OCR. Now when I run my code

JavaScript

It outputs this

JavaScript

Instead of just

JavaScript

I want to get an simple output but it seems it also prints the image details and such.

EDIT: Sorry I posted a wrong output. If anyone is wondering here’s the link of the photo

Advertisement

Answer

As it is explained in the repo: “The output will be in a list format, each item represents a bounding box, the text detected and confident level, respectively.”

You can set detail=0 for simpler output:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement