Solved

How to transform a polygon shape of text to text ?

  • 11 March 2021
  • 5 replies
  • 13 views

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

icon

Best answer by david_r 11 March 2021, 11:15

View original

5 replies

Userlevel 4

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.

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

Userlevel 4

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/

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 !

Userlevel 4

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.

Reply