IFindCode.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef __I_FINDCODE_H__
  2. #define __I_FINDCODE_H__
  3. // *****************************************************************************
  4. // 版权所有(C)2023~2099 上海骄成超声波技术有限公司
  5. // 保留所有权利
  6. // *****************************************************************************
  7. // 作者 : 陆蕴凡
  8. // 版本 : 1.0
  9. // 代码创建日期:2025/02/10
  10. // 版本更新日期:2025/02/10
  11. // 功能说明:扫码接口
  12. // *****************************************************************************
  13. #include <vector>
  14. #include <string>
  15. #include "TypeDef.h"
  16. namespace JVision
  17. {
  18. /**
  19. * @brief 扫码接口基类
  20. *
  21. */
  22. class JVision_API IFindCode
  23. {
  24. public:
  25. virtual ~IFindCode() = 0 {}
  26. /**
  27. * @brief 获取扫码信息
  28. * @param[in] Image 需要扫码的图片
  29. * @param[in] codeMode 需要扫码的具体类型 1表示二维码 2表示条形码
  30. *
  31. * @return std::string 错误原因,中文字符
  32. */
  33. virtual std::vector<std::string> ResultStr(const JVision::ImageInfo& Image, int codeMode) = 0;
  34. /**
  35. * @brief 获取扫码函数的实现类指针
  36. */
  37. static IFindCode* GetFindCode();
  38. };
  39. }
  40. #endif