TIEVisionOCR.getWordBoxes
Declaration
function getWordBoxes(): TIEVisionVectorObjRef; safecall;
Description
Extract words as Unicode text and their bounding boxes.
Returns a list of
TIEVisionOCRWordBox objects.
var
boxes: TIEVisionVectorObjRef;
box: TIEVisionOCRWordBox;
i: integer;
begin
ImageEnView1.IEBitmap.Canvas.Pen.Color := clBlue;
ImageEnView1.IEBitmap.Canvas.Brush.Style := bsClear;
boxes := m_OCR.getWordBoxes();
for i := 0 to boxes.size() - 1 do
begin
box := TIEVisionOCRWordBox( boxes.getObj(i) );
with box.getBox() do
ImageEnView1.IEBitmap.Canvas.Rectangle(x, y, x + width, y + height);
end;
ImageEnView1.Update();
end;