ImageEn, unit ievision

TIEVisionObjectsFinder.mergeAllRects

TIEVisionObjectsFinder.mergeAllRects


Declaration

function mergeAllRects(): TIEVisionVectorRect; safecall;


Description

Merges rectangles that intersect of all object detectors.


Example

// detect objects
objectsFinder.findIn(image);

// merge intersecting rectangles
rects := objectsFinder.mergeAllRects();

// loop among rectangles
for i := 0 to rects.size-1 do
begin
  ImageEnView1.ObjPenWidth[-1] := 2;
  with rects.getRect(i) do
  begin
    ... do something with the rectangle coordinates and size
  end;
end;


See Also

- findIn
- getFoundRect
- getFoundRectCount
- mergeRects