cheddadi / javacv

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

javacv0.4+opencv2.4.4 svm load xml file error #450

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.CvSVM test = new CvSVM();
2.test.load(filename, null);
3.get error "nullpointerexection"

What is the expected output? What do you see instead?
get error,svm didnot load xml

What version of the product are you using? On what operating system?
0.4+opencv2.4.4
Please provide any additional information below.

Original issue reported on code.google.com by fengk...@gmail.com on 25 Mar 2014 at 9:11

GoogleCodeExporter commented 8 years ago
Could you please try again with JavaCV 0.7? Thanks

Original comment by samuel.a...@gmail.com on 25 Mar 2014 at 1:21

GoogleCodeExporter commented 8 years ago
i tried 0.7+opencv2.4.8 and got the same error, the path of xml is correct.The 
error is java.lang.nullpointerexception

Original comment by fengk...@gmail.com on 26 Mar 2014 at 3:21

GoogleCodeExporter commented 8 years ago
sorry, i found the source of the error, it is caused by syntax error of java, i 
am a newer for java
thanks and sorry for disturbing.

Original comment by fengk...@gmail.com on 29 Mar 2014 at 11:47

GoogleCodeExporter commented 8 years ago
I see, that's alright. Could you also post the correct code for future 
reference?

And please post your questions on the mailing list next time if possible! Thank 
you

Original comment by samuel.a...@gmail.com on 30 Mar 2014 at 5:53