How to convert Image To Text in RoR

Hello All

I have too many scanned notes i need to convert them into text and then user may download that as pdf , How it can be done in RoR

Please help

Thanks in advance :slight_smile:

i am not sure how ROR can help you here but you could use gocr for image to text conversion.

is there no way ???

What you need to do is identify open source software that does OCR specifically. Rails doesn’t include image or PDF manipulation itself, but can be integrated with other tools that do. E.g. Rmagick and Prawn.

These Ruby gems look promising:

https://github.com/dannnylo/rtesseract

https://github.com/gkovacs/pdfocr

Goodluck,

Walter

Why don't you put the image file itself inside the pdf? :slight_smile: