Giter Club home page Giter Club logo

liveedgedetection's People

Contributors

adityaarora1 avatar adityaarorasap avatar cherendeen-envative avatar udayraj123 avatar vinisauter avatar winnersanchez 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

liveedgedetection's Issues

Application Crash

after building the app without any changes the app is being stopped when capturing the picture. So i tried the sample app you provided. It did the same thing with two different devices (Galaxy S4, Galaxy Note 3) along with Pixel 2 (emulator)

FATAL EXCEPTION: main on Moto Xstyle Running Android 7.0

Process: com.adityaarora.liveedgedetection, PID: 10440
java.lang.RuntimeException: takePicture failed
at android.hardware.Camera.native_takePicture(Native Method)
at android.hardware.Camera.takePicture(Camera.java:1461)
at android.hardware.Camera.takePicture(Camera.java:1406)
at com.adityaarora.liveedgedetection.view.ScanSurfaceView.autoCapture(ScanSurfaceView.java:313)
at com.adityaarora.liveedgedetection.view.ScanSurfaceView.access$500(ScanSurfaceView.java:43)
at com.adityaarora.liveedgedetection.view.ScanSurfaceView$3.onTick(ScanSurfaceView.java:296)
at android.os.CountDownTimer$1.handleMessage(CountDownTimer.java:133)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6123)

    at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)`

Manifest merger failed with multiple errors

If in my project set another icon(that is, not default icon), then rad studio say that "in manifest multiple error", what would he need to work remove icon from module "LiveEdgeDetection" manifest. thx for module, bro

Android implementation doesn't work

I added :
"implementation 'com.github.adityaarora1:LiveEdgeDetection:1.0.6' "
And that doesn't work, I have this message : "Failed to resolve: com.github.adityaarora1:LiveEdgeDetection:1.0.6"

I don't want to add the entire folder in my project , It's maybe a versioning problem ?

Runtime error library not found

Hi

I added library into dependency and implemented startActivityForResult as in demo but in runtime i have exception
E/vndksupport: Could not load vendor/lib/egl/libGLES_mali_v2.so from sphal namespace: dlopen failed: library "vendor/lib/egl/libGLES_mali_v2.so" not found.
Sample project working fine, don't understand why it is happens
Device: Android 8, Huawei P10

setParameters failed error

I tried integrating the library in my project by adding the dependencies in both root gradle and app gradle file.

My config is:
compileSdk 28
minSdkVersion 21
targetSdkVersion 28

I followed the usage guide which directs to a new Intent with the camera view and I got this error:

05-30 21:26:12.982 26179-26179/com.adityaarora.liveedgedetection E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.adityaarora.liveedgedetection, PID: 26179
    java.lang.RuntimeException: setParameters failed
        at android.hardware.Camera.native_setParameters(Native Method)
        at android.hardware.Camera.setParameters(Camera.java:1878)
        at com.adityaarora.liveedgedetection.view.ScanSurfaceView.surfaceChanged(ScanSurfaceView.java:137)
        at android.view.SurfaceView.updateWindow(SurfaceView.java:594)
        at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:177)
        at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:944)
        at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2055)
        at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1107)
        at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6013)
        at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
        at android.view.Choreographer.doCallbacks(Choreographer.java:670)
        at android.view.Choreographer.doFrame(Choreographer.java:606)
        at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
        at android.os.Handler.handleCallback(Handler.java:739)
        at android.os.Handler.dispatchMessage(Handler.java:95)
        at android.os.Looper.loop(Looper.java:148)
        at android.app.ActivityThread.main(ActivityThread.java:5417)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
05-30 21:26:28.387 26179-26185/com.adityaarora.liveedgedetection I/art: Debugger is no longer active

I also tried to compile the cloned repo and run it but still got the same error.
Any inputs about this?

Thanks!

App crash on latest Patch merge

Stacktrace I don't know why this is happening
this line is causing crash

// Imgproc.Canny(originalMat, originalMat, ScanConstants.CANNY_THRESH_U, ScanConstants.CANNY_THRESH_L);

2020-01-20 02:10:49.948 23135-23135/? E/veedgedetectio: Unknown bits set in runtime_flags: 0x8000
2020-01-20 02:10:50.854 23135-23135/com.adityaarora.liveedgedetection E/veedgedetectio: No implementation found for void org.opencv.imgproc.Imgproc.Canny_3(long, long, double, double) (tried Java_org_opencv_imgproc_Imgproc_Canny_13 and Java_org_opencv_imgproc_Imgproc_Canny_13__JJDD)
2020-01-20 02:10:50.855 23135-23135/com.adityaarora.liveedgedetection E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.adityaarora.liveedgedetection, PID: 23135
    java.lang.UnsatisfiedLinkError: No implementation found for void org.opencv.imgproc.Imgproc.Canny_3(long, long, double, double) (tried Java_org_opencv_imgproc_Imgproc_Canny_13 and Java_org_opencv_imgproc_Imgproc_Canny_13__JJDD)
        at org.opencv.imgproc.Imgproc.Canny_3(Native Method)
        at org.opencv.imgproc.Imgproc.Canny(Imgproc.java:1104)
        at com.adityaarora.liveedgedetection.util.ScanUtils.detectLargestQuadrilateral(ScanUtils.java:359)
        at com.adityaarora.liveedgedetection.view.ScanSurfaceView$1.onPreviewFrame(ScanSurfaceView.java:182)
        at android.hardware.Camera$EventHandler.handleMessage(Camera.java:1221)
        at android.os.Handler.dispatchMessage(Handler.java:107)
        at android.os.Looper.loop(Looper.java:214)
        at android.app.ActivityThread.main(ActivityThread.java:7356)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)

App Crashes on Camera Open

java.lang.UnsatisfiedLinkError: No implementation found for void org.opencv.imgproc.Imgproc.Canny_3(long, long, double, double) (tried Java_org_opencv_imgproc_Imgproc_Canny_13 and Java_org_opencv_imgproc_Imgproc_Canny_13__JJDD)

java.lang.UnsatisfiedLinkError: No implementation found for void org.opencv.imgproc.Imgproc.Canny_3(long, long, double, double) (tried Java_org_opencv_imgproc_Imgproc_Canny_13 and Java_org_opencv_imgproc_Imgproc_Canny_13__JJDD)
at org.opencv.imgproc.Imgproc.Canny_3(Native Method)
at org.opencv.imgproc.Imgproc.Canny(Imgproc.java:1104)
at com.adityaarora.liveedgedetection.util.ScanUtils.detectLargestQuadrilateral(ScanUtils.java:359)
at com.adityaarora.liveedgedetection.view.ScanSurfaceView$1.onPreviewFrame(ScanSurfaceView.java:182)
at android.hardware.Camera$EventHandler.handleMessage(Camera.java:1438)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6863)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
2020-02-01 18:12:45.429 1883-1883/com.jipl.storedge E/UncaughtException: java.lang.UnsatisfiedLinkError: No implementation found for void org.opencv.imgproc.Imgproc.Canny_3(long, long, double, double) (tried Java_org_opencv_imgproc_Imgproc_Canny_13 and Java_org_opencv_imgproc_Imgproc_Canny_13__JJDD)
at org.opencv.imgproc.Imgproc.Canny_3(Native Method)
at org.opencv.imgproc.Imgproc.Canny(Imgproc.java:1104)
at com.adityaarora.liveedgedetection.util.ScanUtils.detectLargestQuadrilateral(ScanUtils.java:359)
at com.adityaarora.liveedgedetection.view.ScanSurfaceView$1.onPreviewFrame(ScanSurfaceView.java:182)
at android.hardware.Camera$EventHandler.handleMessage(Camera.java:1438)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6863)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

Can not resolve when sync project

I've already add maven { url "https://jitpack.io" }
and implementation 'com.github.adityaarora1:LiveEdgeDetection:1.0.6' in my project.

But everytime running sync, it kept showing
Failed to resolve: com.github.adityaarora1:LiveEdgeDetection:1.0.6

Support for newer versions

I am trying to use this on Api version 28 but the camera seems not to be working. Can you suggest the possible solution?Camera is just black/white screen

Bad quality of image

Hi
After the photo is taken it is have poor quality, how to improve the quality?
Impossible to read text

Auto Focus?

Hi,
Can this app identify if image is blurred and also make use of autofocus?

use this in landscape mode

i want use it in lanscape mode...in change in ScanActivity landscape

like
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);

but it not worked proper...wht is doing change for landscape?

Can't run project

Execution failed for task ':app:packageDebug'.

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
com.android.ide.common.signing.KeytoolException: Failed to read key AndroidDebugKey from store "C:\Users\yosrr.android\debug.keystore": Invalid keystore format

Access denied finding property

Hi, it gives
"Access denied finding property "vendor.camera.aux.packagelist"
then
"No implementation found for void org.opencv.imgproc.Imgproc.Canny_3"
can you help me?

Is it possible to enable reject button on cropping screen?

Is it possible or do you have an existing setting to make that button visible? I imported your project by gradle and only the check button appears on the cropping screen unlike when I downloaded your whole git project the reject button appears when I run it.
You have a reject button here: https://github.com/adityaarora1/LiveEdgeDetection/blob/master/liveedgedetection/src/main/res/layout/activity_scan.xml

I wanted to restart scanning when the user taps on reject.

Build Error for V1.1 and 1.0.6

There is an error on Jitpack.io for ALL builds. But the latest one is also having the same error on the build.log file. Error is stated below:
java.lang.IllegalStateException: compileSdkVersion is not specified.

For more info look at the build log: https://jitpack.io/com/github/adityaarora1/LiveEdgeDetection/v1.1/build.log

For version 1.0.6 the issue is:

  • What went wrong:
    Execution failed for task ':liveedgedetection:transformNativeLibsWithStripDebugSymbolForRelease'.

A problem occurred starting process 'command '/opt/android-sdk-linux/ndk-bundle/toolchains/mips64el-linux-android/prebuilt/linux-x86_64/bin/mips64el-linux-android-strip''

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

  • Get more help at https://help.gradle.org

BUILD FAILED in 2s
30 actionable tasks: 28 executed, 2 up-to-date
Build tool exit code: 0
Looking for artifacts...
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Dhttps.protocols=TLSv1.2
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Dhttps.protocols=TLSv1.2
Looking for pom.xml in build directory and ~/.m2
2019-06-24T20:26:59.913041838Z
Exit code: 0

ERROR: No build artifacts found

For more info: https://jitpack.io/com/github/adityaarora1/LiveEdgeDetection/1.0.6/build.log

API 28 Live Preview Issue

On Android 9 the camera preview shows a white screen and not the camera feed. The doc detection still works however.

device-2018-09-26-125054

How to use this library

Hi, I've tried to use this library with gradle but it cant find any of the artefacts from Jitpack.io, how can I integrate it into my project?

Thanks

java.lang.RuntimeException: takePicture failed

04-13 12:45:29.958 19143-19143/com.adityaarora.liveedgedetection E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.adityaarora.liveedgedetection, PID: 19143
java.lang.RuntimeException: takePicture failed
at android.hardware.Camera.native_takePicture(Native Method)
at android.hardware.Camera.takePicture(Camera.java:1543)
at android.hardware.Camera.takePicture(Camera.java:1485)
at com.adityaarora.liveedgedetection.view.ScanSurfaceView.autoCapture(ScanSurfaceView.java:313)
at com.adityaarora.liveedgedetection.view.ScanSurfaceView.access$500(ScanSurfaceView.java:43)
at com.adityaarora.liveedgedetection.view.ScanSurfaceView$3.onTick(ScanSurfaceView.java:296)
at android.os.CountDownTimer$1.handleMessage(CountDownTimer.java:133)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:163)
at android.app.ActivityThread.main(ActivityThread.java:6205)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)

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.