๐Ÿ”ค TrOCR Demo - Optical Character Recognition

Upload an image containing text and watch TrOCR extract the text with high accuracy!

๐Ÿ“– About TrOCR

TrOCR (Text Recognition OCR) is a state-of-the-art transformer-based model for optical character recognition. This demo showcases different TrOCR variants optimized for printed text and handwritten text.

Available Models:

  • TrOCR Base (Printed): Best for printed text, documents, signs
  • TrOCR Large (Printed): Higher accuracy for printed text, slower processing
  • TrOCR Base (Handwritten): Optimized for handwritten text

๐Ÿ“ค Input

Select TrOCR Model

Choose the model variant best suited for your image type

๐Ÿ“ค Results

Upload an image and click 'Extract Text' to see the OCR results!

๐Ÿ“‹ Try These Examples

Examples

Built with โค๏ธ using Gradio and TrOCR

Deployed on ๐Ÿค— Hugging Face Spaces