Coder Social home page Coder Social logo

mobilevisionapi's Issues

cannot use camera

when i am implementing your code my camera is depricated but when i am using camera2 instead of camera my camera is not starting....

Invalid Vcs Root mapping

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

app crashes on takePicture() imageUri creation

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

Could not setup detector

On app launch, getting could not setup detector always. Pls guide. I just installed u app. No amendments were done in that.

QRCode crashes when taking picture

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) ```

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.