truiton / mobilevisionapi Goto Github PK
View Code? Open in Web Editor NEWHome Page: http://www.truiton.com/2017/05/introducing-android-mobile-vision-api/
License: Apache License 2.0
Home Page: http://www.truiton.com/2017/05/introducing-android-mobile-vision-api/
License: Apache License 2.0
imageUri = FileProvider.getUriForFile(MainActivity.this,
BuildConfig.APPLICATION_ID + ".provider", photo);
context = MainActivity@5033
authority = be.avondschool.vi.ocrtestappgooglemobilevisionapi
photo = /storage/emulated/0/picture.jpg
E/AndroidRuntime: FATAL EXCEPTION: main
Process: be.avondschool.vi.ocrtestappgooglemobilevisionapi, PID: 21179
java.lang.RuntimeException: Failure delivering result ResultInfo{who=@android:requestPermissions:, request=20, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS (has extras) }} to activity {be.avondschool.vi.ocrtestappgooglemobilevisionapi/be.avondschool.vi.ocrtestappgooglemobilevisionapi.MainActivity}:
java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.XmlResourceParser android.content.pm.ProviderInfo.loadXmlMetaData(android.content.pm.PackageManager, java.lang.String)' on a null object reference
On app launch, getting could not setup detector always. Pls guide. I just installed u app. No amendments were done in that.
when i am implementing your code my camera is depricated but when i am using camera2 instead of camera my camera is not starting....
I can start the app just fine. When i press "take a picture" it crashes.
I have not made any changes, I was just trying it out to see what it did.
Stacktrace:
Process: com.truiton.mobile.vision.qrcode, PID: 3685
java.lang.RuntimeException: Failure delivering result ResultInfo{who=@android:requestPermissions:, request=20, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS (has extras) }} to activity {com.truiton.mobile.vision.qrcode/com.truiton.mobile.vision.qrcode.MainActivity}: android.os.FileUriExposedException: file:///storage/emulated/0/picture.jpg exposed beyond app through ClipData.Item.getUri()
at android.app.ActivityThread.deliverResults(ActivityThread.java:4089)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4132)
at android.app.ActivityThread.-wrap20(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1533)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
Caused by: android.os.FileUriExposedException: file:///storage/emulated/0/picture.jpg exposed beyond app through ClipData.Item.getUri()
at android.os.StrictMode.onFileUriExposed(StrictMode.java:1799)
at android.net.Uri.checkFileUriExposed(Uri.java:2346)
at android.content.ClipData.prepareToLeaveProcess(ClipData.java:845)
at android.content.Intent.prepareToLeaveProcess(Intent.java:8941)
at android.content.Intent.prepareToLeaveProcess(Intent.java:8926)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1517)
at android.app.Activity.startActivityForResult(Activity.java:4225)
at android.support.v4.app.BaseFragmentActivityJB.startActivityForResult(BaseFragmentActivityJB.java:48)
at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:75)
at android.app.Activity.startActivityForResult(Activity.java:4183)
at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:856)
at com.truiton.mobile.vision.qrcode.MainActivity.takePicture(MainActivity.java:156)
at com.truiton.mobile.vision.qrcode.MainActivity.onRequestPermissionsResult(MainActivity.java:73)
at android.app.Activity.dispatchRequestPermissionsResult(Activity.java:7084)
at android.app.Activity.dispatchActivityResult(Activity.java:6936)
at android.app.ActivityThread.deliverResults(ActivityThread.java:4085)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4132)
at android.app.ActivityThread.-wrap20(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1533)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776) ```
Invalid VCS root mapping
The directory /home/rockstar/AndroidStudioProjects/MobileVisionAPI-master is registered as a Git root, but no Git repositories were found there.
Configure
Help Sir....
In Advance thank you
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.