Click or drag to resize

OcrApiGetComponentImages(PageIteratorLevel, Boolean, Boolean, Int32, OcrBoxa, OcrPixa, Int32, Int32) Method

Get the given level kind of components (block, textline, word etc.) as a leptonica-style Boxa, Pixa pair, in reading order.

Namespace: Patagames.Ocr
Assembly: Patagames.Ocr (in Patagames.Ocr.dll) Version: 4.6.411
Syntax
public void GetComponentImages(
	PageIteratorLevel level,
	bool isTextOnly,
	bool isRawImage,
	int rawPadding,
	out OcrBoxa boxa,
	out OcrPixa pixa,
	out int[] blockIds,
	out int[] paraIds
)

Parameters

level  PageIteratorLevel
Page iterator level
isTextOnly  Boolean
If true, then only text components are returned.
isRawImage  Boolean
If true, then extract from the original image instead of the thresholded image and pad by rawPadding pixels
rawPadding  Int32
If isRawImage is true, then extract from the original image and pad by rawPadding pixels.
boxa  OcrBoxa
The array ob boxes
pixa  OcrPixa
The array of lepronica pictures
blockIds  Int32
The array of block-id of each line
paraIds  Int32
The array of paragraph-id of each line within its block.
Remarks
Can be called before or after Recognize.
See Also