pill localization training data augmentation data preprocessing consumer + reference pill images pill localization inference data preprocessing reference image student - cnns features ranking gradient cnn color cnn gray cnn similarity measure pill retrieval .
pill - id : matching and retrieval of drug pill images .