unable to use opencv Tutorial3View [closed]

asked 2015-03-31 22:10:20 -0600

I am trying to work with open cv for face recognition app. I am using base of opencv Tutorial3View source code. a layout view has the below error. so a error like "unfortunately, FaceRecognition" has stopped is observed.

The following classes could not be instantiated:
- org.opencv.javacv.facerecognition.Tutorial3View (Open Class, Show Error Log)
See the Error Log (Window > Show View) for more details.
Tip: Use View.isInEditMode() in your custom views to skip code when shown in Eclipse

java.lang.NoClassDefFoundError: org/opencv/R$styleable
    at org.opencv.android.CameraBridgeViewBase.<init>(CameraBridgeViewBase.java:72)
    at org.opencv.android.JavaCameraView.<init>(JavaCameraView.java:62)
    at org.opencv.javacv.facerecognition.Tutorial3View.<init>(Tutorial3View.java:22)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeConstructorAccessorImpl.java:-2)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:408)

here I am attaching the log cat

03-31 15:21:53.316: I/dalvikvm(6846): Failed resolving Lorg/opencv/javacv/facerecognition/FdActivity; interface 1202 'Lorg/opencv/android/CameraBridgeViewBase$CvCameraViewListener2;'
03-31 15:21:53.316: W/dalvikvm(6846): Link of class 'Lorg/opencv/javacv/facerecognition/FdActivity;' failed
03-31 15:21:53.326: D/AndroidRuntime(6846): Shutting down VM
03-31 15:21:53.326: W/dalvikvm(6846): threadid=1: thread exiting with uncaught exception (group=0x417b5898)
03-31 15:21:53.336: E/AndroidRuntime(6846): FATAL EXCEPTION: main
03-31 15:21:53.336: E/AndroidRuntime(6846): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{org.opencv.javacv.facerecognition/org.opencv.javacv.facerecognition.FdActivity}: java.lang.ClassNotFoundException: Didn't find class "org.opencv.javacv.facerecognition.FdActivity" on path: /data/app/org.opencv.javacv.facerecognition-1.apk
03-31 15:21:53.336: E/AndroidRuntime(6846):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2232)
03-31 15:21:53.336: E/AndroidRuntime(6846):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2362)
03-31 15:21:53.336: E/AndroidRuntime(6846):     at android.app.ActivityThread.access$700(ActivityThread.java:168)
03-31 15:21:53.336: E/AndroidRuntime(6846):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1329)
03-31 15:21:53.336: E/AndroidRuntime(6846):     at android.os.Handler.dispatchMessage(Handler.java:99)
03-31 15:21:53.336: E/AndroidRuntime(6846):     at android.os.Looper.loop(Looper.java:177)
03-31 15:21:53.336: E/AndroidRuntime(6846):     at android.app.ActivityThread.main(ActivityThread.java:5496)
03-31 15:21:53.336: E/AndroidRuntime(6846):     at java.lang.reflect.Method.invokeNative(Native Method)
03-31 15:21:53.336: E/AndroidRuntime(6846):     at java.lang.reflect.Method.invoke(Method.java:525)
03-31 15:21:53.336: E/AndroidRuntime(6846):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1225)
03-31 15:21:53.336: E/AndroidRuntime(6846):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1041)
03-31 15:21:53.336: E/AndroidRuntime(6846):     at dalvik.system.NativeStart.main(Native Method)
03-31 15:21:53.336: E/AndroidRuntime(6846): Caused by: java.lang.ClassNotFoundException: Didn't find class "org.opencv.javacv.facerecognition.FdActivity ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant by berak
close date 2015-04-01 00:51:05.728078

Comments

unfortunately, we can't really help you with javacv (3rdparty) issues.

berak gravatar imageberak ( 2015-04-01 00:50:23 -0600 )edit