PostProcessorObjectDetection constructor
PostProcessorObjectDetection(
- int numberOfClasses,
- int imageWidth,
- int imageHeight,
- ObjectDetectionModelType objectDetectionModelType,
Implementation
PostProcessorObjectDetection(
this.numberOfClasses,
this.imageWidth,
this.imageHeight,
this.objectDetectionModelType,
) {
if (objectDetectionModelType == ObjectDetectionModelType.yolov5) {
outputRow = 25200;
outputColumn = (numberOfClasses + 5);
modelOutputLength = outputRow * outputColumn;
} else {
outputRow = 8400;
outputColumn = (numberOfClasses + 4);
modelOutputLength = outputRow * outputColumn;
}
}