Medication recognition system