Xamarin Forms App中的跨平台文档扫描仪功能 [英] Cross-platform document scanner functionality in Xamarin Forms App

查看:82
本文介绍了Xamarin Forms App中的跨平台文档扫描仪功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为跨平台应用程序(Xamarin Forms)的一部分,我正在开发我想要一个允许用户扫描文档的功能.

As part of an Cross-platform App (Xamarin Forms) I'm developing I want a functionality that allows the user to scan a document.

是否可以使用Xamarin Forms App组件(库)?

Are for Xamarin Forms App components (libraries) available that can be used?

我知道, Scanbot Scanner SDK 可以用于此目的,但这非常昂贵.没有其他选择吗?

I know, Scanbot Scanner SDK can be used for this, but that is quite expensive. Are there no alternatives available?

用有限的资源投入者来实现这种功能的最佳方法是什么?

What's the best way to implement such a functionality with a limited amount of invested resourcers?

推荐答案

我找到了这个免费的解决方案:成像库

I found this FREE solution: Imaging-Library

它需要一个照片文件,找到正方形"(文档)并裁剪出它外面的任何东西.

It takes a photo file, finds the "square" (document) and crops out anything outside it.

您可以使用 MediaPlugin 拍摄照片或使用电话中现有的照片.

You can use MediaPlugin to capture a photo or use an existing one that's on the phone.

我已经测试过并且可以正常工作,但是我认为我的照片质量太高了,因为渲染需要花费很多时间.您可以根据需要定制它.

I've tested and it works, but I think my photo quality was too high, as rendering took forever. You can tailor it to your needs.

这篇关于Xamarin Forms App中的跨平台文档扫描仪功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆