gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-29 10:58:18 27 4
gpt4 key购买 nike

我想要一个 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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com