how to auto-focus and auto-capture picture(Driver's License) with camera in android programmatically?

2.4k views Asked by At

KeyRing app
(source: idownloadblog.com)

I am developing an android app in which when i open camera intent, i would want something like this screen-shot from the app Keyring. Instead of the Bar Code, I want to capture a Drivers License. A border for the user to focus the card in, Auto-focus the image and Auto-Capture. Please give me direction! Any help will be appreciated. Instead of Drivers License, i mistakenly put Credit Card earlier, sorry for the confusion. Also, Can this be done with Action_Image_Capture Intent or do i have to open Camera object and create a preview and all?

1

There are 1 answers

1
qazimusab On

Use card.io. It's an open library that you can implement into yoour app which will accomplish exactly what you are trying to do.