opencv Cascade Classifier Training中 opencv_annotation命令

在win7 cmd中试了官方的指令opencv_annotation --annotations=/path/to/annotations/file.txt --images=/path/to/image/folder/

提示:The path for the output file contains an error and could not be opened. Please c
heck again!

参考:https://github.com/opencv/opencv/blob/master/apps/annotation/opencv_annotation.cpp

中45-51行

修改命令为 :

D:\Program Files\opencv\build\x64\vc14\bin>"D:\Program Files\opencv\build\x64\vc
14\bin\opencv_annotation.exe" -images E:\\壁纸 -annotations E:\\Desk\\abc.txt

成功了

 

posted @ 2018-09-30 10:18  夏日已末  阅读(420)  评论(0编辑  收藏  举报