i-sandeep / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

cvEigenDecomposite don't work!!! #336

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
code :Log.i(TAG, "44444444444444444444444444444444444444444");
        cvEigenDecomposite(testFaceImg, // obj
                nEigens, // nEigObjs
                new PointerPointer(eigenVectArr), // eigInput (Pointer)
                0, // ioFlags
                null, // userData
                pAvgTrainImg, // avg
                projectedTestFace); // coeffs
        Log.i(TAG, "5555555555555555555555555555555555555");

error:
07-07 22:06:43.543: I/Face Recognition(25860): 
44444444444444444444444444444444444444444
07-07 22:06:43.583: D/dalvikvm(25860): GC_CONCURRENT freed 5017K, 41% free 
12134K/20487K, paused 11ms+2ms, total 26ms
07-07 22:06:43.783: W/dalvikvm(25860): threadid=1: thread exiting with uncaught 
exception (group=0x419eb498)
07-07 22:06:43.783: E/AndroidRuntime(25860): FATAL EXCEPTION: main
07-07 22:06:43.783: E/AndroidRuntime(25860): java.lang.RuntimeException: 
/home/saudet/android/OpenCV-2.4.2/modules/legacy/src/eigenobjects.cpp:1628: 
error: (-5) Different sizes of objects in function cvEigenDecomposite
07-07 22:06:43.783: E/AndroidRuntime(25860):    at 
com.googlecode.javacv.cpp.opencv_legacy.cvEigenDecomposite(Native Method)
07-07 22:06:43.783: E/AndroidRuntime(25860):    at 
danie.jonker.personfinder.FaceRecognition.recognizeFace(FaceRecognition.java:371
)
07-07 22:06:43.783: E/AndroidRuntime(25860):    at 
danie.jonker.personfinder.CameraPreview.onPreviewFrame(CameraPreview.java:151)
07-07 22:06:43.783: E/AndroidRuntime(25860):    at 
android.hardware.Camera$EventHandler.handleMessage(Camera.java:775)
07-07 22:06:43.783: E/AndroidRuntime(25860):    at 
android.os.Handler.dispatchMessage(Handler.java:99)
07-07 22:06:43.783: E/AndroidRuntime(25860):    at 
android.os.Looper.loop(Looper.java:137)
07-07 22:06:43.783: E/AndroidRuntime(25860):    at 
android.app.ActivityThread.main(ActivityThread.java:4875)
07-07 22:06:43.783: E/AndroidRuntime(25860):    at 
java.lang.reflect.Method.invokeNative(Native Method)
07-07 22:06:43.783: E/AndroidRuntime(25860):    at 
java.lang.reflect.Method.invoke(Method.java:511)
07-07 22:06:43.783: E/AndroidRuntime(25860):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:804)
07-07 22:06:43.783: E/AndroidRuntime(25860):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:571)
07-07 22:06:43.783: E/AndroidRuntime(25860):    at 
dalvik.system.NativeStart.main(Native Method)

Original issue reported on code.google.com by xinxianq...@163.com on 7 Jul 2013 at 2:19

GoogleCodeExporter commented 9 years ago
Could you retry with the latest version of JavaCV and let me know if it works 
or not? Thanks!

Original comment by samuel.a...@gmail.com on 14 Jul 2013 at 6:05

GoogleCodeExporter commented 9 years ago
Given the lack of feedback, I'm guessing this has been fixed in recent versions 
of JavaCV, but please let me know if this is not the case, thank you!

Original comment by samuel.a...@gmail.com on 16 Sep 2013 at 11:24

GoogleCodeExporter commented 9 years ago
Hi Samuel,

Did You upgrade something from javacv-bin or javacv-cppjars? I'm using 
javacv-05bin and I have this message from Eclipse:

The method cvEigenDecomposite(opencv_core.IplImage, int, Pointer, int, Pointer, 
opencv_core.IplImage, FloatPointer) in the type opencv_legacy is not applicable 
for the arguments (opencv_core.IplImage, int, opencv_core.IplImage[], int, 
null, opencv_core.IplImage, FloatPointer).

In this line:

cvEigenDecomposite(
trainingFaceImgArr[i], // obj
nEigens, // nEigObjs
eigenVectArr, // eigInput (Pointer)
0, // ioFlags
null, // userData (Pointer)
pAvgTrainImg, // avg
floatPointer); // coeffs (FloatPointer).

Could you let'me know?

Thanks
André

Original comment by amenegu...@gmail.com on 22 Oct 2013 at 5:06

GoogleCodeExporter commented 9 years ago
@amenegussi Do you get the same error when you try to compile with javac on the 
command line?

Original comment by samuel.a...@gmail.com on 23 Oct 2013 at 3:51