Android Question FaceDetection CameraEx error

darabon

Active Member
Hi
Why does CameraEx have an error when I use startFaceDetection while my device support 5 faces (i check it with getMaxNumDetectedFaces)
In some device, I have no error
If CameraEx have a problem, please introduce alternative library
Thanks

Error occurred on line: 385 (CameraExClass)
java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:131)
at anywheresoftware.b4a.samples.camera.cameraexclass._startfacedetection(cameraexclass.java:272)
at anywheresoftware.b4a.samples.camera.main._camera1_ready(main.java:745)
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:351)
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.keywords.Common.CallSub4(Common.java:1083)
at anywheresoftware.b4a.keywords.Common.CallSubNew2(Common.java:1038)
at anywheresoftware.b4a.samples.camera.cameraexclass._camera_ready(cameraexclass.java:432)
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:351)
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.raiseEvent(BA.java:176)
at anywheresoftware.b4a.objects.CameraW$2$1.run(CameraW.java:139)
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)
Caused by: java.lang.RuntimeException: start face detection failed
at android.hardware.Camera._startFaceDetection(Native Method)
at android.hardware.Camera.startFaceDetection(Camera.java:1683)
... 28 more
 

drgottjr

Expert
Licensed User
Longtime User
If CameraEx have a problem, please introduce alternative library
Thanks

also, make sure it's free. and maybe include free latest device for testing.
 
Upvote 0
Top