How to read partial data from ZONE OCR

  • Last Post 07 June 2018
  • Topic Is Solved
dusan.popovic posted this 04 June 2018


How can i take a certain part of the text from zone OCR.

in Document i have Name Surname and after that i have open bracket then some text.
Example: Dusan Popovic (Ime i Prezime) so i need only data before '('
Why, because name and surname sometimes can be shorten, sometimes can be longer and zone OCR have fixed region. (Attached example image)

This can be done trough scripting?


Attached Files

Order By: Standard | Newest | Votes
luca.scarpati posted this 04 June 2018

Hi Dusan,

Of course it is possible, I think for your case you need 2 lines of script (see attached).


I try to explain the various steps:

   - I entered an OCR area where I capture a very large area that reads your data; 

   - I wrote a small script where use "split" the recovered text according to your "condition" -> "("

   - The variable created in the script is called %COMPLETE_NAME%. For test it was inserted as output file name using a WFS connector.


Good luck and have a nice day cool!



Attached Files

  • Liked by
  • dusan.popovic
dusan.popovic posted this 07 June 2018

Hi Luca,

Working Perfectly!


  • Liked by
  • luca.scarpati