# How to convert Image To Text in RoR

**URL:** <https://www.ruby-forum.com/t/how-to-convert-image-to-text-in-ror/208284>\
**Category:** Rails\
**Created:** [June 14, 2011, 5:33am UTC](https://www.ruby-forum.com/t/how-to-convert-image-to-text-in-ror/208284 "2011-06-14T05:33:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [June 14, 2011, 5:33am UTC](https://www.ruby-forum.com/t/how-to-convert-image-to-text-in-ror/208284/1 "2011-06-14T05:33:02Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![ratschi85](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/77aa72/32.png) [@ratschi85](https://www.ruby-forum.com/u/ratschi85)\
**Post date:** [June 14, 2011, 11:44am UTC](https://www.ruby-forum.com/t/how-to-convert-image-to-text-in-ror/208284/2 "2011-06-14T11:44:55Z")

</div>

is there no way ???

---

<div class="post-metadata">

**Author:** ![ratschi85](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/77aa72/32.png) [@ratschi85](https://www.ruby-forum.com/u/ratschi85)\
**Post date:** [June 14, 2011, 12:17pm UTC](https://www.ruby-forum.com/t/how-to-convert-image-to-text-in-ror/208284/3 "2011-06-14T12:17:05Z")

</div>

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:

> **[GitHub - dannnylo/rtesseract: Ruby library for working with the Tesseract OCR.](https://github.com/dannnylo/rtesseract)**
>
> Ruby library for working with the Tesseract OCR. Contribute to dannnylo/rtesseract development by creating an account on GitHub.

> **[GitHub - gkovacs/pdfocr: Adds text to PDF files using the cuneiform OCR software](https://github.com/gkovacs/pdfocr)**
>
> Adds text to PDF files using the cuneiform OCR software - GitHub - gkovacs/pdfocr: Adds text to PDF files using the cuneiform OCR software

Goodluck,  
Walter

---

<div class="post-metadata">

**Author:** ![ratschi85](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/77aa72/32.png) [@ratschi85](https://www.ruby-forum.com/u/ratschi85)\
**Post date:** [June 15, 2011, 12:03am UTC](https://www.ruby-forum.com/t/how-to-convert-image-to-text-in-ror/208284/4 "2011-06-15T00:03:15Z")

</div>

Why don’t you put the image file itself inside the pdf? 🙂

---

<div class="post-metadata">

**Author:** ![ratschi85](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/77aa72/32.png) [@ratschi85](https://www.ruby-forum.com/u/ratschi85)\
**Post date:** [June 14, 2011, 2:33pm UTC](https://www.ruby-forum.com/t/how-to-convert-image-to-text-in-ror/208284/5 "2011-06-14T14:33:16Z")

</div>

On Tue, Jun 14, 2011 at 9:00 AM, rajeevkannav [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> 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

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

–  
A-M-I-T S|S
