PS:花了一个晚上才把imglab这个标注工具生成失败的问题解决,哎,我真的太木了
1.问题所在
dlib\image_saver
下的头文件 save_png.h
出现 Assertion Failed
可以看到作者在 #ifndef DLIB_PNG_SUPPORT
下其实打了超多感叹号的注释1
You are getting this error because you are trying to use save_png() but you haven't defined DLIB_PNG_SUPPORT. You must do so to use this function. You must also make sure you set your build environment to link against the libpng library.
2.解决方法
解决方法很简单,我开始还在研究是不是要配置第三方库libpng和zlib的环境
其实只要在imglab主函数里声明
#define DLIB_PNG_SUPPORT
和 #define DLIB_JPEG_SUPPORT