我一個conda
環境中運行opencv 2.4.8
。我可以一個car detector使用OpenCV的級聯性能:有效的XML錯誤
opencv_traincascade -data data -vec cars.vec -bg bg.txt -numPos 500 -numNeg 500 -numStages 2 -w 48 -h 24
但是培養,使用
opencv_performance -data data -info cars.txt
我收到一個分析錯誤我無法檢查的性能:
OpenCV Error: Parsing error (data(0):
Valid XML should start with '<?xml ...?>') in icvXMLParse,
file /Users/jhelmus/anaconda/conda-bld/work/opencv-2.4.8/modules/core/src/persistence.cpp, line 2252
libc++abi.dylib:terminating with uncaught exception of type cv::
Exception: /Users/jhelmus/anaconda/conda-bld/work/opencv-2.4.8/modules/core/src/persistence.cpp:2252:
error: (-212) data(0): Valid XML should start with '<?xml ...?>' in function icvXMLParse
我有檢查.xml文件,並用
進行適當的格式化<?xml version="1.0"?>
作爲第一行。
什麼是造成此錯誤?