---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://mixpeek.com/.well-known/search?q={query}"
  method: GET
  documentation: "https://mixpeek.com/llms.txt"
---

[Models](/models)/[Text Extraction](/models?category=text_extraction)/microsoft/trocr-large-printed

HFOCRMIT

# trocr-large-printed

by microsoft

Transformer-based OCR for printed text recognition

65Kdl/month

181likes

608Mparams

[HuggingFace](https://huggingface.co/microsoft/trocr-large-printed)[Run it on your own data, free](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=model_page&utm_campaign=mvs_onramp)

Identifiers

Model ID

`microsoft/trocr-large-printed`

## Deploy trocr-large-printed

Single-tenant

Mixpeek has no managed extractor for this model. On a single-tenant deployment you upload the weights and a custom plugin serves them next to the rest of your pipeline.

[Read the customer-hosted guide](https://mixpeek.com/docs/customer-hosted/overview) [Talk to us about single-tenant](/demo)

## Overview

TrOCR is an end-to-end text recognition model that uses a pre-trained image Transformer (DeiT) as the encoder and a pre-trained language model (RoBERTa) as the decoder. The large variant achieves state-of-the-art on printed text benchmarks.

On Mixpeek, TrOCR extracts readable text from images and video frames, making text-in-image content searchable through natural language queries.

## Architecture

Encoder-decoder transformer: DeiT-Large (24 layers) as image encoder, RoBERTa-Large (24 layers) as text decoder. Pre-trained on large-scale synthetic printed text data, fine-tuned on SROIE and IAM datasets.

## How it runs

.dataflow-R15f6b .df-packets-static{display:none} @media (prefers-reduced-motion: reduce){ .dataflow-R15f6b .df-packets-anim{display:none} .dataflow-R15f6b .df-packets-static{display:inline} .dataflow-R15f6b .df-toggle{display:none} }

Pause

Inference INPUT MODEL OUTPUT Image object trocr-large-printed mp.inference Text vector Vector store MVS trocr-large-printed → embeddings, indexed for search

trocr-large-printed takes image, and Mixpeek indexes what it emits.

## Mixpeek SDK Integration

IngestRetrieve

// No extractor parameter takes a Hugging Face model id (checked against
// GET /v1/discovery/extractors, which returns 13), so trocr-large-printed runs
// on your side and the output is upserted through POST
// /v1/namespaces/{namespace\_id}/documents/upsert. On Enterprise the other
// path is to upload the weights instead: POST /v1/namespaces/{id}/models
// accepts the huggingface format and a custom plugin loads them.
const res = await fetch(
  "https://api.mixpeek.com/v1/namespaces/ns\_your\_namespace/documents/upsert",
  {
    method: "POST",
    headers: {
      Authorization: "Bearer API\_KEY",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      collection\_id: "col\_your\_collection",
      documents: \[
        {
          document\_id: "asset-00412",
          // The model produces text, so it lands in payload. Give the
          // collection a text vector index and embed that text to make it
          // searchable rather than only filterable.
          payload: { extracted\_text: modelOutput, source\_key: "archive/2026/asset-00412" },
          vectors: { "text-embedding": embeddingOfModelOutput },
        },
      \],
    }),
  },
);

// Managed alternative, if this exact model is not the requirement:
// universal\_extractor@v1 runs google/gemini-embedding-2
// (3072-d) over a bucket, with no inference of your own.

## Capabilities

*   High-accuracy printed text recognition
*   End-to-end pipeline (no separate detection step)
*   Multi-line text extraction
*   Robust to noise, blur, and varying fonts

## Use Cases on Mixpeek

Extract text from video overlays, subtitles, and signage

Digitize scanned documents and receipts

Search text-in-image content across media libraries

## Benchmarks

Dataset

Metric

Score

Source

SROIE (text recognition)

Word Accuracy

96.1%

Li et al., 2023: Table 3

IAM Handwritten

CER

3.4%

Li et al., 2023: Table 2

## Performance

Input Size384×384 px

GPU Latency~18ms / image (A100)

CPU Latency~210ms / image

GPU Throughput~55 images/sec (A100)

GPU Memory~1.4 GB

## Common Pipeline Companions

[

PaddlePaddle/paddleocr

Text detection (upstream)

](/model/PaddlePaddle/paddleocr)[

BAAI/bge-large-en-v1.5

Embed extracted text for search

](/model/BAAI/bge-large-en-v1.5)

## Explore on Mixpeek

[

More Text Extraction models

Compare alternatives in this category

](/models?category=text_extraction)[

Best Document AI Platforms

Hand-picked tools & platforms compared

](/curated-lists/best-document-ai-platforms)[

OCR & Document AI Internals

Deep-dive technical guide

](/guides/ocr-document-ai-internals)[

Feature Extractors

See how Mixpeek runs models as extractors

](/extractors)[

Mixpeek Vector Store

Store & search embeddings at scale

](/mvs)[

Pricing

Usage-based pricing for pipelines

](/pricing)[

All Curated Lists

Compare models, APIs & infrastructure

](/curated-lists)

### Specification

FrameworkHF

Organizationmicrosoft

FeatureOCR

Outputtext + bbox

Modalitiesvideo, image, document

RetrieverText-in-Image

Parameters608M

LicenseMIT

Downloads/mo65K

Likes181

[

### Research Paper

TrOCR: Transformer-based Optical Character Recognition with Pre-trained Models

arxiv.org](https://arxiv.org/abs/2109.10282)

### Build a pipeline with trocr-large-printed

Add this model to a processing pipeline alongside other extractors. Combine with retrieval stages for end-to-end search.

[Run it on your own data, free](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=model_page&utm_campaign=mvs_onramp)

### Alternative Models

[

PaddlePaddle/paddleocr

OCR

](/model/PaddlePaddle/paddleocr)[

zai-org/GLM-OCR

OCR

](/model/zai-org/GLM-OCR)[

lightonai/LightOnOCR-2-1B

OCR

](/model/lightonai/LightOnOCR-2-1B)[

deepseek-ai/DeepSeek-OCR-2

OCR

](/model/deepseek-ai/DeepSeek-OCR-2)

### Related in Text Extraction

[

microsoft/codebert-base

Code Extraction

](/model/microsoft/codebert-base)[

Salesforce/codet5p-110m-embedding

Code Extraction

](/model/Salesforce/codet5p-110m-embedding)[

nomic-ai/nomic-embed-code

Code Extraction

](/model/nomic-ai/nomic-embed-code)[

Salesforce/SFR-Embedding-Code-2B\_R

Code Extraction

](/model/Salesforce/SFR-Embedding-Code-2B_R)