Python Forum
How to format EasyOCR results in order to save to CSV?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to format EasyOCR results in order to save to CSV?
#1
So im playing around with EasyOCR, and with only a few lines of code, its working pretty good so far on the few images i have tried.. BUT cant seem to find examples on how to exclude the coordinates that it has within the results.

Referenced used: https://www.analyticsvidhya.com/blog/202...-on-guide/
Text in Image: IPython 7.29.0 -- An enhanced Interactive Python.

import easyocr

IMAGE_PATH = '085421.jpg'

reader = easyocr.Reader(['en'], gpu=False)
result = reader.readtext(IMAGE_PATH,paragraph="False")
print(result)
Output Results in console window:

Using CPU. Note: This module is much faster with a GPU.
[[[[4, 3], [109, 3], [109, 22], [4, 22]], 'IPython 7.29.0'], [[[133, 3], [357, 3], [357, 22], [133, 22]], 'An enhanced Interactive Python.']]
has anyone worked with this extension before and knows how to disable the coordinates from the results?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  how to save to multiple locations during save cubangt 1 566 Oct-23-2023, 10:16 PM
Last Post: deanhystad
  How to save some results in .txt file with Python? Melcu54 4 7,365 May-26-2021, 08:15 AM
Last Post: snippsat
  How to design a save file format? philipbergwerf 5 4,167 Apr-26-2021, 07:39 PM
Last Post: Gribouillis
  Search Results Web results Printing the number of days in a given month and year afefDXCTN 1 2,246 Aug-21-2020, 12:20 PM
Last Post: DeaD_EyE
  Save output into a Excel Sheet with Format Table skaailet 1 2,514 Apr-17-2020, 11:56 PM
Last Post: thirteendec
  How to append one function1 results to function2 results SriRajesh 5 3,180 Jan-02-2020, 12:11 PM
Last Post: Killertjuh
  Trying to save array results to a csv jos88 0 1,609 Sep-08-2019, 08:01 PM
Last Post: jos88
  Display output in readable format and save hnkrish 1 2,645 Jul-19-2019, 09:29 AM
Last Post: Larz60+
  Scraping results won't save in csv file origomedia 2 3,048 Sep-23-2017, 01:25 AM
Last Post: origomedia

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020