Raw image encoder error: Empty JPEG image (DNL not supported)) in throwOnEror


OpenCV Error: Unknown error code -10 (Raw image encoder error: Empty JPEG image (DNL not supported)) in throwOnEror, file /home/program/opencv-3.2.0/modules/imgcodecs/src/grfmt_base.cpp, line 139
terminate called after throwing an instance of 'cv::Exception'
  what():  /home/program/opencv-3.2.0/modules/imgcodecs/src/grfmt_base.cpp:139: error: (-10) Raw image encoder error: Empty JPEG image (DNL not supported) in function throwOnEror

cv::Mat img = cv::imread("background0.jpg");
 
獲取圖像后未能判斷是Mat否為空,導致傳遞給后面處理的數據為null導致、。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM