1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #ifndef __I_FINDCODE_H__
- #define __I_FINDCODE_H__
- // *****************************************************************************
- // 版权所有(C)2023~2099 上海骄成超声波技术有限公司
- // 保留所有权利
- // *****************************************************************************
- // 作者 : 陆蕴凡
- // 版本 : 1.0
- // 代码创建日期:2025/02/10
- // 版本更新日期:2025/02/10
- // 功能说明:扫码接口
- // *****************************************************************************
- #include <vector>
- #include <string>
- #include "TypeDef.h"
- namespace JVision
- {
- /**
- * @brief 扫码接口基类
- *
- */
- class JVision_API IFindCode
- {
- public:
- virtual ~IFindCode() = 0 {}
- /**
- * @brief 获取扫码信息
- * @param[in] Image 需要扫码的图片
- * @param[in] codeMode 需要扫码的具体类型 1表示二维码 2表示条形码
- *
- * @return std::string 错误原因,中文字符
- */
- virtual std::vector<std::string> ResultStr(const JVision::ImageInfo& Image, int codeMode) = 0;
- /**
- * @brief 获取扫码函数的实现类指针
- */
- static IFindCode* GetFindCode();
- };
- }
- #endif
|