VS2019不存在从LPWSTR转换到cv::string的适当构造函数
问题描述:
改写成图二形式也不行
答
std::string str(fname.GetBuffer());
或者
//添加头文件
#include <atlstr.h>
std::string str = CT2A(fname.GetBuffer());