A post was split to a new topic: !_img.empty() in function ‘cv::imwrite’, (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support