CalcIou
Function Usage
Calculates the IOU value.
Prototype
1 | float CalcIou(DetectBox a, DetectBox b, IOUMethod method = UNION); |
1 | float CalcIou(ObjectInfo a, ObjectInfo b, IOUMethod method = UNION); |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
a |
Input |
DetectBox (central point)/ObjectInfo (corner point). |
b |
Input |
DetectBox (central point)/ObjectInfo (corner point). |
method |
Input |
IoU is calculated as follows:
|
Response Parameters
Data Structure |
Description |
|---|---|
float |
IOU value. |
Parent topic: Nms