Skip to content

Kalaimani02/OCR-to-Handwritten-Text

Repository files navigation

OCR-to-Handwritten-Text

Converting Text in image to Text of our Handwriting

Function

It takes an image as an input, for example a screenshot of some content in any website. 
Then it will convert that text to the image of our handwriting.

Requirements

We need a charset which contains images of all the characters handwritten and 
named by their ASCII values

Explaination

This program has 2 parts.

  1. First we do OCR on the input image using tesseract and then save the output in a textfile (OCR_output.txt).
  2. Then we use the textwrapper module to wrap the text in the textfile according to our requirements. Then the program identifies the corresponding letter in our charset and concatenates it to produce the final Image, which is the text in out hand writing.

Input Image

OCR_input3

Output Image

Handwritten

We can also use the textToImage.py seperately alone. We can copy text from internet and paste it the OCR_output.txt Then the program will convert it to the text of our Handwriting.

Result from copied text

Handwritten

About

Converting Text in image to Text of our Handwriting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages