1. A method of processing graphical image data representing optically scanned medication-related units comprising: receiving image data generated responsive to an application of light to a tray disposed a distance from an image acquisition component, the application of light distinguishing a background field from a plurality of the units disposed on the tray; processing the image data to identify objects that correspond to respective ones of the units from the background field; counting the objects identified as corresponding to respective ones of the units; and generating an annotated image including at least a sequential number associated with each one of the objects identified as corresponding to respective ones of the units, wherein generating the annotated image further comprises generating one or more annotations descriptive of a prescription with which the annotated image is associated.