久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

使用發布庫時,OpenCV imread(filename) 在調試模式下

OpenCV imread(filename) fails in debug mode when using release libraries(使用發布庫時,OpenCV imread(filename) 在調試模式下失敗)
本文介紹了使用發布庫時,OpenCV imread(filename) 在調試模式下失敗的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我有一些 C++ 代碼,除了 imread(file) 函數外,OpenCV 一切正常.它正確地找到了文件并加載了名稱,但沒有加載任何數據.

I have some C++ code and everything was working fine with OpenCV except the function imread(file). It was finding correctly the file and loading the name, but it wasn't loading any data.

Mat pattImage = imread(fileName, 0);

在網絡上進行一些研究后,我意識到我處于調試模式,但使用的是 OpenCV 發布庫,而不是調試庫.

After some reaserch on the web I realized that I was in debug mode but with the release OpenCV libraries, instead of the debug ones.

debug library:    opencv_core231d.lib
release library:  opencv_core231.lib

雖然這是典型的愚蠢錯誤,我認為這不應該有任何關系,調試庫應該允許 OpenCV 代碼調試,而發布庫允許更快地執行代碼,但是我不明白為什么 imread 失敗了.

Though it is the tipical stupid error I thought this shouldn't have anything to do, the debug libraries are supposed to allow OpenCV code debugging while the release libraries allow faster execution of the code, but I don't understand why imread was failing.

誰能解釋一下OpenCV調試發布庫之間的區別,以及為什么會出現這個錯誤?

Can anybody explain me the differences between debug and release libraries in OpenCV and why this error occurs?

這是一個 OpenCV 錯誤嗎?

推薦答案

我永遠不會厭倦告訴人們Windows 的 C++ OpenCV 接口有最奇怪的錯誤.

I'll never get tired of telling people that the C++ OpenCV interface for Windows has the wierdest bugs.

使用 C 接口編寫一個小測試來檢查它是否有效(cvLoadImage() 等).

Write a small test using the C interface to check if it works or not (cvLoadImage(), etc).

更新:既然您知道 C 接口工作正常,您可以轉到郵件列表并在那里報告此錯誤,或者自己深入研究代碼以找出失敗的原因.

Update: now that you know that the C interface works properly, you can either go to the mailing list and report this bug there or dig into the code yourself to find why it fails.

這篇關于使用發布庫時,OpenCV imread(filename) 在調試模式下失敗的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Assertion failed (size.widthgt;0 amp;amp; size.heightgt;0)(斷言失敗(size.width0 amp;amp; size.height0))
Rotate an image in C++ without using OpenCV functions(在 C++ 中旋轉圖像而不使用 OpenCV 函數)
OpenCV: process every frame(OpenCV:處理每一幀)
Why can#39;t I open avi video in openCV?(為什么我不能在 openCV 中打開 avi 視頻?)
OpenCV unable to set up SVM Parameters(OpenCV 無法設置 SVM 參數)
Convert a single color with cvtColor(使用 cvtColor 轉換單一顏色)
主站蜘蛛池模板: 欧美国产精品 | 99精品视频在线观看免费播放 | 国产在线精品一区二区 | 国产在线一区二区三区 | 亚洲欧美精品在线 | 日本一区二区高清不卡 | 亚洲精品高清视频在线观看 | 99免费精品视频 | 欧美日韩国产传媒 | 国产在视频一区二区三区吞精 | 午夜免费视频 | 在线观看特色大片免费网站 | 手机av在线| 精品亚洲一区二区三区四区五区高 | 日韩三极 | 日韩欧美中文字幕在线观看 | 久久美国 | 成年人免费网站 | 九九久久99 | 日本a视频 | 国产精品国产精品国产专区不片 | 日本小电影网站 | 在线播放国产一区二区三区 | 蜜桃视频麻豆 | 国产精品区二区三区日本 | 日韩精品久久久 | 国产精品不卡视频 | 精品一区二区三区在线视频 | 中文字幕一区二区三区在线观看 | 性色的免费视频 | 国产午夜在线观看 | 亚洲欧美视频一区 | 97中文视频| 欧美精品一区在线 | 人人澡视频 | 亚洲欧美在线观看 | 国产成人99av超碰超爽 | 免费a级毛片在线播放 | 亚洲一区二区三区视频 | 亚洲国产一区二区视频 | 欧洲毛片|