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

问题描述

我需要包括功能将文档扫描到我的应用程序。可以使用新的谷歌驱动器API来扫描文档?我尝试用OpenCV的处理图像,但我还没有较好的效果。

I need to include functionality to scan documents into my application. is possible use the new Google drive API to scan documents? I try use OpenCV to process the image but I have not had good results.

推荐答案

按扫描我假设你的意思是使用OCR提取文本?

By "scan" I assume you mean use OCR to extract text?

在谷歌驱动器的OCR功能是pretty的限制。

The OCR feature on Google Drive is pretty limited.

https://support.google.com/drive/answer/176692? HL = EN

它会扫描图像或PDF文件高达2MB的大小,这并不多。文本扫描在中等分辨率和存储为JPG格式的单页,有时会不止于此。降低分辨率将允许多个页面,同时也使OCR结果不可靠。如果你想存储多页的PDF扫描或TIFF格式,你会倒霉。

It will scan images or PDFs upto 2MB in size, which isn't much. A single page of text scanned at moderate resolution and stored as JPG format will sometimes be more than that. Reducing the resolution will allow more than one page, but also make the OCR results less reliable. If you want to store multi-page PDF scans or TIFFs you'll be out of luck.

我测试了单页扫描从保险单据,并做了工作,对文件中的话,我可以(几分钟后)搜索。

I tested a single scanned page from an insurance document and it did work, I could (after a few minutes) search on words in the document.

我想你会更好地考虑存储在谷歌驱动器的图像,pre-处理有独立的OCR库后。

I think you would be better to consider storing the images on Google Drive, after pre-processing with a separate OCR library.

这篇关于谷歌驱动器API来扫描文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-03 01:23