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 each one of the objects identified as corresponding to respective ones of the units.