1. A method for processing an electronic image acquired by an imaging device, said method comprising: textualizing data from the acquired image; defining specific local partial models of the acquired image based on regular expressions and geometric proximity, the defining including, applying context free regular expression patterns to identify key phrase entities and related entities; grouping the key phrase entities with the related entities when a specified geometric relationship between the key phrase entities and the related entities is found; extracting information from the textualized data according to the local partial models; classifying the image as a receipt image; in response to the classification of the image as being a receipt image: applying receipt-specific rules to the extracted information; and generating receipt data from the application of the receipt-specific rules; wherein the method is performed using at least one processing device; and wherein the applied receipt-specific rules include user defined rules specified during operation of the imaging device.