jhansireddy / AndroidScannerDemo

ScanLibrary is an android document scanning library built on top of OpenCV, using the app you will be able to select the exact edges and crop the document accordingly from the selected 4 edges and change the perspective transformation of the cropped image.
MIT License
1.07k stars 472 forks source link

Scanning from Camera doesn't work for API Level 30 #150

Closed rahim4one closed 3 years ago

rahim4one commented 3 years ago

This library works perfect with picking image from gallery, but the CAMERA support doesn't works on API Level 30.

kpradeepkumarreddy commented 3 years ago

I'm planning to use this library. What is the error you are getting ? and i tried the apk provided in this repo, After i take picture from camera, the image is getting rotated. Are you facing this issue ? https://github.com/jhansireddy/AndroidScannerDemo/tree/master/ScanDemoExample/apk/app-debug.apk

rahim4one commented 3 years ago

I'm planning to use this library. What is the error you are getting ? and i tried the apk provided in this repo, After i take picture from camera, the image is getting rotated. Are you facing this issue ? https://github.com/jhansireddy/AndroidScannerDemo/tree/master/ScanDemoExample/apk/app-debug.apk

No bro, i didn't faced anything like this.

rahim4one commented 3 years ago

SOLVED: we just need to ask for INTERNAL READ, WRITE and Camera Permissions to enabled very initially, in case we miss it, the library becomes unusable.

Thank You,