Skip to main content
Solved

How to transform a polygon shape of text to text ?

  • March 11, 2021
  • 6 replies
  • 137 views

polygonTextHello ! Does anybody have a clue how to transform a polygon reprensenting a text to a text ? See attached image.

Best answer by david_r

Hi David !

I've got a rejection message :

Teeseract didn't find any text on this raster

Is there a problem with my parameters ? see attached imageserror messageParameters

I've never used the TesseractCaller myself, but perhaps you can find some pointers either in the documentation, or in this article: https://www.safe.com/blog/2016/10/ocr-for-fme-now-i-know-my-abc/

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

6 replies

david_r
Celebrity
  • March 11, 2021

One possibility is to rasterize (e.g. using the ImageRasterizer) the polygons and using the TesseractCaller to do OCR on the result. When rasterizeing, you may want to make sure the polygons are filled, not just outlined.


  • Author
  • March 11, 2021

One possibility is to rasterize (e.g. using the ImageRasterizer) the polygons and using the TesseractCaller to do OCR on the result. When rasterizeing, you may want to make sure the polygons are filled, not just outlined.

Hi David !

I've got a rejection message :

Teeseract didn't find any text on this raster

Is there a problem with my parameters ? see attached imageserror messageParameters


david_r
Celebrity
  • Best Answer
  • March 11, 2021

Hi David !

I've got a rejection message :

Teeseract didn't find any text on this raster

Is there a problem with my parameters ? see attached imageserror messageParameters

I've never used the TesseractCaller myself, but perhaps you can find some pointers either in the documentation, or in this article: https://www.safe.com/blog/2016/10/ocr-for-fme-now-i-know-my-abc/


  • Author
  • March 11, 2021

Hi David !

I've got a rejection message :

Teeseract didn't find any text on this raster

Is there a problem with my parameters ? see attached imageserror messageParameters

Ok.

Thank you very much ! I think the TesseractCaller is the solution to my problem. I'll read the documentation to see about the parameters.

 

Thanks again and have a nice day !


david_r
Celebrity
  • March 11, 2021

An alternative solution would be to use the RekognitionConnector with action "Text detection". It will use AWS to perform text detection, and in my experience it is really, really good.

The service might be billed depending on the number of requests, although I find it very reasonable for the quality it offers.


a.bradley
Contributor
Forum|alt.badge.img+6
  • September 2, 2025

Hi David !

I've got a rejection message :

Teeseract didn't find any text on this raster

Is there a problem with my parameters ? see attached imageserror messageParameters

Ok.

Thank you very much ! I think the TesseractCaller is the solution to my problem. I'll read the documentation to see about the parameters.

 

Thanks again and have a nice day !

@sam.27 did this solution work for you? I am also getting a rejection message and have the exact same task as you with the area/polygon numbers needing to be converted to text.