Method and Apparatus for Calculating the Background Color of an Image
AssigneeDigital Business Processes, Inc.
InventorHuanfeng Ma
Life of this patent
Estimating the term…
Loading patent…
AssigneeDigital Business Processes, Inc.
InventorHuanfeng Ma
Estimating the term…
A method, device and computer readable storage media for enhancing an image for optical character recognition by detecting the edges of the image to create an edge detected image, binarizing the edge detected image to create a binary edge image for processing, dilating the binary edge image to create a dilated binary edge image, taking the XOR difference between the binary edge image and the dilated binary edge image to obtain a text boundary, superimposing the text boundary on the image and determining the pixels of the image that are covered by the text boundary, calculating the average grayscale value of the pixels of the image that are covered by the text boundary, and setting background pixels of the image to the calculated average grayscale value of the pixels of the image that are covered by the text boundary. The method optionally includes the steps of performing edge filling and hole filling on the binary edge image to create an updated binary edge image and filling holes in the dilated binary edge image to create an updated dilated binary edge image, whereby the XOR difference is taken between the updated binary edge image and the updated dilated binary edge image. The image may be binarized for optimal results after the background images have been set to the calculated average grayscale value of the pixels that are covered by the text boundary.
A method of enhancing an image for optical character recognition, comprising:
A computer readable storage medium having instructions thereon that when processed by a processor cause the implementation of a method of enhancing an image for optical character recognition, the method comprising:
A device for enhancing an image for optical character recognition, comprising:
Dependencies are inferred from the claim text.