1. A method of extracting text from a digital image, comprising: receiving a digital image at an image processor, wherein the digital image includes a textual object and a graphical object; defining a predetermined line threshold wherein the predetermined line threshold corresponds to a potential line of text and two end points of a line are identified; generating a mask based on the digital image, wherein the mask includes a pattern having a first pattern area associated with the textual object when the distance between the two points of the line are equal to or greater than the predetermined line threshold and a second pattern area associated with the graphical object when the distance between the two points of the line are less than the predetermined line threshold; applying the mask to the digital image creating a transformed digital image, wherein the transformed digital image includes a portion of the digital image associated with the textural object; and performing character recognition on the portion of the digital image associated with the textual object of the transformed digital image to create a recognized text output.