shaileshmulange / javacv

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

Loading CvBoost from XML #271

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What is the expected output? What do you see instead?
Learned CvBoost
OpenCV Error: Unspecified error (The boosted tree ensemble has not been trained 
yet) in unknown function, file ..\..\..\src\opencv\modules\ml\src\boost.cpp, 
line 1608
error is created by 
cvBoost.predict(inputMatrix, null, weakMatrix, new CvSlice(weakCount), false, 
true);
but its seams to not load 
cvBoost.load(file.getName(), null);

What version of the product are you using? On what operating system?
javaCV 0.3 + openCV 2.4.3

Please provide any additional information below.
i'm looking forward to your reply

Original issue reported on code.google.com by vonProt...@gmail.com on 14 Jan 2013 at 9:17

GoogleCodeExporter commented 9 years ago
Have you tried something like this?
    CvFileStorage f = cvOpenFileStorage(file.getAbsolutePath(), null, CV_STORAGE_READ);
    cvBoost.read(f, cvGetFileNodeByName(f, null, name));

Please post your questions on the mailing list next time, thank you!

Original comment by samuel.a...@gmail.com on 19 Jan 2013 at 9:10