Partager via


Optical Character Recognition (U-SQL)

Summary

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