Index of the first OCR character in the text if this SVG document was obtained through OCR.
The 0-based index of the first OCR character in the text if this SVG document was obtained through OCR. Default value is 0.
OcrZoneIndex and OcrCharacterIndex are valid only if CharacterFlags contains SvgTextCharacterFlags.FromOcr. Otherwise, the value is 0 and should not be used.
LEADTOOLS offers many ways of generating SVG documents from raster images. For instance, IOcrPage.SaveSvg. When SvgTextData is obtained from such SVG, CharacterFlags will contain SvgTextCharacterFlags.FromOcr and the values of OcrZoneIndex and OcrCharacterIndex are valid and contain the following:
Member | Value |
---|---|
OcrZoneIndex | The 0-based index of the zone that contains this character in IOcrPageCollection. |
OcrCharacterIndex | The 0-based index of the character in the owner IOcrZoneCharacters. |