Bladeren bron

IPU插件更新

huangyl3 5 jaren geleden
bovenliggende
commit
30c441b39e

BIN
IPUCommon/IPUOcr.framework/IPUOcr


BIN
IPUCommon/IPUOcr.framework/Info.plist


+ 4 - 0
display-center/Res/config/mobile-action.xml

@ -208,4 +208,8 @@
208 208
    <action name="makeShortVideo" class="IPUVideoRecordPlugin" method="recordShortVideo"/>
209 209
    
210 210
    <action name="voiceInput" class="IPUVoicePlugin" method="voiceInput"/>
211
    
212
    <!-- OCR识别 -->
213
    <action name="getFloCardInfoBD" class="IPUOCRPlugin" method="getFloCardInfoBD"/>
214
    <action name="getIdCardInfo" class="IPUOCRPlugin" method="getIdCardInfo"/>
211 215
</actions>

BIN
display-center/display-center.xcworkspace/xcuserdata/huangyulin.xcuserdatad/UserInterfaceState.xcuserstate


+ 8 - 2
display-center/display-center/IPUOCRPlugin.m

@ -37,6 +37,10 @@
37 37
        int sdk_type = [params[3] intValue];
38 38
        NSString *sdk_key = params[4];
39 39
        
40
        if ([sdk_key containsString:@"'"]) {
41
            sdk_key = [sdk_key stringByReplacingOccurrencesOfString:@"'" withString:@"\""];
42
        }
43
        
40 44
        [IPUOcrRequest ipuOcrGetIdCardInfo:type picInfo:picInfo needMark:needMark sdk_type:sdk_type sdk_key:sdk_key success:^(id  _Nonnull result) {
41 45
            NSDictionary *resultDic = result;
42 46
            NSMutableArray *callBackArray = [NSMutableArray arrayWithCapacity:0];
@ -49,8 +53,6 @@
49 53
            [self error:error];
50 54
        }];
51 55
    }
52
    
53
    
54 56
}
55 57
56 58
- (void)getFloCardInfo:(NSArray *)params {
@ -64,6 +66,10 @@
64 66
        int sdk_type = [params[3] intValue];
65 67
        NSString *sdk_key = params[4];
66 68
        
69
        if ([sdk_key containsString:@"'"]) {
70
            sdk_key = [sdk_key stringByReplacingOccurrencesOfString:@"'" withString:@"\""];
71
        }
72
        
67 73
        [IPUOcrRequest ipuOcrGetFloCardInfo:type picInfo:picInfo needMark:needMark sdk_type:sdk_type sdk_key:sdk_key success:^(id  _Nonnull result) {
68 74
            NSDictionary *resultDic = result;
69 75
            NSMutableArray *callBackArray = [NSMutableArray arrayWithCapacity:0];