 | OcrPageIteratorGetBinaryImage Method |
Get f binary image of the current object at the given level.
Namespace: Patagames.OcrAssembly: Patagames.Ocr (in Patagames.Ocr.dll) Version: 4.6.411
Syntaxpublic OcrPix GetBinaryImage(
PageIteratorLevel level
)
Public Function GetBinaryImage (
level As PageIteratorLevel
) As OcrPix
public:
OcrPix^ GetBinaryImage(
PageIteratorLevel level
)
member GetBinaryImage :
level : PageIteratorLevel -> OcrPix public OcrPix GetBinaryImage(
PageIteratorLevel level
)
function GetBinaryImage(level);
Parameters
- level PageIteratorLevel
- Type of element of the page hierarchy.
Return Value
OcrPixBinary 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