kepeng1019 / smartpaperscan Goto Github PK
View Code? Open in Web Editor NEWthis is an android project write in kotlin which detect paper or rectangle by opencv, you can take a picture and crop it
License: Apache License 2.0
this is an android project write in kotlin which detect paper or rectangle by opencv, you can take a picture and crop it
License: Apache License 2.0
hello, i was using compile sdk version 28 and target sdk version 28, the app go well but google console needs version 29, when i change to 29 the app crash
With the preview I have a perfect rectangle, after the shot i have a triangle.
thanks
When I use this code and create library for xamarin it's not working cause i got an error in create the IScanView Interface.
Severity Code Description Project File Line Suppression State
Error CS7036 38 Active
There is no argument given that corresponds to the required formal parameter 'context' of 'ScanPresenter.ScanPresenter(Context, IScanViewProxy)' mPOS.Android C:\Users\tharinduD\Desktop\freedomv5\mPOS\mPOS.Android\MainActivity.cs
Hello, after shot the photo, I got the next activity going to a blank image.
I use your code for detecting a page and show the rectangle on paper and its work perfectly while background is black but if the background is white and paper also white then not able to draw the rectangle on paper
I tried runing the app on various different phones but not able view the images in the gallery of any of the phones
after each take picture default rect gets smaller
Hi
How can I add SmartPaperScan to xamarin forms?
Thanks
Hello , I want to use it but I don't know how to add this library to my project
E/SurfaceView: Exception configuring surface
java.lang.RuntimeException: setParameters failed
at android.hardware.Camera.native_setParameters(Native Method)
at android.hardware.Camera.setParameters(Camera.java:2102)
at com.pengke.paper.scanner.scan.ScanPresenter.initCamera(ScanPresenter.kt:124)
at com.pengke.paper.scanner.scan.ScanPresenter.surfaceCreated(ScanPresenter.kt:129)
at android.view.SurfaceView.updateSurface(SurfaceView.java:670)
at android.view.SurfaceView$2.onPreDraw(SurfaceView.java:143)
at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:977)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2474)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1460)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7183)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:949)
at android.view.Choreographer.doCallbacks(Choreographer.java:761)
at android.view.Choreographer.doFrame(Choreographer.java:696)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:935)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6669)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Camera is unstable, the preview works bizzare in diffrent phones
Hey,
I download your project and open in the android studio but it shows error when I build the project like this
Failed to resolve: support-compat
/AndroidRuntime: FATAL EXCEPTION: pool-1-thread-1
Process: com.pengke.paper.scanner, PID: 30656
io.reactivex.exceptions.OnErrorNotImplementedException: Camera is being used after Camera.release() was called
at io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept(Functions.java:704)
at io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept(Functions.java:701)
at io.reactivex.internal.observers.LambdaObserver.onError(LambdaObserver.java:77)
at io.reactivex.internal.observers.LambdaObserver.onNext(LambdaObserver.java:67)
at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.drainNormal(ObservableObserveOn.java:200)
at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.run(ObservableObserveOn.java:252)
at io.reactivex.internal.schedulers.ExecutorScheduler$ExecutorWorker$BooleanRunnable.run(ExecutorScheduler.java:261)
at io.reactivex.internal.schedulers.ExecutorScheduler$ExecutorWorker.run(ExecutorScheduler.java:226)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:764)
Caused by: java.lang.RuntimeException: Camera is being used after Camera.release() was called
at android.hardware.Camera.native_getParameters(Native Method)
at android.hardware.Camera.getParameters(Camera.java:2458)
at com.pengke.paper.scanner.scan.ScanPresenter$onPreviewFrame$1.accept(ScanPresenter.kt:185)
at com.pengke.paper.scanner.scan.ScanPresenter$onPreviewFrame$1.accept(ScanPresenter.kt:36)
at io.reactivex.internal.observers.LambdaObserver.onNext(LambdaObserver.java:63)
at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.drainNormal(ObservableObserveOn.java:200)
at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.run(ObservableObserveOn.java:252)
at io.reactivex.internal.schedulers.ExecutorScheduler$ExecutorWorker$BooleanRunnable.run(ExecutorScheduler.java:261)
at io.reactivex.internal.schedulers.ExecutorScheduler$ExecutorWorker.run(ExecutorScheduler.java:226)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:764)
你好请问如果由于角度问题导致高光,这种情况怎么处理呢?
我现在检测的结果是这样的
这个图在 threshold 时候 高光部分也被算进去了
When I try to run this project it shows following error. I can not run it
Error:Execution failed for task ':app:ndkBuild'.
A problem occurred starting process 'command '/media/vignes/Softwares/Ubuntu/Android/SDK/ndk-bundle/ndk-build.cmd''
I need to only detect rectangles.
Another thing the would be useful is reduce the detection speed, sometimes I do detect but with a tiny move the detection update to another one.
Can you please help me if possible ?
可以弄一个检测任何物品的吗 不一定非要是文档
Hello, can you add so e features like auto scan and auto crop ?
Class 'ScanPresenter' is not abstract and does not implement abstract member public abstract fun surfaceChanged(@nonnull p0: SurfaceHolder, p1: Int, p2: Int, p3: Int): Unit defined in android.view.SurfaceHolder.Callback
Hi
There is poor camera preview quality and image as well on some devices...in many devices it's working fine. Can you please help why it's happening...i think this is related to camera or device ratio.
Any help will be much appreciated.
Thanks
How can I edit labels like Auto, Manual, Edit Scan, Done ... etc.
Is there a way to start camera immediately (without screen shrink and slide up)?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.