convertToDetection function
Implementation
Detection convertToDetection(
double boxYMin,
double boxXMin,
double boxYMax,
double boxXMax,
double score,
int classID,
bool flipVertically,
) {
var _yMin = flipVertically ? 1.0 - boxYMax : boxYMin;
var width = boxXMax;
var height = boxYMax;
return Detection(
score,
classID,
boxXMin,
_yMin,
width,
height,
);
}