This is a wrap for this
github project.
It is basically the same as the one posted by
@Johan Schoeman plus facerecognition and Barcodescanner (as of now it is configigured to scan all know formats.)
MobileVision
Author:
Version: 1.51
- BarcodeDetector
- Events:
- onBarcodeResult (success As Boolean, info As String, result As List)
- Result (info As String, scanresults As List)
- Functions:
- decodeBitmapUri (ctx As android.content.Context, uri As android.net.Uri) As android.graphics.Bitmap
- detect (frame As com.google.android.gms.vision.Frame)
- Initialize (EventName As String)
- launchMediaScanIntent
- receiveFrame (frame As com.google.android.gms.vision.Frame)
- release
- scanBitmap (b As android.graphics.Bitmap)
- setFocus (focus As Int) As Boolean
- takePicture
- Properties:
- isOperational As Boolean [read only]
- FaceDetector
- Events:
- onFaceDetectResult (success As Boolean, result As String)
- Result (info As String, scanresults As List)
- Functions:
- decodeBitmapUri (ctx As android.content.Context, uri As android.net.Uri) As android.graphics.Bitmap
- detect (frame As com.google.android.gms.vision.Frame)
- Initialize (EventName As String)
- launchMediaScanIntent
- receiveFrame (frame As com.google.android.gms.vision.Frame)
- release
- scanBitmap (b As android.graphics.Bitmap)
- setFocus (focus As Int) As Boolean
- takePicture
- Properties:
- isOperational As Boolean [read only]
- TextRecognizer
- Events:
- onOCRScanResult (success As Boolean, result As String)
- Result (info As String, blocks As String, lines As String, words As String, scanresults As List)
- Functions:
- decodeBitmapUri (ctx As android.content.Context, uri As android.net.Uri) As android.graphics.Bitmap
- detect (frame As com.google.android.gms.vision.Frame)
- Initialize (EventName As String)
- launchMediaScanIntent
- receiveFrame (frame As com.google.android.gms.vision.Frame)
- release
- scanBitmap (b As android.graphics.Bitmap)
- setFocus (focus As Int) As Boolean
- takePicture
- Properties:
- isOperational As Boolean [read only]
- Processor As com.google.android.gms.vision.Detector.Processor [write only]
hello, can you help me, this test program I have the following error:
the line with the error is the example itself
Logger conectado a: motorola moto g(6) plus
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Error occurred on line: 72 (Main)
android.os.FileUriExposedException: file:///storage/emulated/0/picture.jpg exposed beyond app through ClipData.Item.getUri()
at android.os.StrictMode.onFileUriExposed(StrictMode.java:1993)
at android.net.Uri.checkFileUriExposed(Uri.java:2379)
at android.content.ClipData.prepareToLeaveProcess(ClipData.java:963)
at android.content.Intent.prepareToLeaveProcess(Intent.java:10227)
at android.content.Intent.prepareToLeaveProcess(Intent.java:10212)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1736)
at android.app.Activity.startActivityForResult(Activity.java:4594)
at android.app.Activity.startActivityForResult(Activity.java:4552)
at anywheresoftware.b4a.BA.startActivityForResult(BA.java:542)
at de.donmanfred.FaceDetectorwrapper.takePicture(FaceDetectorwrapper.java:242)
at b4a.example.main._btnfacedetect_click(main.java:445)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:348)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:180)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:176)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
at android.view.View.performClick(View.java:6600)
at android.view.View.performClickInternal(View.java:6577)
at android.view.View.access$3100(View.java:781)
at android.view.View$PerformClick.run(View.java:25912)
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:6923)
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:870)