Systems and methods for displaying scanned images with overlaid text
Disclosed are techniques and systems to provide a scanned image in which a portion of the image is overlaid with OCR generated text corresponding to the text of the original scanned document.
1 . A computer-implemented method, comprising:
receiving, by one or more computers, an image file that includes a scanned image of a document;
performing, by the one or more computers, optical character recognition (OCR) on the image file to generate a text file that includes text associated with words included in the image file;
displaying the document on a display of a computing device with portions of the document having recognized text being overlaid with optical character recognized text.
2 . The computer-implemented method of claim 1 , wherein generating a display comprises overlaying text-based portions to obscure the scanned image of the document.
3 . The computer-implemented method of claim 1 , further comprising:
determining a location of a word in the scanned image; and
aligning the word with the determined location in the scanned image in the display of the document.
4 . The computer-implemented method of claim 1 , further comprising:
determining a color of a word in the scanned image; and
formatting the OCR text of the word to match the determined color of the word.
5 . The computer-implemented method of claim 1 , further comprising:
determining a font style of a word in the scanned image; and
formatting the OCR text of the word to match the determined font style of the word.
6 . The computer-implemented method of claim 1 , further comprising:
determining a color of a background surrounding a word in the scanned image; and
formatting the OCR text of the word to include a background color to match the determined color of the background surrounding the word.
7 . The computer-implemented method of claim 1 , further comprising:
determining a color of a word in the scanned image;
formatting the OCR text of the word to match the determined color of the word;
determining a font style of a word in the scanned image;
formatting the OCR text of the word to match the determined font style of the word;
determining a color of a background surrounding a word in the scanned image; and
formatting the OCR text of the word to include a background color to match the determined color of the background surrounding the word.
8 . The computer-implemented method of claim 1 , further comprising:
identifying the text-based portions of the scanned image associated with text on the document;
identifying the image-based portions of the scanned image associated with images on the document.
9 . A computer program product tangibly embodied in a computer readable medium comprising instructions to cause a processor to: receive an image file that includes a scanned image of a document;
perform optical character recognition (OCR) on the image file to generate a text file that includes text associated with words included in the image file;
display the document on a display of a computing device with portions of the document having recognized text being overlaid with optical character recognized text.
10 . The computer program product of claim 9 , wherein the instructions to display the document comprise instructions to overlay text-based portions to obscure the scanned image of the document.
11 . The computer program product of claim 9 , further comprising instructions to:
determine a location of a word in the scanned image; and
align the word with the determined location in the scanned image in the display of the document.
12 . The computer program product of claim 9 , further comprising instructions to:
determine a color of a word in the scanned image; and
format the OCR text of the word to match the determined color of the word.
13 . The computer program product of claim 9 , further comprising instructions to:
determine a font style of a word in the scanned image; and
format the OCR text of the word to match the determined font style of the word.
14 . The computer program product of claim 9 , further comprising instructions to:
determine a color of a background surrounding a word in the scanned image; and
format the OCR text of the word to include a background color to match the determined color of the background surrounding the word.
15 . The computer program product of claim 9 , further comprising instructions to:
determine a color of a word in the scanned image;
format the OCR text of the word to match the determined color of the word;
determine a font style of a word in the scanned image;
format the OCR text of the word to match the determined font style of the word;
determine a color of a background surrounding a word in the scanned image; and
format the OCR text of the word to include a background color to match the determined color of the background surrounding the word.
16 . The computer program product of claim 9 , further comprising instructions to:
identify the text-based portions of the scanned image associated with text on the document;
identify the image-based portions of the scanned image associated with images on the document.
17 . A system, comprising: an optical character recognition module configured to perform optical character recognition (OCR) on the image file to generate a text file that includes text associated with words included in the image file;
a display module configured to display the document on a display of a computing device with portions of the document having recognized text being overlaid with optical character recognized text.
18 . The system of claim 17 , wherein the display module is further configured to overlay text-based portions to obscure the scanned image of the document.
19 . The system of claim 17 , wherein:
the OCR module is further configured to determine a location of a word in the scanned image; and
the display module to further configured to align the word with the determined location in the scanned image in the display of the document.
20 . The system of claim 17 , wherein:
the OCR module is further configured to determine a color of a word in the scanned image; and
the display module to further configured to format the OCR text of the word to match the determined color of the word.
21 . The system of claim 17 , wherein:
the OCR module is further configured to determine a font style of a word in the scanned image; and
the display module to further configured to format the OCR text of the word to match the determined font style of the word.
22 . The system of claim 17 , wherein:
the OCR module is further configured to determine a color of a background surrounding a word in the scanned image; and
the display module to further configured to format the OCR text of the word to include a background color to match the determined color of the background surrounding the word.
23 . The system of claim 17 , wherein:
the OCR module is further configured to determine a color of a word in the scanned image;
the display module to further configured to format the OCR text of the word to match the determined color of the word;
the OCR module is further configured to determine a font style of a word in the scanned image;
the display module to further configured to format the OCR text of the word to match the determined font style of the word;
the OCR module is further configured to determine a color of a background surrounding a word in the scanned image; and
the display module to further configured to format the OCR text of the word to include a background color to match the determined color of the background surrounding the word.
24 . The system of claim 17 , wherein:
the OCR module is further configured to identify the text-based portions of the scanned image associated with text on the document;
the OCR module is further configured to identify the image-based portions of the scanned image associated with images on the document.