灵云SDK开发手册(iOS API)  8.1
HCICaptureManager.h
1 //
2 // HCICaptureManager.h
3 // Pods
4 //
5 // Created by jths on 2017/8/3.
6 //
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import "HCICaptureGeneralDelegate.h"
12 /* @{ */
13 
15 /* @{ */
19 #define MODULE_NAME "HCI_OCR_CAPTURE"
20 
23 @interface OCRAbilityItem : NSObject
27 @property (nonatomic, copy) NSString *capKey;
28 
32 @property (nonatomic, copy) NSString *dataPath;
33 
37 @property (nonatomic, copy) NSString *templatePath;
38 
42 @property (nonatomic, copy) NSString *recogConfig;
43 
44 @end
48 @interface OCRCaputreBaseConfig : NSObject
49 
53 @property (nonatomic, copy) NSString *appKey;
57 @property (nonatomic, copy) NSString *developerKey;
61 @property (nonatomic, copy) NSString *cloudUrl;
65 @property (nonatomic, copy) NSString *authPath;
69 @property (nonatomic, copy) NSString *config;
70 /* @} */
72 /* @{ */
73 
79 + (OCRCaputreBaseConfig *)sharedConfig;
80 
81 @end
82 
86 @interface HCICaptureManager : NSObject
93 + (instancetype)sharedManager;
94 
99 
103 + (void)setLogEnable:(BOOL)enable;
104 
109 - (void)hciInit:(void (^)(BOOL))block;
110 
117 - (void)loadEngineFromAbility:(OCRAbilityItem *)abilityItem
118  setCallback:(id<HCICaptureGeneralDelegate>)delegate;
119 
123 - (void)recogWithAbilityEngine;
124 
130 - (void)recogImageWithAbilityEngine:(UIImage *)image;
131 /* @} */
132 /* @} */
133 @end
134