gpt4 book ai didi

opencv - 使用C++收到像unhadler(kernelbase.dll)openCV这样的错误

转载 作者:行者123 更新时间:2023-12-02 17:48:23 25 4
gpt4 key购买 nike

我正在做一个简单的程序来检测网络摄像头,它运行了一段时间,但比我收到错误消息要多。
我从中获取了代码,

https://thefreecoder.wordpress.com/2012/09/11/opencv-c-video-capture/

Unhandled exception at 0x74f22f71 (KernelBase.dll) in cvtest.exe: Microsoft C++ exception: cv::Exception at memory location 0x0109f524..



如何解决这个问题呢。
提前非常感谢您。

最佳答案

您可以将整个代码放在try catch块中

try
{
// ... Contents of your main
}
catch ( cv::Exception & e )
{
cout << e.msg() << endl;
}

这可能对您有帮助!或尝试与调试器一起使用,哪个行导致异常。

关于opencv - 使用C++收到像unhadler(kernelbase.dll)openCV这样的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29207073/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com