OpenCV和QT的imread退出代码

OpenCV和QT的imread退出代码

本文介绍了OpenCV和QT的imread退出代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

写完



解决方案

我忘记再次复制.dll文件以释放目录。现在-1073741701退出代码在发布模式中消失。另一个问题是使用完整路径的图像和反斜杠字符这种方式的转义解决了\\,我再次忘记。这是noobie的问题。


After writting this thread I was thinking the problem is solved, but it still is not. In Debug mode the program is starting, then src.empty is true, which mean it cannot load file. If I change to release mode exit code -1073741701 is showned again, which is strange because I load the release .lib files like this:

INCLUDEPATH += D:\opencv_2411\opencv\build\include
LIBS += -LD:\opencv_2411\opencv\build\x64\vc12\lib \
-lopencv_calib3d2411 \
-lopencv_core2411 \
-lopencv_features2d2411 \
-lopencv_flann2411 \
-lopencv_highgui2411 \
-lopencv_imgproc2411 \
-lopencv_ml2411 \
-lopencv_objdetect2411 \
-lopencv_photo2411 \
-lopencv_stitching2411 \
-lopencv_superres2411 \
-lopencv_ts2411 \
-lopencv_video2411 \
-lopencv_videostab2411

Here are some screenshots:

解决方案

I forgot again to copy .dll files to release directory. Now the -1073741701 exit code disappear in release mode. The other problem is solved with the use of full path to the image and the escape of backslash character this way \\, which I forgot again. This was noobie question.

这篇关于OpenCV和QT的imread退出代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 23:04