opencv_api.h 1.3 KB

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