pdf-inspector
pdf-inspector: rendimiento de parsing, layout y OCR
Reproduce calidad y velocidad separando coste local y OCR.

Qué aprenderás
- Trace detection and layout stages
- Run native extraction and OCR safely
- Design provenance checks
Antes de empezar
- Basic Git and command-line usage
- Comfort reading a project README
You can explain the project, run its documented first step, and decide what to verify before adopting it.
Conclusiones clave
- Published benchmarks are reproducibility targets.
- Native and OCR paths have different cost curves.
- Quality and accepted-document cost matter more than raw speed.
Use the paired corpus
Fija corpus, versiones, hardware y warm-up; mide detector, extractor, tablas, memoria, OCR y corrección humana.
Use the pinned source evidence, record versions and assumptions, and ask a qualified reviewer to validate the result before adopting it.
Measure stages
Record detection, load, extraction, layout, table formatting, serialization, OCR routing, and downstream review separately. Include p50/p95, peak memory, bytes, CPU, pages, warnings, and cache state.
Cost per accepted document
Native extraction may avoid OCR service charges; routed pages add model/runtime cost. Include retries, storage, hosted fallback, and human correction when calculating total cost.
Use the pinned source evidence, record versions and assumptions, and ask a qualified reviewer to validate the result before adopting it.
Cómo elegir
| Criterio | Opción A | Opción B |
|---|---|---|
| Best when | You need predictable behavior and easy auditing | You need adaptive optimization and have reliable telemetry |
| Main risk | May leave performance on the table | Can become difficult to explain or debug |
Pasos de implementación
- 1
Freeze corpus, versions, hardware, and warm-up policy.
- 2
Measure each parser stage and OCR branch.
- 3
Record quality, latency, memory, and spend.
- 4
Publish receipts and regression thresholds.
Ejemplo para copiar
corpus -> detect/load/extract p50/p95
-> layout/tables/serialize
-> routed OCR pages -> accepted Markdown + review costPreguntas frecuentes
Can I quote 0.470s as a universal speed?
No. It is a median for a specified corpus, hardware, versions, and protocol.
Is OCR always the dominant cost?
Often, but measure page count, model/runtime, and hosted fallback instead of assuming.
Fuentes
- pdf-inspector README (captured 2026-08-31)Fuente verificada 2026-08-31
- pdf-inspector repositoryFuente verificada 2026-08-31