ios - ABBYY Cloud OCR SDK 返回空的 authToken 作为响应?

标签 ios ocr abbyy

我想要一个 OCR 解决方案用于我的项目,我发现 ABBYY 云 OCR SDK 很有趣。我只是在查看 gitHub link 中提供的示例.该项目需要 applicationID 和密码才能在其服务器中进行身份验证。我通过在他们的网站上免费试用注册获得了所需的凭据。问题是我无法进行身份验证。我得到一个空的 authToken 作为响应。

这里会崩溃

NSString *installationId = [responseDictionary valueForKey:@"authToken"];

[[NSUserDefaults standardUserDefaults] setObject:installationId forKey:kOCRSDKInstallationId]; 
NSParameterAssert(self.installationId);

这些来 self 使用的示例项目。我不知道这是为什么。 enter image description here

它是在 NSParameterAssert(self.installationId);

处的异常断点

我在崩溃时得到了这个

Assertion failure in -[OCRDemoClient activateInstallationWithDeviceId:success:failure:force:], /Users/meerajpai/Meera/OCR/ocrsdk.com- master/iOS/Pods/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 =     {
    };
}

我很想知道为什么我无法进行身份验证?我错过了什么吗?

提前致谢

最佳答案

出现此问题是因为示例代码中存在错误。本周应该会修复,临时解决方案请看in this post .

关于ios - ABBYY Cloud OCR SDK 返回空的 authToken 作为响应?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17228331/

相关文章:

ios - 腾讯微博API Web App ID

python - 在 Python 中加载 OpenCV EAST 文本检测器时出错

机器学习中的照片 OCR 算法

android - android中文手写识别库

ios4 - 使用 ABBYY OCR SDK 从图像中检索到的坐标不正确

ios - 动态加载 mlmodel

iphone - 在 UINavigationController 中推送同一类 View Controller 的不同对象

ios - 如何在 iOS 中使用图像创建连续动画

java - ABBYY 实时识别(cordova 插件)错误

python - 使用 Pywinauto 自动化 ABBYY,我得到 "ElementNotFoundError"