tf_wheel_3Dcnn_api.h 688 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * 3dcnn 识别api
  3. */
  4. #ifndef __tf_wheel_3Dcnn__H
  5. #define __tf_wheel_3Dcnn__H
  6. #include <string>
  7. #ifndef LIB_3DCNN_API
  8. #ifdef LIB_EXPORTS
  9. #if defined(_MSC_VER)
  10. #define LIB_3DCNN_API __declspec(dllexport)
  11. #else
  12. #define LIB_3DCNN_API __attribute__((visibility("default")))
  13. #endif
  14. #else
  15. #if defined(_MSC_VER)
  16. #define LIB_3DCNN_API
  17. #else
  18. #define LIB_3DCNN_API
  19. #endif
  20. #endif
  21. #endif
  22. //初始化3dcnn网络参数,长宽高,权重文件
  23. LIB_3DCNN_API int tf_wheel_3dcnn_init(std::string model_file,int length, int width, int height);
  24. //3dcnn网络预测
  25. LIB_3DCNN_API bool tf_wheel_3dcnn_predict(float* data,float* pOut);
  26. //关闭网络
  27. LIB_3DCNN_API int tf_wheel_3dcnn_close();
  28. #endif