Declaration function getRegions(textOnly: bool32 = false): TIEVisionVectorRect ; overload; safecall; function getRegions(image: TIEVisionImage ; textOnly: bool32 = false): TIEVisionVectorRect ; overload; safecall; Description
Detect text regions (layout).
First overload takes last processed image as input.
Second overload takes the specified image as input.
Parameter Description
image Source image
textOnly If true then only text regions are returned. If False image regions (with no text) may also be returned
Note:
◼ A shortcut method for this is available:
OCR_GetRegions
◼ getRegions should be used with the
ievOCRAuto_OnlySegmenting or ievOCRAuto segmentation modes
◼ You can draw the rects to canvas using
DrawRects
OCR.setSegmentationMode(ievOCRAuto); regions := OCR.getRegions(image); for i := 0 to regions.size()-1 do with regions.getRect(i) do begin str := m_OCR.recognize(image, IEVisionRect(x, y, width, height)); // Do something with str end;
Loading contents...