ethereal-developers / OpenScan

A privacy-friendly Document Scanner app
BSD 3-Clause "New" or "Revised" License
1.47k stars 84 forks source link

Custom cropper screen #36

Closed UlanNurmatov closed 3 years ago

UlanNurmatov commented 3 years ago

How can I remove 'Original' 'Magic Color' and other buttons from cropping screen? I've downloaded the Flutter scanner plugin and tried to modify -> scanner_core -> scanlibrary -> src -> main -> res -> layout -> result_layout.xml but the buttons are still there.

veejayts commented 3 years ago

The repo present at flutter-scanner-croppper is just the API for dart to interact with the java code. The pub package manager unfortunately doesn't automatically fetch the local library dependencies in flutter. The scanner_core/ is present for testing and reference purposes should anyone want to change the plugin API.

If you want to make any changes to the scanner, all the code lives at OpenScan/android/scanlibrary/.

To remove the buttons, I suppose you would have to make changes in these files:

UlanNurmatov commented 3 years ago

Thanks, I removed the buttons. But when I click the the empty button areas, I get this printed: V/Scanning(18090): Scaning getPoints V/Scanning(18090): Scaning size() 2

Does it mean that button functions still run when clicked?

veejayts commented 3 years ago

Those logs have to do with the perspective cropping.

veejayts commented 3 years ago

Closing this issue. Ping here if you run into any problems regarding this.