opencv imshow报错Assertion failed (size.width>0 && size.height>0) in cv::imshow

opencv imshow 报错 Assertion failed (size.width>0 && size.height>0) in cv::imshow

可能原因:

  1. 图片路径建议改为绝对路径(将路径中“\”或“/”改为“\\”);
  2. 是否有图片命名重复,例如下图;

opencv imshow报错Assertion failed (size.width>0 && size.height>0) in cv::imshow_第1张图片

你可能感兴趣的:(vs,bug,opencv,bug)