Git Product home page Git Product logo

jhansireddy / androidscannerdemo Goto Github PK

View Code? Open in Web Editor NEW
1.1K 1.1K 472.0 164.24 MB

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.

License: MIT License

Java 20.18% Makefile 0.10% CMake 5.24% C 5.48% C++ 68.81% Objective-C 0.18%

androidscannerdemo's People

Contributors

bkottapally avatar gsanthosh91 avatar jhansireddy 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  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

androidscannerdemo's Issues

Error

Hello. This is very good example. But there is one error. It not works if android version is biggger then 4.4.2. How to improve it. It some times works but simetimes says:
9073-9073/com.scanner.demo E/ActivityThread﹕ Performing stop of activity that is not resumed: {com.scanner.demo/com.scanlibrary.ScanActivity}
java.lang.RuntimeException: Performing stop of activity that is not resumed: {com.scanner.demo/com.scanlibrary.ScanActivity}
at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:3820)
at android.app.ActivityThread.handleStopActivity(ActivityThread.java:3908)
at android.app.ActivityThread.access$1200(ActivityThread.java:177)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5942)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)

Please help me to correct it. Email address [email protected]

Automatic edge detection

Any plans for automatic edge detection? Or how to do it using opencv? Can you give some directions? Thanks.

İmageview rotate

Hi,
ScanFragment screen imageview rotate is 90 why ? I want to set image normal rotate in imageview . I rotate but cropping was wrong . How can I rotate imageview ?
capture

How to save the edited image

I'm using your repository

I have tried to save the edited image but I have not succeeded.

Within which file is the action configured?

Because only the original image is saved in the directory and with the name defined but I have not found the settings to save the edited image

Improve APK size

Hi,

I came across this project and I wanted to include it in my app, but I was wondering if there's a way to improve the APK size. Creating a simple app with a button and the scanlibrary creates a 22.5MB apk. Is there a way to improve that?

Thanks

Edge dragging is hard to do

After the scanning if no object detected from the image , then the polygonal view overlay points will be on the edges of the images. On that point it is so hard to move the corner points through edge..

Not working for devices with a 64bit processor

Hello,

The actual implementation of the ScanLibrary doesn't work for devices with a 64 bit processor, simply because OpenCV 2.4.11 doesn't support 64 bit platforms.
@neoscreenager has made a fork and a pull request with the OpenCV 3.1 version, which supports all platforms. You should try to integrate his modifications.

However, there is a problem with his fork : the OpenCV library load management. It seems that we have to use the OpenCVLoader class to load the library now, otherwise it will crash saying it didn't find the library. I described the solution to this problem in his pull request.

Thanks for your work ;)

libScanner.so native library not on x86 architecture

Hello,

The native library libScanner.so is only available for the ARM architecture, is it possible to compile it for the x86 architecture too please ?
Otherwise, the module makes the application crashes this way on some x86 android emulators :

java.lang.ExceptionInInitializerError
Caused by: java.lang.UnsatisfiedLinkError: Couldn't load Scanner: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:365)
at java.lang.System.loadLibrary(System.java:535)

I don't it is also crashes on real x86 hardware devices, but I suspect it.
It will be great to be compatible with x86 devices too ;)

Thanks in advance

Saving image files with unexpected behavior

I am trying to use this library to save the scanned bitmap files and I have not been successful in determining why they are either not saving or saving 3 times(in some devices it saves the picture taken in landscape, portrait, and scanned) I just added code to the main activity file like so:

@Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        if (requestCode == REQUEST_CODE && resultCode == Activity.RESULT_OK) {
            Uri uri = data.getExtras().getParcelable(ScanConstants.SCANNED_RESULT);
            Bitmap bitmap = null;
            try {
                bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), uri);
                getContentResolver().delete(uri, null, null);
                saveImage(bitmap);
                scannedImageView.setImageBitmap(bitmap);
            } catch (IOException e) {
                e.printStackTrace();
            } catch(Exception e){
                e.printStackTrace();
            }
        }
    }

And saving them with :

private void saveImage(Bitmap finalBitmap) {
        String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date());
        String imageFileName = "JPEG_" + timeStamp + "_";
        String root = Environment.getExternalStorageDirectory().toString();
        File myDir = new File(root);
        myDir.mkdirs();
        String fname = "Image-" + imageFileName+ ".jpg";
        File file = new File(myDir, fname);
        if (file.exists()) file.delete();
        Log.i("LOAD", root + fname);
        try {
            FileOutputStream out = new FileOutputStream(file);
            finalBitmap.compress(Bitmap.CompressFormat.JPEG, 90, out);
            out.flush();
            out.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

This is more of a question than an issue I believe, but is there any way around this? Thank you for the library by the way! It is pretty awesome!

LibScanner.so

I was trying to modify the code to improve the edge detection algorithms but I those methods are not accessible as they are being used through libScanner.so. Is that an open source library?

Automatic Edge detection does not work all the time

After using this library, I find that automatic edge detection does not work all the time. It works only when I capture the image of the document at a certain angle.

I am pretty much new to OpenCV. Can you suggest something to improve the automatic edge detection feature??

OpenCV version

Hi! My name is Thomas! I think this is a very good library! I have a question! Which version of openCV use? I can use newest OpenCV 3.1?

OpenCV import

Hey,
i wanted to test your sample project.
Did the same sample project as you with your scanLibrary in it.
The problem ist wenn ich compile it, i am becoming the error "Failure [INSTALL_FAILED_NO_MATCHING_ABIS]".
It is probably because i need to import openCV. But i dont know what you mean with that and what i must do.
Until i search hours, i thought i would just ask you.
Because i didnt found anything of opencv in your github.
Thanks in advance.

Libpng error while make release on Google Play

Libpng Error

I made one App like scanner in this i use this library, It works fine but when i make signed and upload it on Google Play it gives Libpng error.

I already updates Libpng library version 1.6.xx. I also updated OpenCv dependancy version 3.1. Still I Got this Error. plz solve this and update library
libpng_error

Update Opencv

How to update opencv sdk in this library to remove libpng issues?

i face problem to run this project

Plz tell me how i used it step by step tell me i used but app is unfortunately stop
capture
it is possible you tell me all step how it import in eclipse and how Opencv library used and How scan library used i has no any idea about it please tell me
actually my final project is same as its last week to submit it .....................

INSTALL_FAILED_CONFLICTING_PROVIDER

Installation failed with message Failed to finalize session : INSTALL_FAILED_CONFLICTING_PROVIDER: Package couldn't be installed in /data/app/com.karanm.scandemo-1: Can't install because provider name com.scanlibrary.provider (in package com.karanm.scandemo) is already used by com.scanner.demo.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.

WARNING: Uninstalling will remove the application data!

Do you want to uninstall the existing application?

ScanDemoExample

getScannedBitmap, getGrayBitmap, getMagicColorBitmap ,getBWBitmap , getPoints , they are in red
the error is Cannot resolve corresponding JNI function Java_com_scanlibrary_ScanActivity_getGrayBitmap
please can you help me

Libpng library Vulnerability issue

I'm using the scanner for my project and when i try to upload the apk in developer console, google isn't allowing to upload the apk & message as follows,
We rejected xxxx , with package name com.xx.xxx, for violating our Malicious Behavior or User Data policy. If you submitted an update, the previous version of your app is still available on Google Play.

This app uses software that contains security vulnerabilities for users or allows the collection of user data without proper disclosure.

Below is the list of issues and the corresponding APK versions that were detected in your recent submission. Please upgrade your app(s) as soon as possible and increment the version number of the upgraded APK.

Could anyone help me to resolve this.

Unable to save the capturing and crop image

hello @nilasissen,

I am using your repository downloaded from https://github.com/nilasissen/AndroidScannerDemo .
But here when i was capture image it doesn't save and it will not process for cropping image.
I got some info through debugging see below,
When I was run application for first time showing below error

Failed to insert image
                                                            java.io.FileNotFoundException: No such file or directory
                                                                at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(DatabaseUtils.java:144)
                                                                at android.content.ContentProviderProxy.openAssetFile(ContentProviderNative.java:621)
                                                                at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:960)
                                                                at android.content.ContentResolver.openOutputStream(ContentResolver.java:702)
                                                                at android.content.ContentResolver.openOutputStream(ContentResolver.java:678)
                                                                at android.provider.MediaStore$Images$Media.insertImage(MediaStore.java:965)
                                                                at com.scanlibrary.Utils.getUri(Utils.java:23)
                                                                at com.scanlibrary.PickImageFragment.postImagePick(PickImageFragment.java:146)
                                                                at com.scanlibrary.PickImageFragment.onActivityResult(PickImageFragment.java:141)
                                                                at android.app.Activity.dispatchActivityResult(Activity.java:6494)
                                                                at android.app.ActivityThread.deliverResults(ActivityThread.java:3716)
                                                                at android.app.ActivityThread.handleSendResult(ActivityThread.java:3763)
                                                                at android.app.ActivityThread.-wrap16(ActivityThread.java)
                                                                at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1403)
                                                                at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                at android.os.Looper.loop(Looper.java:148)
                                                                at android.app.ActivityThread.main(ActivityThread.java:5443)
                                                                at java.lang.reflect.Method.invoke(Native Method)
                                                                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
                                                                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)

Then again i am trying it will show below errors

08-20 14:35:17.604 3428-3428/com.fueblabs.smarthome.cheque_scandemo W/System.err: java.lang.NullPointerException: uri
08-20 14:35:17.614 3428-3428/com.fueblabs.smarthome.cheque_scandemo W/System.err:     at com.android.internal.util.Preconditions.checkNotNull(Preconditions.java:60)
08-20 14:35:17.614 3428-3428/com.fueblabs.smarthome.cheque_scandemo W/System.err:     at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:922)
08-20 14:35:17.614 3428-3428/com.fueblabs.smarthome.cheque_scandemo W/System.err:     at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:865)
08-20 14:35:17.614 3428-3428/com.fueblabs.smarthome.cheque_scandemo W/System.err:     at com.scanlibrary.PickImageFragment.getBitmap(PickImageFragment.java:156)
08-20 14:35:17.614 3428-3428/com.fueblabs.smarthome.cheque_scandemo W/System.err:     at com.scanlibrary.PickImageFragment.onActivityResult(PickImageFragment.java:128)
08-20 14:35:17.614 3428-3428/com.fueblabs.smarthome.cheque_scandemo W/System.err:     at android.app.Activity.dispatchActivityResult(Activity.java:6494)
08-20 14:35:17.614 3428-3428/com.fueblabs.smarthome.cheque_scandemo W/System.err:     at android.app.ActivityThread.deliverResults(ActivityThread.java:3716)
08-20 14:35:17.614 3428-3428/com.fueblabs.smarthome.cheque_scandemo W/System.err:     at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3107)
08-20 14:35:17.614 3428-3428/com.fueblabs.smarthome.cheque_scandemo W/System.err:     at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3152)
08-20 14:35:17.614 3428-3428/com.fueblabs.smarthome.cheque_scandemo W/System.err:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2495)
08-20 14:35:17.614 3428-3428/com.fueblabs.smarthome.cheque_scandemo W/System.err:     at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4098)
08-20 14:35:17.614 3428-3428/com.fueblabs.smarthome.cheque_scandemo W/System.err:     at android.app.ActivityThread.-wrap15(ActivityThread.java)
08-20 14:35:17.614 3428-3428/com.fueblabs.smarthome.cheque_scandemo W/System.err:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1360)
08-20 14:35:17.614 3428-3428/com.fueblabs.smarthome.cheque_scandemo W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:102)
08-20 14:35:17.614 3428-3428/com.fueblabs.smarthome.cheque_scandemo W/System.err:     at android.os.Looper.loop(Looper.java:148)
08-20 14:35:17.614 3428-3428/com.fueblabs.smarthome.cheque_scandemo W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:5443)
08-20 14:35:17.614 3428-3428/com.fueblabs.smarthome.cheque_scandemo W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
08-20 14:35:17.614 3428-3428/com.fueblabs.smarthome.cheque_scandemo W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
08-20 14:35:17.614 3428-3428/com.fueblabs.smarthome.cheque_scandemo W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)

How I could resolve this issue.
System Configurations:
Android Tool : Android studio 2.3.3
Java : Java 1.8
os : Windows 10 (64 bit).

Thanks and Regards,

Amar.

couldn't find "libopencv_java3.so

Hello Team,
I am facing with this issue when i run my app in android phone with cpu 64.Please provide the solution.

" java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader [DexPathList[[zip file "/data/..../base.apk"],nativeLibraryDirectories=[/data/......./lib/arm64, /data/..../base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]] couldn't find "libopencv_java3.so" "

OpenCV

Which OpenCV version was used?

Quality

how to change Quality? because my images is bad quality

Result Fragment not showing cropped image sometimes

Am creating a document scanning application, using opencv and scan library, in this am trying to crop images using scan library which detects the edges of the document for croping, the crop is happening successfully but when displaying the cropped image in a image view sometimes its displaying and sometimes not displaying the cropped images rather it displays a blank white color image, I here by post the images which is being displayed to me, plz help me to resolve this error

this my cropped image result

error_img

(ScanActivity.java) does not started

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.example.vikast.testproject-2/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]] couldn't find "libopencv_java3.so"

Integration error on scanlibrary

I have download your AndroidScannerDemo it is run success fully but question is here to when i add scanlibrary in my project it is give me error is :

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.example.vikast.testproject-2/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]] couldn't find "libopencv_java3.so"

thanks you.
Umesh Ahir.

Unfortunately scan library has stopped

[2016-01-05 00:11:38 - ScanActivity] ------------------------------
[2016-01-05 00:11:38 - ScanActivity] Android Launch!
[2016-01-05 00:11:38 - ScanActivity] adb is running normally.
[2016-01-05 00:11:38 - ScanActivity] No Launcher activity found!
[2016-01-05 00:11:38 - ScanActivity] The launch will only sync the application package on the device!
[2016-01-05 00:11:38 - ScanActivity] Performing sync
[2016-01-05 00:11:39 - ScanActivity] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2016-01-05 00:11:43 - ScanActivity] WARNING: Application does not specify an API level requirement!
[2016-01-05 00:11:43 - ScanActivity] Device API version is 17 (Android 4.2.1)
[2016-01-05 00:11:43 - ScanActivity] Uploading ScanActivity.apk onto device '7DYPCIKVEEPN5PHE'
[2016-01-05 00:11:44 - ScanActivity] Installing ScanActivity.apk...
[2016-01-05 00:11:53 - ScanActivity] Success!
[2016-01-05 00:11:53 - ScanActivity] \ScanActivity\bin\ScanActivity.apk installed on device
[2016-01-05 00:11:53 - ScanActivity] Done!
[2016-01-05 00:14:16 - ScanActivity] ------------------------------
[2016-01-05 00:14:16 - ScanActivity] Android Launch!
[2016-01-05 00:14:16 - ScanActivity] adb is running normally.
[2016-01-05 00:14:16 - ScanActivity] No Launcher activity found!
[2016-01-05 00:14:16 - ScanActivity] The launch will only sync the application package on the device!
[2016-01-05 00:14:16 - ScanActivity] Performing sync
[2016-01-05 00:14:17 - ScanActivity] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2016-01-05 00:14:19 - ScanActivity] Uploading ScanActivity.apk onto device '7DYPCIKVEEPN5PHE'
[2016-01-05 00:14:20 - ScanActivity] Installing ScanActivity.apk...
[2016-01-05 00:14:28 - ScanActivity] Success!
[2016-01-05 00:14:29 - ScanActivity] \ScanActivity\bin\ScanActivity.apk installed on device
[2016-01-05 00:14:29 - ScanActivity] Done!
[2016-01-05 00:16:51 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Parser exception for C:\Users\Ali Hassan\Downloads\AndroidScannerDemo-master\AndroidScannerDemo-master\ScanDemoExample\scanlibrary\src\main\AndroidManifest.xml: The element type "activitys" must be terminated by the matching end-tag "".
[2016-01-05 00:16:51 - ScanActivity] Error in an XML file: aborting build.
[2016-01-05 00:16:54 - ScanActivity] Parser exception for /ScanActivity/AndroidManifest.xml: The element type "activitys" must be terminated by the matching end-tag "".
[2016-01-05 00:17:29 - ScanActivity] ------------------------------
[2016-01-05 00:17:29 - ScanActivity] Android Launch!
[2016-01-05 00:17:29 - ScanActivity] adb is running normally.
[2016-01-05 00:17:29 - ScanActivity] Performing com.scanlibrary.ScanActivity activity launch
[2016-01-05 00:17:29 - ScanActivity] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2016-01-05 00:17:46 - ScanActivity] Uploading ScanActivity.apk onto device '7DYPCIKVEEPN5PHE'
[2016-01-05 00:17:47 - ScanActivity] Installing ScanActivity.apk...
[2016-01-05 00:17:55 - ScanActivity] Success!
[2016-01-05 00:17:55 - ScanActivity] Starting activity com.scanlibrary.ScanActivity on device 7DYPCIKVEEPN5PHE
[2016-01-05 00:17:57 - ScanActivity] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.scanlibrary/.ScanActivity }
[2016-01-05 00:19:39 - ScanActivity] ------------------------------
[2016-01-05 00:19:39 - ScanActivity] Android Launch!
[2016-01-05 00:19:39 - ScanActivity] adb is running normally.
[2016-01-05 00:19:39 - ScanActivity] Performing com.scanlibrary.ScanActivity activity launch
[2016-01-05 00:19:39 - ScanActivity] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2016-01-05 00:19:43 - ScanActivity] Uploading ScanActivity.apk onto device '7DYPCIKVEEPN5PHE'
[2016-01-05 00:19:44 - ScanActivity] Installing ScanActivity.apk...
[2016-01-05 00:19:52 - ScanActivity] Success!
[2016-01-05 00:19:52 - ScanActivity] Starting activity com.scanlibrary.ScanActivity on device 7DYPCIKVEEPN5PHE
[2016-01-05 00:19:53 - ScanActivity] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.scanlibrary/.ScanActivity }
[2016-01-05 00:20:16 - ScanActivity] ------------------------------
[2016-01-05 00:20:16 - ScanActivity] Android Launch!
[2016-01-05 00:20:16 - ScanActivity] adb is running normally.
[2016-01-05 00:20:16 - ScanActivity] Performing com.scanlibrary.ScanActivity activity launch
[2016-01-05 00:20:16 - ScanActivity] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2016-01-05 00:20:19 - ScanActivity] Uploading ScanActivity.apk onto device '7DYPCIKVEEPN5PHE'
[2016-01-05 00:20:20 - ScanActivity] Installing ScanActivity.apk...
[2016-01-05 00:20:27 - ScanActivity] Success!
[2016-01-05 00:20:27 - ScanActivity] Starting activity com.scanlibrary.ScanActivity on device 7DYPCIKVEEPN5PHE
[2016-01-05 00:20:27 - ScanActivity] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.scanlibrary/.ScanActivity }
[2016-01-05 00:20:35 - ScanActivity] ------------------------------
[2016-01-05 00:20:35 - ScanActivity] Android Launch!
[2016-01-05 00:20:35 - ScanActivity] adb is running normally.
[2016-01-05 00:20:35 - ScanActivity] Performing com.scanlibrary.ScanActivity activity launch
[2016-01-05 00:20:36 - ScanActivity] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2016-01-05 00:20:46 - ScanActivity] Launching a new emulator with Virtual Device 'Nexus_5_API_23_x86'
[2016-01-05 00:22:11 - Emulator] emulator: device fd:636
[2016-01-05 00:22:11 - Emulator]
[2016-01-05 00:22:11 - Emulator] emulator: The memory needed by this AVD exceeds the max specified in your HAXM configuration.
[2016-01-05 00:22:11 - Emulator] emulator: AVD RAM size = 1536 MB
[2016-01-05 00:22:11 - Emulator] emulator: HAXM max RAM size = 512 MB
[2016-01-05 00:22:11 - Emulator] emulator: You might want to adjust your AVD RAM size and/or HAXM configuration to run in fast virt mode.
[2016-01-05 00:22:11 - Emulator]
[2016-01-05 00:22:11 - Emulator] HAXM is not working and emulator runs in emulation mode
[2016-01-05 00:22:14 - Emulator] creating window 43 59 329 583
[2016-01-05 00:22:14 - Emulator] emulator: emulator window was out of view and was recentered
[2016-01-05 00:22:14 - Emulator]
[2016-01-05 00:22:15 - ScanActivity] New emulator found: emulator-5554
[2016-01-05 00:22:15 - ScanActivity] Waiting for HOME ('android.process.acore') to be launched...
[2016-01-05 00:22:18 - Emulator] emulator: UpdateCheck: current version '24.4.1', last version '24.4.1'
[2016-01-05 00:26:59 - ScanActivity] emulator-5554 disconnected! Cancelling 'com.scanlibrary.ScanActivity activity launch'!
[2016-01-05 00:27:18 - ScanActivity] ------------------------------
[2016-01-05 00:27:18 - ScanActivity] Android Launch!
[2016-01-05 00:27:18 - ScanActivity] adb is running normally.
[2016-01-05 00:27:18 - ScanActivity] Performing com.scanlibrary.ScanActivity activity launch
[2016-01-05 00:27:26 - ScanActivity] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2016-01-05 00:27:33 - ScanActivity] Uploading ScanActivity.apk onto device '7DYPCIKVEEPN5PHE'
[2016-01-05 00:27:35 - ScanActivity] Installing ScanActivity.apk...
[2016-01-05 00:27:39 - ScanActivity] Success!
[2016-01-05 00:27:39 - ScanActivity] Starting activity com.scanlibrary.ScanActivity on device 7DYPCIKVEEPN5PHE
[2016-01-05 00:27:39 - ScanActivity] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.scanlibrary/.ScanActivity }
[2016-01-05 00:46:21 - OpenCV Sample - face-detection] ------------------------------
[2016-01-05 00:46:21 - OpenCV Sample - face-detection] Android Launch!
[2016-01-05 00:46:21 - OpenCV Sample - face-detection] adb is running normally.
[2016-01-05 00:46:21 - OpenCV Sample - face-detection] Performing org.opencv.samples.facedetect.FdActivity activity launch
[2016-01-05 00:46:22 - OpenCV Sample - face-detection] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2016-01-05 00:46:25 - OpenCV Sample - face-detection] Uploading OpenCV Sample - face-detection.apk onto device '7DYPCIKVEEPN5PHE'
[2016-01-05 00:46:25 - OpenCV Sample - face-detection] Installing OpenCV Sample - face-detection.apk...
[2016-01-05 00:46:27 - OpenCV Sample - face-detection] Success!
[2016-01-05 00:46:28 - OpenCV Sample - face-detection] Starting activity org.opencv.samples.facedetect.FdActivity on device 7DYPCIKVEEPN5PHE
[2016-01-05 00:46:28 - OpenCV Sample - face-detection] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=org.opencv.samples.facedetect/.FdActivity }
[2016-01-05 00:48:51 - ScanActivity] ------------------------------
[2016-01-05 00:48:51 - ScanActivity] Android Launch!
[2016-01-05 00:48:51 - ScanActivity] adb is running normally.
[2016-01-05 00:48:51 - ScanActivity] Performing com.scanlibrary.ScanActivity activity launch
[2016-01-05 00:48:52 - ScanActivity] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2016-01-05 00:48:54 - ScanActivity] WARNING: Application does not specify an API level requirement!
[2016-01-05 00:48:54 - ScanActivity] Device API version is 17 (Android 4.2.1)
[2016-01-05 00:48:54 - ScanActivity] Uploading ScanActivity.apk onto device '7DYPCIKVEEPN5PHE'
[2016-01-05 00:48:55 - ScanActivity] Installing ScanActivity.apk...
[2016-01-05 00:49:01 - ScanActivity] Success!
[2016-01-05 00:49:01 - ScanActivity] Starting activity com.scanlibrary.ScanActivity on device 7DYPCIKVEEPN5PHE
[2016-01-05 00:49:01 - ScanActivity] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.scanlibrary/.ScanActivity }

how to get 8-bit grayscale image

Hi,

We are getting 24-bit grayscale image from scan library.

We would like to get 8-bit grayscale image.

Please let us know how to configure scan library such that we get 8-bit grayscale image or if there is any other alternative.

Thanks.

Not opening ScanActivity

Hello Jhansireddy, as i have simple load your project in android studio, and i simply run your sample. at that time, your camera and Media button works fine. but when i clicked on scan then scan, scanActivity not opened. and i got below logs. please help me to make it runnable.

D/dalvikvm: Trying to load lib /data/app-lib/com.scanner.demo-1/libopencv_java3.so 0x42abf600
05-11 18:46:52.769 16913-16913/com.scanner.demo D/dalvikvm: Added shared lib /data/app-lib/com.scanner.demo-1/libopencv_java3.so 0x42abf600
05-11 18:46:52.769 16913-16913/com.scanner.demo D/dalvikvm: Trying to load lib /data/app-lib/com.scanner.demo-1/libScanner.so 0x42abf600
05-11 18:46:52.769 16913-16913/com.scanner.demo D/dalvikvm: Added shared lib /data/app-lib/com.scanner.demo-1/libScanner.so 0x42abf600
05-11 18:46:52.769 16913-16913/com.scanner.demo D/dalvikvm: No JNI_OnLoad found in /data/app-lib/com.scanner.demo-1/libScanner.so 0x42abf600, skipping init

More than one file was found with OS independent

Error:Execution failed for task ':app:transformNativeLibsWithMergeJniLibsForDebug'.

More than one file was found with OS independent path 'lib/armeabi-v7a/libopencv_java3.so'

When I run the code

Build for x86

Hello,

libScanner.so
How build this library for x86 platform?

Rotate image

Hello,
The example is working fine. How do I rotate the image? What is the api to use for rotation?

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.