我想为我的项目提供OCR解决方案,我发现ABBYY云OCR SDK很有趣。我刚刚查看了gitHub link中提供的示例。该项目需要applicationID和密码才能在其服务器中进行身份验证。我通过在他们的网站注册免费试用获得了所需的证书。问题是我无法进行身份验证。我得到一个空的authToken作为回应。
这里崩溃了
NSString *installationId = [responseDictionary valueForKey:@"authToken"];
[[NSUserDefaults standardUserDefaults] setObject:installationId forKey:kOCRSDKInstallationId];
NSParameterAssert(self.installationId);
这些来自我使用的示例项目。我无法弄清楚这个的原因。
它是 NSParameterAssert(self.installationId)的特殊断点;
我在崩溃时得到了这个
断言失败 - [OCRDemoClient activateInstallationWithDeviceId:成功:失败:力:] /Users/meerajpai/Meera/OCR/ocrsdk.com- 主/式IO /荚/ OCRSDKClient / OCRSDKClient / OCRSDKClient.m:98
仔细查看屏幕截图here
以下是回复
Printing description of responseDictionary:
{
"__name" = response;
"_xmlns" = "http://ocrsdk.com/schema/response-1.0.xsd";
"_xmlns:xsi" = "http://www.w3.org/2001/XMLSchema-instance";
"_xsi:schemaLocation" = "http://ocrsdk.com/schema/response-1.0.xsd http://ocrsdk.com/schema/response-1.0.xsd";
authToken = {
};
}
我很想知道为什么我无法通过身份验证?我错过了什么吗?
提前致谢