<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Fetch data from documents through OCR to SAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-documents-through-ocr-to-sap/m-p/11950487#M1966414</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;this is a non-trivial project. I would use a tool like &lt;A href="https://ocrmypdf.readthedocs.io/en/latest/"&gt;ocrmypdf&lt;/A&gt; (free of charge and used by google for their books project) which uses &lt;A href="https://github.com/tesseract-ocr/tesseract"&gt;tesseract&lt;/A&gt; (can create hocr directly)&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;After creating the pdf or during the process create a xml file with also free tools like &lt;A href="https://poppler.freedesktop.org/"&gt;poppler&lt;/A&gt; &lt;A href="https://github.com/kermitt2/pdfalto"&gt;pdfalto&lt;/A&gt; or use the hocr which is created during the process.&lt;/P&gt;&lt;P&gt;These tools will create not only single characters but also words or textlines with their position on the page. You can fiddle with the parameters which is a word, but the default works pretty well in english and german.&lt;/P&gt;&lt;P&gt;Parse the xml e.g. with cl_xml_document or with a transformation&lt;/P&gt;&lt;P&gt;Be aware that e.g. the position from top can vary in a single line depending how the original file was created. Depending from your needs you have to adjust the positions. If you have the corrected position of each text-element you can extract the data in a logical way.&lt;/P&gt;&lt;P&gt;If you data structure is easy the following solution could be also sufficient.&lt;/P&gt;&lt;P&gt;Concatenate all "words" in a string and use regex.&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Apr 2020 11:28:39 GMT</pubDate>
    <dc:creator>former_member650260</dc:creator>
    <dc:date>2020-04-28T11:28:39Z</dc:date>
    <item>
      <title>Fetch data from documents through OCR to SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-documents-through-ocr-to-sap/m-p/11950484#M1966411</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;We have a requirement to scan the hard copies of import/export license provided by the government and store the values fetched from the documents in SAP through automation like OCR. How to achieve this in SAP?&lt;/P&gt;
  &lt;P&gt;I have found an API in SAP API Hub (Inference Service for Optical Character Recognition (OCR)). This API returns the characters found in the uploaded file in a string and we need to process the response in order to fetch the key fields. But this is somewhat difficult as the response may vary depending on scanned licenses. Has anyone used SAP OCR API to process the scanned document?&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 09:03:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-documents-through-ocr-to-sap/m-p/11950484#M1966411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-05-16T09:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch data from documents through OCR to SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-documents-through-ocr-to-sap/m-p/11950485#M1966412</link>
      <description>&lt;P&gt;"Store the values" how exactly and what is the projected volume of the document scanning? &lt;/P&gt;&lt;P&gt;Also "response may vary" - sorry but how exactly are you expecting some API to recognize specific field if it could be anywhere? OCR programs usually rely on specific consistent format (they need to know where exactly the needed field is located) or on some pattern, which would need to be provided for them (e.g. look for the number next to specific word, etc.). None of this just comes out of the box...&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 21:38:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-documents-through-ocr-to-sap/m-p/11950485#M1966412</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2019-05-21T21:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch data from documents through OCR to SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-documents-through-ocr-to-sap/m-p/11950486#M1966413</link>
      <description>&lt;P&gt;There are plenty of OCR / ICR tools are available in the market. But based on the input document structure (semi/un structure / fixed ), we need to choose the OCR tool. Most of the tools are having power API, which can directly integrate with SAP or atleast it can generate output/ values in a spreadsheet. Either we can directly consume via API or use the RPA tool to automate it.
We have evaluated all OCR tools ( Abbey, Kofax, Antworks, Google, IBM Data cap etc) and selected an OCR tool with RPA combination to process further.
Note: I've not shared the name of the OCR/ RPA vendor here and it may vary based on the scenarios/ requirements&lt;/P&gt;&lt;P&gt;Thanks  &lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 16:40:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-documents-through-ocr-to-sap/m-p/11950486#M1966413</guid>
      <dc:creator>former_member192029</dc:creator>
      <dc:date>2020-03-11T16:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch data from documents through OCR to SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-documents-through-ocr-to-sap/m-p/11950487#M1966414</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;this is a non-trivial project. I would use a tool like &lt;A href="https://ocrmypdf.readthedocs.io/en/latest/"&gt;ocrmypdf&lt;/A&gt; (free of charge and used by google for their books project) which uses &lt;A href="https://github.com/tesseract-ocr/tesseract"&gt;tesseract&lt;/A&gt; (can create hocr directly)&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;After creating the pdf or during the process create a xml file with also free tools like &lt;A href="https://poppler.freedesktop.org/"&gt;poppler&lt;/A&gt; &lt;A href="https://github.com/kermitt2/pdfalto"&gt;pdfalto&lt;/A&gt; or use the hocr which is created during the process.&lt;/P&gt;&lt;P&gt;These tools will create not only single characters but also words or textlines with their position on the page. You can fiddle with the parameters which is a word, but the default works pretty well in english and german.&lt;/P&gt;&lt;P&gt;Parse the xml e.g. with cl_xml_document or with a transformation&lt;/P&gt;&lt;P&gt;Be aware that e.g. the position from top can vary in a single line depending how the original file was created. Depending from your needs you have to adjust the positions. If you have the corrected position of each text-element you can extract the data in a logical way.&lt;/P&gt;&lt;P&gt;If you data structure is easy the following solution could be also sufficient.&lt;/P&gt;&lt;P&gt;Concatenate all "words" in a string and use regex.&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 11:28:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-from-documents-through-ocr-to-sap/m-p/11950487#M1966414</guid>
      <dc:creator>former_member650260</dc:creator>
      <dc:date>2020-04-28T11:28:39Z</dc:date>
    </item>
  </channel>
</rss>

