OCR Sorting Machine

Multiple approaches:
http://arduino.cc/en/reference/firmata
https://learn.sparkfun.com/tutorials/connecting-arduino-to-processing
And, almost any high level language such as VB or Java.

But, OCR and most consumer applications work only on flat-field views, like from a scanner. Scanning a round object, rendering a flat field view and OCR is not a simple feat, IMO.

Ray