This is a fine-tuned TrOCR model for reading pill imprints (letters/numbers) from pill images. It is used as part of a pill identification pipeline where OCR output is matched against a pill database.
Fine-tuned on pill images with imprint labels (RxNav-style pill images). Data includes varied lighting, blur, and embossing conditions.
Evaluated primarily by end-to-end retrieval performance (top-k matching in a pill database) and qualitative OCR correctness on benchmark images.
1from transformers import TrOCRProcessor, VisionEncoderDecoderModel
2processor = TrOCRProcessor.from_pretrained("YOUR_NAME/YOUR_REPO")
3model = VisionEncoderDecoderModel.from_pretrained("YOUR_NAME/YOUR_REPO")