opencv_annotation(-204:未找到请求的对象)

opencv_annotation (-204:Requested object was not found)

root@debian:bin#./opencv_annotation --images=/pos/ --annotations=/pos/annotations.txt

terminate called after throwing an instance of 'cv::Exception'
  what():  OpenCV(3.4.8) /home/harry/haardev/opencv/modules/core/src/glob.cpp:267: error: (-204:Requested object was not found) could not open directory: /pos in function 'glob_rec'

已中止

出现上述错误后,我 chmod 4777 the director pos/ 及其图像。我仍然收到此错误。有什么想法吗?

我是 运行 Debian 10,Buster。

另外,这个功能有多重要?谢谢!

opencv 需要绝对路径,请确认pos 目录在根目录中或相应地修改给定路径。

Call the application on your data opencv_annotation -images /data/image_folder/ -annotations /data/annotations.txt. Keep in mind that the tool loves absolute paths, since relative paths can screw up the processing.

更新后的版本也需要这个语法(你用过):

opencv_annotation --images=/data/image_folder/ --annotations=/data/annotations.txt

请检查您使用的版本以确定正确的语法。