保护成员函数,用于对目标检测数据进行缩放。(该方法为内部调用方法,请用户不要使用。)
1 | void ObjectPostProcessBase::ResizeReduction(const ResizedImageInfo& resizedImageInfo, const int imgWidth, const int imgHeight, std::vector<ObjectInfo>& objInfos); |
参数名 |
输入/输出 |
说明 |
---|---|---|
resizedImageInfo |
输入 |
图片信息(包括原图和缩放后的宽高)。 |
imgWidth |
输入 |
图片宽度。 |
imgHeight |
输入 |
图片高度。 |
objInfos |
输出 |
输出目标检测的坐标、类型、置信度等信息。 |