Giter Site home page Giter Site logo

clean-apps / cleanscan Goto Github PK

View Code? Open in Web Editor NEW
177.0 7.0 51.0 140.1 MB

A simple, smart and efficient document scanner for Android

Home Page: https://clean-apps.github.io/CleanSCAN/

License: Apache License 2.0

Java 77.16% HTML 18.05% CSS 3.84% JavaScript 0.95%
document scanner productivity android app ocr pdf

cleanscan's People

Contributors

babanomania avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cleanscan's Issues

Bug: Back button from Settings doesn't work

Went into settings to adjust image quality (note: is there somewhere simpler to put that option? Seems unnecessary to tap three different things just to access one single setting), and the back button in the upper left corner doesn't work. I had to use my device's back-button in order to exit the settings menu.

Fdroid release

Is there any chance of getting this released on fdroid?

Feature request: custom output path

It would be great to be able to set:

  • the default output directory : letting us store it in a synced dir (for exemple with syncthing)
  • (optionnally) a custom path for the current scan

Feature request: Scan from photos

Since it looks like this app functions by capturing a photo and then scanning it, could we add an option to scan an existing photo from storage?

Scan button make app crash

Device:

Xiaomi Poco F1
Havoc OS - Android 11


What is wrong:

I believe you app tries to open intent to camera to capture the image of the document.

I only have Google Camera installed and i believe it does not respond to camera intent.

If that's the case what would be nice to allow me to take pictures first and then select from files inside your app as suggested at issue #36 .


Crash Log:

time: 1633726518171
msg: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.media.action.IMAGE_CAPTURE flg=0x3 clip={text/uri-list {...}} (has extras) }
stacktrace: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.babanomania.pdfscanner/com.scanlibrary.ScanActivity}: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.media.action.IMAGE_CAPTURE flg=0x3 clip={text/uri-list {...}} (has extras) }
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3432)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3596)
	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2067)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loop(Looper.java:223)
	at android.app.ActivityThread.main(ActivityThread.java:7669)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.media.action.IMAGE_CAPTURE flg=0x3 clip={text/uri-list {...}} (has extras) }
	at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2073)
	at android.app.Instrumentation.execStartActivity(Instrumentation.java:1872)
	at android.app.Activity.startActivityForResult(Activity.java:6032)
	at android.app.Activity.startActivityFromFragment(Activity.java:6010)
	at android.app.Activity$HostCallbacks.onStartActivityFromFragment(Activity.java:8819)
	at android.app.Fragment.startActivityForResult(Fragment.java:1121)
	at android.app.Fragment.startActivityForResult(Fragment.java:1110)
	at com.scanlibrary.PickImageFragment.openCamera(PickImageFragment.java:137)
	at com.scanlibrary.PickImageFragment.handleIntentPreference(PickImageFragment.java:85)
	at com.scanlibrary.PickImageFragment.init(PickImageFragment.java:66)
	at com.scanlibrary.PickImageFragment.onCreateView(PickImageFragment.java:56)
	at android.app.Fragment.performCreateView(Fragment.java:2505)
	at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1303)
	at android.app.FragmentManagerImpl.addAddedFragments(FragmentManager.java:2431)
	at android.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2210)
	at android.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2166)
	at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2067)
	at android.app.FragmentManagerImpl.dispatchMoveToState(FragmentManager.java:3057)
	at android.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:3004)
	at android.app.FragmentController.dispatchActivityCreated(FragmentController.java:184)
	at android.app.Activity.performCreate(Activity.java:8002)
	at android.app.Activity.performCreate(Activity.java:7978)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1315)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3405)
	... 11 more

Enlarged Edge Cropping

Thanks for the useful app!
I think it would be really nice to have a enlarged view of the edge marker while cropping manually. I think this would make the cropping a lot easier!

Scan button open the default camera app and then nothing happen

I've just tried this app on a phone with LineageOS and Open Camera as default camera. When I click scan I get the open camera to open (I was expecting to have an in app camera function with edge detection or something), then either I can take a photo but nothing happen or the screen is black like if the camera was covered (with open camera UI overlay).
Open camera works fine and all other scanner app I tried work fine as well.
Any idea what's going wrong here?

Live page detection?

Hello and thank you for making this project open source.

Is there any plan to provide live page recognition? I mean that the user wouldn't need to take a photo manually, but instead the camera feed would be analyzed on the fly and the user would only need to validate once the app has found a page in the camera feed.

Installation error: INSTALL_PARSE_FAILED_NO_CERTIFICATES

I cant able to run it. can you help me to fix it.

and it comes like this

Installation error: INSTALL_PARSE_FAILED_NO_CERTIFICATES

When i make the "Generate Signed Bundle or APK, it gives me another error like this.

Entry name 'META-INF/androidx.preference_preference.version' collided

And when i try to rebuild and clean the project and tried to rebuild again. the first issue comes again.

help me to fix it dude.

Issues on CLeanScan

Your app currently targets API level 28 and must target at least API level 29 to ensure it is built on the latest APIs optimized for security and performance. Change your app's target API level to at least 29

Add manual brightness/contrast/saturation sliders to color correction screen

After scanning and cropping, on the screen that gives color correction options "Original," "Auto," "Grayscale," "B & W," would it be possible to add an optional slider for Contrast and Brightness, and ideally also for Saturation (in Original/Auto modes)? I find that the grayscale mode does not have enough contrast (i.e. too many levels), while black-and-white mode has too much contrast (i.e. only 2 levels). It would be nice for users to be able to control the brightness/contrast/saturation of the scan themselves. Thanks!

Feature Request: Embed OCR text to pdf

As this lovely app is capable of extracting text from scans, I suggest to take it to the next level and support embedding the extracted text back to the PDF.
I'm looking for the functionality OCRmyPDF offers (at the desktop).

Cropping issue

The scan fragment sometimes doesnot crop the image properly.
It usually leaves out some part on the right side.

While debugging I noticed that, X2 and X4 coordinates in getScannedBitmap function are not always correct.

Please have a look into it.

To debug, simply select any whatsapp image.

Scan naming doesn't rename the file

When naming or renaming a scan in the app, it's effectively listed with the chosen name but the file itself still has an auto-name: SCANNED_dd-mm-yyyy_hh-mm-ss.pdf
Would it be possible to change it by the selected name or to have the name after the date/time or date+category+name or to be able to choose how the file name is constructed form settings? Even better if the files could as well be sorted in sub-folder by category name it would be perfect for syncing the PDF scanner with a private server or cloud.
When I want to share the file it's a bit of a bummer to have this generic name and not the one I carefully entered for my document.

Native Memory leak bug

As soon as ScanActivity is opened, native memory leaks starts.

Staying on ScanActivity , Native memory consumption keeps increasing util the app crashes.

I think the issue is related to usage of OpenCV.

Please let me know how to fix it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.