Click or drag to resize

OcrPageIteratorGetBinaryImage Method

Get f binary image of the current object at the given level.

Namespace: Patagames.Ocr
Assembly: Patagames.Ocr (in Patagames.Ocr.dll) Version: 4.6.411
Syntax
public OcrPix GetBinaryImage(
	PageIteratorLevel level
)

Parameters

level  PageIteratorLevel
Type of element of the page hierarchy.

Return Value

OcrPix
Binary image of the current object at the given level
Remarks
The position and size match the return from BoundingBoxInternal, and so this could be upscaled with respect to the original input image. The following methods are used to generate the images:
    A reconstruction of the original image (using xor to check for double representation) should be reasonably accurate, apart from removed noise, at the block level.Below the block level, the reconstruction will be missing images and line separators. At the symbol level, kerned characters will be invade the bounding box if rendered after recognition, making an xor reconstruction inaccurate, but an or construction better.Before recognition, symbol-level reconstruction should be good, even with xor, since the images come from the connected components.
See Also