123456789101112131415161718192021222324252627282930313233343536373839 |
- /******************************************************************************
- 版权所有 (C), 2019-2029, SDC OS 开源软件小组所有
- ******************************************************************************
- 文 件 名 : opencv_api.h
- 版 本 号 : 初稿
- 作 者 : athina
- 生成日期 : 2020年7月4日
- 最近修改 :
- 功能描述 : opencv_api函数集
- 函数列表 :
- 修改历史 :
- 1.日 期 : 2020年7月4日
- 作 者 : athina
- 修改内容 : 创建文件
- ******************************************************************************/
- #ifndef __HW_OPENCV_API_H__
- #define __HW_OPENCV_API_H__
- #include "sdc_os_api.h"
- #include <vector>
- bool YUVResize(sdc_yuv_frame_s &yuvFrame, int resize_w, int resize_h, unsigned char * pyuv);
- float GetScaleRatio(int src_w, int src_h,int forwardsize_w, int forwardsize_h);
- void SetSdcYuvFrame(int src_w, int src_h, sdc_yuv_frame_s *pstRGBFrameData);
- int ProcessInputPath(const char* imgPath, int &input_w, int &input_h, uint8_t **pyuv);
- void DrawImage(const char* imgPath, SDC_SSD_RESULT_S* stResult, int src_w, int src_h, int for_w,int for_h);
- bool YuvEncode(sdc_yuv_frame_s &yuvFrame, std::vector<uint8_t>& buf);
- #endif /* __HW_OPENCV_API_H__ */
|