/** *@file carPlatePostProcess.h *@author lynxi *@version v1.0 *@date 2023-03-07 *@par Copyright: *© 2022 北京灵汐科技有限公司 版权所有。 * 注意:以下内容均为北京灵汐科技有限公司原创,未经本公司允许,不得转载,否则将视为侵权;对于不遵守此声明或者其他违法使用以下内容者,本公司依法保留追究权。\n *© 2022 Lynxi Technologies Co., Ltd. All rights reserved. * NOTICE: All information contained here is, and remains the property of Lynxi. *This file can not be copied or distributed without the permission of Lynxi *Technologies Co., Ltd. *@brief 车牌检测后处理 */ #ifndef __CAR_PLATE_POST_PROCESS_H_ #define __CAR_PLATE_POST_PROCESS_H_ #include "detect.h" #include "osdPlugin.h" #ifdef __cplusplus extern "C" { #endif /** * @brief 模型推理结果转换成DetectionResult * * @param[in] cfg 模型配置 * @param[in] post_info yolov后处理信息 * @param[in] pFilter 过滤id序列 * @param[in] filterNum 过滤id序列包含个数 * @return 推理结果 */ int carPlatePostProcess(YoloPostProcessInfo_t *post_info, int *pFilter = nullptr, int filterNum = 0); /** * @brief 模型推理结果转换成DetectionResult(x7模型) * * @param[in] cfg 模型配置 * @param[in] post_info yolov后处理信息 * @param[in] pFilter 过滤id序列 * @param[in] filterNum 过滤id序列包含个数 * @return 推理结果 */ DetectionResult carPlatePostProcess_7x(const Yolov5sConfig *cfg, YoloPostProcessInfo_t *post_info, int *pFilter = nullptr, int filterNum = 0); int osdPostProcess(OSD_PARAM_T* num_extractor_p); #ifdef __cplusplus } #endif #endif