ajithlal1992 / javacv

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

Error while createFisher/Eigen/LBPHFaceRecognizer() method is called. #490

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. FaceRecognizer faceRecognizer = createFisherFaceRecognizer() will crash with 
error as shown in attached image.

What is the expected output? What do you see instead?

It should create model.

What version of the product are you using? On what operating system?

I am using javacv 0.7 on macOS. I am creating an android app using javacv.

Please provide any additional information below.

The error comes like "The JAR file javacpp.jar has no source attachment.

I followed below tutorial for project set up using javacv 0.7 
(http://javacv4android.blogspot.in/2014/02/how-to-import-javacv-libraries-to.htm
l)

Original issue reported on code.google.com by nitin...@motorola.com on 30 Oct 2014 at 11:31

Attachments:

GoogleCodeExporter commented 8 years ago
This is probably related to the missing dependency on `opencv_nonfree` fixed 
here:
https://github.com/bytedeco/javacpp-presets/commit/3374a2a183f9b1c4db859e226f98c
ecbe9514572
The workaround is to call `Loader.load(opencv_nonfree.class)`, but if that does 
not work, could you please try again with JavaCV 0.9? And report any additional 
problem on GitHub, if possible, thank you!

Original comment by samuel.a...@gmail.com on 1 Nov 2014 at 11:07

GoogleCodeExporter commented 8 years ago
I tried with Loader.load(opencv_nonfree.class). 

But it again gives error that it could not load llibopencv_gpu which is 
required by opencv_nonfree.

Looks like some kind of dependency. Also libopencv_gpu is not present in where 
all so are present.

Original comment by nitin...@motorola.com on 1 Nov 2014 at 12:35

GoogleCodeExporter commented 8 years ago
Ok, could you try again with the binaries available here?
https://oss.sonatype.org/content/repositories/snapshots/org/bytedeco/javacpp-pre
sets/opencv/2.4.9-0.9.1-SNAPSHOT/
And please report this issue on GitHub if it still doesn't work, thanks

Original comment by samuel.a...@gmail.com on 2 Nov 2014 at 1:27

GoogleCodeExporter commented 8 years ago
I have taken javacv 0.9 binaries from bytedeco repo.

Now I am able to create FaceRecgnizer object. However, it is crashing while 
calling train method. I followed 
https://github.com/bytedeco/javacv/blob/master/samples/OpenCVFaceRecognizer.java
 example.

PFA crash report logcat

Original comment by nitin...@motorola.com on 2 Nov 2014 at 8:48

Attachments:

GoogleCodeExporter commented 8 years ago
Ok, so this issue has been fixed, good. Thanks for reporting

About the crash, does it happen under Java SE as well? If so, please provide 
the data your are using.

And please report on GitHub if possible, not here, thank you.

Original comment by samuel.a...@gmail.com on 2 Nov 2014 at 8:52

GoogleCodeExporter commented 8 years ago
Can you please tell me what are the changes for the fix. Did you pushed the 
changes? If I take latest javacv, javaspp-preset and javacpp will it work?

Next time I'll report the bug to github.

Thanks

Original comment by nitin...@motorola.com on 3 Nov 2014 at 5:44

GoogleCodeExporter commented 8 years ago
Sure, the changes are all on GitHub, but make sure to take the `develop` 
branches of everything.

Original comment by samuel.a...@gmail.com on 24 Nov 2014 at 12:55