sparkocr.transformers#

Subpackages#

Submodules#

Package Contents#

Classes#

Base64ToBinary

Transform Base64 Content to Binary

Base64ToImage

Transform Base64 Content to Image

BinaryToImage

Transform Binary Content to Image

BrosHocrTokenizer

HocrTokenizer

ChartToTextTable

DatasetReader

Base class for :py:class:`Transformer`s that wrap Java/Scala

DicomDeidentifier

De-identify of dicom document.

DicomDrawRegions

Draw regions to dicom.

DicomMetadataDeidentifier

De-identify metadata of dicom document.

DicomSplitter

Transform Dicom Binary Content to Image

DicomToImage

Transform Dicom Binary Content to Image

DicomToImageV2

Transform Dicom Binary Content to Image

DicomToImageV3

Transform Dicom Binary Content to Image

DicomToMetadata

Transform Dicom Binary Content to Image

DicomToPdf

Extract encapsulated Pdf from the Dicom Binary Content

DicomUpdatePdf

Update encapsulated Pdf file in the dicom document.

DocToPdf

Convert DOCX to Pdf

DocToText

Extract text from Docx document to single string.

DocToTextTable

Extract table data from Docx document.

DocumentCoordinatesToText

Base class for :py:class:`Transformer`s that wrap Java/Scala

DocumentLayoutAnalyzer

Base class for :py:class:`Transformer`s that wrap Java/Scala

FormRelationExtractor

Base class for :py:class:`Transformer`s that wrap Java/Scala

FoundationOneReportParser

Transformer for parsing FoundationOne parser data

GPUImageTransformer

Runs Image transformations in the GPU.

GeoRelationExtractor

Base class for :py:class:`Transformer`s that wrap Java/Scala

HocrDocumentAssembler

HocrDocumentAssembler

HocrMerger

Base class for :py:class:`Transformer`s that wrap Java/Scala

HocrToFeatures

Abstract class for transformers that transform one dataset into another.

HocrToImage

Base class for :py:class:`Transformer`s that wrap Java/Scala

HocrToTextTable

Recognize text from table cells

HocrTokenizer

HocrTokenizer

ImageAdaptiveBinarizer

Transform image to the binary color model

ImageAdaptiveScaler

Transform Binary Content to Image

ImageAdaptiveThresholding

Compute a threshold mask image based on local pixel neighborhood and apply it to image.

ImageBinarizer

Transform image to the binary color model

ImageBrandsToText

OCR based on tesseract

ImageCellsToTextTable

Recognize text from table cells

ImageCheckBoxDetector

Base class for :py:class:`Transformer`s that wrap Java/Scala

ImageCropper

Crop image

ImageDocumentRegionDetector

Base class for :py:class:`Transformer`s that wrap Java/Scala

ImageDrawAnnotations

Draw regions to image.

ImageDrawRegions

Draw regions to image.

ImageEnhanceContrast

Compute a contrast enhacement

ImageErosion

Return fast binary morphological erosion of an image.

ImageHandwrittenDetector

Base class for :py:class:`Transformer`s that wrap Java/Scala

ImageHandwrittenTextRecognizer

Base class for :py:class:`Transformer`s that wrap Java/Scala

ImageHomogenizeLight

Compute a illumination homogenization

ImageInpainting

Image inpainting.

ImageLayoutAnalyzer

Layout analyzer based on tesseract.

ImageMorphologyOperation

Transformer for apply morphological operations to image.

ImageMorphologyOperation1

Transform image to the binary color model

ImageNoiseScorer

Transform image to the binary color model

ImageRemoveBackground

Compute a background removing

ImageRemoveGlare

Compute a remove of glares

ImageRemoveObjects

Image transformer for remove background objects.

ImageScaler

Scale image

ImageSchemaConverter

Base class for :py:class:`Transformer`s that wrap Java/Scala

ImageSkewCorrector

Image Skew Corrector Transformer based on http://users.iit.demokritos.gr/~bgat/ICDAR2011_skew.pdf

ImageSplitRegions

Base class for :py:class:`Transformer`s that wrap Java/Scala

ImageTableCellDetector

Abstract class for transformers that transform one dataset into another.

ImageTableDetector

Base class for :py:class:`Transformer`s that wrap Java/Scala

ImageTextCleaner

Base class for :py:class:`Transformer`s that wrap Java/Scala

ImageTextDetector

ImageTextDetectorCraft

Base class for :py:class:`Transformer`s that wrap Java/Scala

ImageTextDetectorDit

Base class for :py:class:`Transformer`s that wrap Java/Scala

ImageTextDetectorV2

Base class for :py:class:`Transformer`s that wrap Java/Scala

ImageToDicom

Transform Image/Images to Binary Dicom Object

ImageToHocr

Image to HOCR

ImageToPdf

Group image by origin and transform image to Pdf document.

ImageToText

OCR based on tesseract

ImageToTextModelServing

Base class for :py:class:`Transformer`s that wrap Java/Scala

ImageToTextPdf

Recognize text from image and render results to the single page Pdf document.

ImageToTextV2

Base class for :py:class:`Transformer`s that wrap Java/Scala

ImageToTextV3

Base class for :py:class:`Transformer`s that wrap Java/Scala

ImageToTextV4

Base class for :py:class:`Transformer`s that wrap Java/Scala

ImageToTextWeb

Base class for :py:class:`Transformer`s that wrap Java/Scala

ImageTransformer

Runs Image transformations.

MedicalVisionLLM

Multimodal annotator to generate text completions with large

NerOutputCleaner

Post Process Mapping to fix missing chunkIds and NERs.

PdfAssembler

Assemble multi page Pdf document from single page documents.

PdfDrawRegions

Draw regions to PDF

PdfToForm

Export form fields from Pdf documents

PdfToHocr

Returns extracted text in hOCR format from Pdf document.

PdfToImage

Transform Pdf document to single image or to several images per each page.

PdfToText

Extract text from Pdf document to single string or to several strings per each page.

PdfToTextTable

Extract tables from Pdf report per each page.

PptToPdf

Extract table data from Docx document.

PptToTextTable

Extract table data from Docx document.

RegionsFilterer

Filters rows according to regions labels.

RegionsMerger

Base class for :py:class:`Transformer`s that wrap Java/Scala

TextToPdf

Render text with positions to Pdf document.

UpdateTextPosition

Update text positions and replace old.

VisualDocumentClassifier

Base class for :py:class:`Transformer`s that wrap Java/Scala

VisualDocumentClassifierLilt

Base class for :py:class:`Transformer`s that wrap Java/Scala

VisualDocumentClassifierV3

Base class for :py:class:`Transformer`s that wrap Java/Scala

VisualDocumentNer

VisualDocumentNerGeo

Base class for :py:class:`Transformer`s that wrap Java/Scala

VisualDocumentNerLayoutLMv1

Base class for :py:class:`Transformer`s that wrap Java/Scala

VisualDocumentNerLilt

Base class for :py:class:`Transformer`s that wrap Java/Scala

VisualDocumentProcessor

Visual document processor that produces OCR text and tables in different format

VisualQuestionAnswering

VisualQuestionAnsweringDonut

Base class for :py:class:`Transformer`s that wrap Java/Scala

VisualQuestionAnsweringPix2Struct

Base class for :py:class:`Transformer`s that wrap Java/Scala

VitImageEmbeddings

Base class for :py:class:`Transformer`s that wrap Java/Scala