F_VN_NonMaxSuppression

F_VN_NonMaxSuppression 1:

Perform non-maximum suppression on given bounding boxes and corresponding scores.

Syntax

Definition:

FUNCTION F_VN_NonMaxSuppression : HRESULT
VAR_INPUT
    ipBoundingBoxes   : ITcVnContainer;
    ipScores          : ITcVnContainer;
    ipDestIndcies     : Reference To ITcVnContainer;
    fScoreThreshold   : REAL;
    fOverlapThreshold : REAL;
    hrPrev            : HRESULT;
END_VAR

 Inputs

Name

Type

Description

ipBoundingBoxes

ITcVnContainer

Container of bounding boxes to apply the non maximum supresion (ContainerType_Vector_TcVnRectangle_DINT)

ipScores

ITcVnContainer

Container of coreeponding score for each bounding box (ContainerType_Vector_REAL)

ipDestIndcies

Reference To ITcVnContainer

Container of the kept indcies after apply the non maximum suppression (ContainerType_Vector_DINT)

fScoreThreshold

REAL

A threshold [0.0 to 1.0] used to filter the bounding boxes by score

fOverlapThreshold

REAL

A threshold [0.0 to 1.0] that determines the minimum degree of intersection over union (IoU) required for bounding boxes to be considered overlapping

hrPrev

HRESULT

HRESULT indicating the result of previous operations (If SUCCEEDED(hrPrev) equals false, no operation is executed.)

 Return value

HRESULT

Required License

TC3 Vision Base

System Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT V3.1.4024.59 or later

PC or CX (x64) with PL50, e.g. Intel 4-core Atom CPU

Tc3_Vision