问题
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.
回答1:
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.
回答2:
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.
回答3:
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
回答4:
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
来源:https://stackoverflow.com/questions/6786367/android-capture-a-document-scan-it-using-camera