Table of contents
TOC
Collapse the table of content
Expand the table of content

Optical Character Recognition (U-SQL)

Michael Rys|Last Updated: 5/15/2018
|
4 Contributors

OcrExtractor cognitive function detects and extract text in an image. It analyze images to detect embedded text and generate character streams.

Arguments
OcrExtractor(                                                                                            
     string imgCol = "ImgData", 
     string txtCol = "Text")

Examples

Extract text from the image using OCR Extractor

REFERENCE ASSEMBLY ImageCommon; 
REFERENCE ASSEMBLY ImageOcr;

@ocrs =
    PROCESS dbo.myImages
    PRODUCE FileName,
            Text string
    READONLY FileName
    USING new Cognition.Vision.OcrExtractor();

OUTPUT @ocrs
TO "/ReferenceGuide/Cognition/Vision/OcrExtractor.txt"
USING Outputters.Tsv(outputHeader: true);

See Also

© 2018 Microsoft