Android Question Camera document scanner with OpenCV or Camera2

Vicente Barba

Member
Licensed User
Hi,
I would know how to make an app to get image files in JPG format from camera with perspective fixing by manual border selection or in real time.
I have found something similar at https://github.com/jhansireddy/AndroidScannerDemo
Does anyone know if it can be solved with B4A libs OpenCV or Camera2? Please by example.

Thanks !

scanInput.png
 

Johan Schoeman

Expert
Licensed User
Longtime User
Last edited:
Upvote 0

Johan Schoeman

Expert
Licensed User
Longtime User
I have downloaded and managed to do shortcut wrap for it that can be kick started from within B4A (https://github.com/jhansireddy/AndroidScannerDemo). My observations:
1. The jar is just short of 20MB in size
2. The cropping does not seem to work properly (Github project compiled to a B4A lib)
3. Have downloaded the APK and it also does not seem to crop properly
4. The APK UI (when downloaded from the Github link) is different to that of the Github code once installed.

Have filed the project in "file 13"

JS
 
Upvote 0
Top