2014-03-13 57 views
1

我正在使用OpenCV中的Haar分類器。我要通過這個鏈接是OpenCV Haar分類器XML生成錯誤

http://note.sonots.com/SciSoftware/haartraining.html#n43ec47f

我在./mergevec可執行面臨的問題,錯誤是

OpenCV Error: Assertion failed (elements_read == 1) in icvGetHaarTraininDataFromVecCallback, file cvhaartraining.cpp, line 1859 
terminate called after throwing an instance of 'cv::Exception' 
    what(): cvhaartraining.cpp:1859: error: (-215) elements_read == 1 in function icvGetHaarTraininDataFromVecCallback 

回答

0

我對不同大小的情況下,同樣的問題,是不是高興每次都要重新編譯,所以我最終用randomcastle的mergevec python替換了。 https://github.com/wulfebw/mergevec