当我将鼠标移到Mat关键字(OpenCv 3.4.1)上时,Visual Studio 2017冻结 [英] Visual Studio 2017 Freezes when I move mouse over Mat keyword (OpenCv 3.4.1)

查看:94
本文介绍了当我将鼠标移到Mat关键字(OpenCv 3.4.1)上时,Visual Studio 2017冻结的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Visual Studio 2017中开发openCv项目.我下载了opencv预构建库并进行了必要的设置.那就是:

I want to develop openCv project in Visual Studio 2017. I downloaded the opencv pre-build libraries and made necessary settings. That is:

1)我添加了系统路径...build\x64\vc14\bin

1) I added System Path ...build\x64\vc14\bin

2)在Visual Studio中,从项目属性中,我在C/C ++->常规设置下添加了其他包含目录...opencv\build\include

2) In Visual Studio from project properties I added Additional Include Directories ...opencv\build\include under C/C++ -> General Settings

3)我在链接器->常规设置下添加了其他包含目录...opencv\build\x64\vc14\lib

3) I added Additional Include Directories ...opencv\build\x64\vc14\lib under Linker->General Settings

4)我在->链接器->输入设置下添加了其他依赖项opencv_world341d.lib

4) I added Additional Dependecies opencv_world341d.lib under -> Linker->Input Settings

我编写了以下代码,并且编译时没有错误

I wrote the following code and it is compiled without an error

 // opencv.cpp : Defines the entry point for the console application.

#include "stdafx.h"
#include <opencv2/opencv.hpp>
using namespace cv;

int main() {
    Mat img;
    return 0;
}

但是问题是,当我在2-3秒后将光标移到Mat关键字上时,VS冻结并且仍然没有响应.你知道为什么会这样吗?

But the problem is when I move curser over Mat keyword after 2-3 seconds VS freezes and does not respond anyway. Do you have any idea why this happens?

推荐答案

似乎问题与VS2017有关,我在VS2015上尝试过,但没有得到这样的错误.

It seems the problem is related with VS2017, I tried on VS2015 and did not get such an error.

这篇关于当我将鼠标移到Mat关键字(OpenCv 3.4.1)上时,Visual Studio 2017冻结的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆