Skip to main content

Installation

Note: The [gpu] bundle requires an NVIDIA GPU with CUDA 11.8 drivers installed. Installation will fail on systems without compatible GPU drivers.

Quick Start

Here’s a simple example of processing a PDF document:

Modules

Parseport’s core modules work together to process documents:
  1. Document - Handles document loading, page management, and rendering (PDFDocument)
  2. Layout Parser - Detects and extracts document components using layout detection models (SimpleLayoutParser)
  3. Reader - Extracts text from components using OCR or vision-language models (VLMDocumentReader)
  4. Formatter - Converts extracted components into structured output formats (VLMFormatter)
These modules support multiple implementations for layout detection (PaddleOCR, YOLO), OCR (EasyOCR, PaddleOCR), and vision-language models.

Tools

  1. Layout Detection
    • PaddleLayoutDetector: Uses PaddleOCR for layout analysis
    • YOLO-based detector (optional)
  2. OCR Engines
    • EasyOCR
    • PaddleOCR
    • RapidOCR
  3. Visual Language Models
    • OpenAI VLM Generator for advanced text extraction
    • Support for custom VLM implementations

Custom Region Processing

Implementing Custom Detectors

You can create custom layout detectors by extending the BaseLayoutDetector class:
The detector can then be used like any built-in detector: