Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E0312 不存在用户定义的从 "cv::Mat_<float>" 到 "CvMat" 的适当转换 #4

Open
qubo opened this issue Mar 23, 2020 · 1 comment

Comments

@qubo
Copy link

qubo commented Mar 23, 2020

您好:
我配置了CLMLib项目的包含目录为D:\Download\opencv\build\include
库目录为D:\Download\opencv\build\x64\vc14\lib
连接器输入的附加依赖项增加了opencv_world349d.lib
平台改成x64

然后单独生成CLMLib项目报错:
严重性 代码 说明 项目 文件 行 禁止显示状态
错误(活动) E0312 不存在用户定义的从 "cv::Mat_" 到 "CvMat" 的适当转换 CLMLib C:\Users\bowen\source\repos\HyperLabelImg-master\labelimg-src\CLM\Patch_experts.cpp 180
严重性 代码 说明 项目 文件 行 禁止显示状态
错误(活动) E0312 不存在用户定义的从 "cv::Mat" 到 "CvMat" 的适当转换 CLMLib C:\Users\bowen\source\repos\HyperLabelImg-master\labelimg-src\CLM\Patch_experts.cpp 181
还有5个类似错误我就不贴了
请教一下这是怎么回事?

@qubo
Copy link
Author

qubo commented Mar 23, 2020

上面第一个报错的代码行为Patch_experts.cpp的180行
CvMat area_of_interest_o = area_of_interest;
生成工具集为Visual Studio 2017 (v141)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant