使用Xamarin进行OCR

3

我希望在我的Xamarin Forms应用程序中使用OCR读取身份证的信息,但是我找到的唯一示例是,而且已经过时了(或者我不知道如何使用它)。

我还看到了Google Vision AI,我可以在我的Xamarin.Android(或iOS)中使用它并将信息传递给我的共享项目,但我无法想象如何做到这一点。

有没有人可以帮助我解决这个问题?


使用 Microsoft 认知服务在 iOS、Android 和 Windows 上执行 OCR - Jason
你解决了这个问题吗?如果是,那么请分享你的解决方案作为答案。 - Leon
不行,因为Oxford Vision已经不再支持了,我想要一个开源的东西,但是我正在尝试使用我找到的Xamarin.Tesseract nuget。然而,我还没有完成这个实现。 - AnonymousUser
2个回答

1

请查看此链接。https://devblogs.microsoft.com/xamarin/performing-ocr-for-ios-android-and-windows-with-microsoft-cognitive-services/

使用 Microsoft Cognitive Services 和 Xamarin 跟踪发票的示例应用程序 - https://github.com/pierceboggan/smarter-apps

代码示例 -

using Microsoft.ProjectOxford.Vision;
using Microsoft.ProjectOxford.Vision.Contract;
...
OcrResults text;
var client = new VisionServiceClient("{YOUR-API-KEY-HERE}");
using (var photoStream = photo.GetStream())
{
    text = await client.RecognizeTextAsync(photoStream);
}

enter image description here


0

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接