本文介绍了使用opencv的Android文档扫描仪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的应用程序中开发文档扫描仪.作为我要实现的目标的示例,您可以看一下内置在Google驱动器应用程序中的Google Document t扫描仪.

I am in the process of trying to develop a document scanner within an application of mine. As an example of what I want to achieve you can take a look at the Google document t scanner built into the Google drive app.

这允许

  1. 检测边缘
  2. 操纵视角
  3. 显示文档的自上而下视图

我一直在研究许多第三方API,以查看是否可以实现,但他们似乎更专注于OCR.这不是我的优先事项.

I have been looking at a number of 3rd party api to see if this can be achieved but they seem more focused on OCR. Which is not a priority of mine.

但是,我偶然发现了这个文档扫描器

I have however stumbled across this document scanner

使用java open cv进行文档扫描的位置.在评论中,有人问到将其移植到android应用程序的可能性.显然这是可能的.

Where it makes a document scanner using java open cv. Within the comments someone asked about the possibility of porting this to an android application. Apparently this is possible.

我研究了如何在IDE(Android Studio)中导入开放的简历库.这也是可能的.

I have researched importing the open cv library within my IDE (android studio). This is also possible.

由于我之前没有做过此事,如果有人可以帮助我确定可能帮助我实现目标的任何潜在问题或替代实施,我将不胜感激.

As I have not done this before I would be grateful if someone could help me identify any potential issues or alternative implementations which would help me achieve my goal.

我渴望尽可能依靠第三方来发展自己

I am eager to develop this myself with relying on 3rd parties where possible

推荐答案

我编写了具有本地支持的演示代码,请在以下位置找到它:链接.如果您找到了更好的解决方案,请随时编辑我的代码.

I have written a demo code with native support, please find it on: link. Feel free to edit my code if you find a better solution for this.

这篇关于使用opencv的Android文档扫描仪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 08:39