 | 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.OcrAssembly: Patagames.Ocr (in Patagames.Ocr.dll) Version: 4.6.411
Syntaxpublic void GetComponentImages(
PageIteratorLevel level,
bool isTextOnly,
bool isRawImage,
int rawPadding,
out OcrBoxa boxa,
out OcrPixa pixa,
out int[] blockIds,
out int[] paraIds
)
Public Sub GetComponentImages (
level As PageIteratorLevel,
isTextOnly As Boolean,
isRawImage As Boolean,
rawPadding As Integer,
<OutAttribute> ByRef boxa As OcrBoxa,
<OutAttribute> ByRef pixa As OcrPixa,
<OutAttribute> ByRef blockIds As Integer(),
<OutAttribute> ByRef paraIds As Integer()
)
public:
void GetComponentImages(
PageIteratorLevel level,
bool isTextOnly,
bool isRawImage,
int rawPadding,
[OutAttribute] OcrBoxa^% boxa,
[OutAttribute] OcrPixa^% pixa,
[OutAttribute] array<int>^% blockIds,
[OutAttribute] array<int>^% paraIds
)
member GetComponentImages :
level : PageIteratorLevel *
isTextOnly : bool *
isRawImage : bool *
rawPadding : int *
boxa : OcrBoxa byref *
pixa : OcrPixa byref *
blockIds : int[] byref *
paraIds : int[] byref -> unit public void GetComponentImages(
PageIteratorLevel level,
boolean isTextOnly,
boolean isRawImage,
int rawPadding,
/** @attribute OutAttribute */ /** @ref */OcrBoxa boxa,
/** @attribute OutAttribute */ /** @ref */OcrPixa pixa,
/** @attribute OutAttribute */ /** @ref */int[] blockIds,
/** @attribute OutAttribute */ /** @ref */int[] paraIds
)
function GetComponentImages(level, isTextOnly, isRawImage, rawPadding, boxa, pixa, blockIds, 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
See Also