Android : Capture a document & Scan it using camer

2019-02-02 00:03发布

I would like to develope an application in android. The requirement is to scan a document using the camera and to convert the scanned data to a pdf file, so that it could be used as an attachment in mail.

Please provide me some sample code... Thank you.

4条回答
我只想做你的唯一
2楼-- · 2019-02-02 00:48

If you are looking for simple PDF functionality you might try this Simple PDF for Android there does not seem to be much else available. If you need OCR Suggestions for Android OCR as to the rest of it you are asking multiple questions, I suggest taking it one step at a time and asking one question per problem you encounter.

查看更多
啃猪蹄的小仙女
3楼-- · 2019-02-02 00:52

Here's an API that looks promising.

"CamScanner API enables your application to automatically detect page borders and smartly remove background. Enhance your image with up to five modes to make the contents clearer and more readable. Return processed documents to your app in JPG or PDF format."

https://dev.camscanner.com/?language=en-us

查看更多
倾城 Initia
4楼-- · 2019-02-02 00:55

For anyone looking for easy method, Try this library https://github.com/jhansireddy/AndroidScannerDemo

*Image returned here will be a Bitmap and not a pdf, You can save it with any mime type later on.

查看更多
放我归山
5楼-- · 2019-02-02 01:09

i'm working on project like this idea , Use mobile vision Api it's result is very good but it depend on image quailty and words font size check this likCheck this Link

查看更多
登录 后发表回答