0
我有其使用以下格式在我positives.txt
文件中引用567個正圖像(假設每個圖像僅具有1個對象):的OpenCV create_samples失敗
path num_of_objects x1 y1 x2 y2
當運行
opencv_createsamples -info ../data/positives.txt -num 567 -w 256 -h 256 -vec training.vec
我收到以下錯誤
Unable to open image: ../data//Users/jkarimi91/Documents/Projects/kaggle/right_whale_recognition/data/imgs/train/whale_00195/w_2753.jpg
OpenCV Error: Unknown error code -9() in cvSetImageROI, file /Users/jhelmus/anaconda/conda-bld/work/opencv-2.4.8/modules/core/src/array.cpp, line 3000
libc++abi.dylib: terminating with uncaught exception of type cv::Exception: /Users/jhelmus/anaconda/conda-bld/work/opencv-2.4.8/modules/core/src/array.cpp:3000: error: (-9) in function cvSetImageROI
Abort trap: 6
這是什麼原因造成的?