OpenCV imwrite() not saving image

后端 未结 7 1299
梦毁少年i
梦毁少年i 2020-12-31 13:00

I am trying to save an image from OpenCV on my mac and I am using the following code and so far it has not been working.

cv::imwrite(\"/Users/nickporter/Desk         


        
7条回答
  •  既然无缘
    2020-12-31 13:54

    Although it is not true for your case. This problem may arise if the image path given as argument to the cv::imwrite function exceeds the allowed maximum path length (or possibly allowed file name length) for your system.

    for linux see: https://unix.stackexchange.com/questions/32795/what-is-the-maximum-allowed-filename-and-folder-size-with-ecryptfs

    for windows see: https://www.quora.com/What-is-the-maximum-character-limit-for-file-names-in-windows-10

提交回复
热议问题