OpenCV Error: (-215)size.width>0 && size.height>0 in function imshow

前端 未结 16 2453
既然无缘
既然无缘 2020-11-29 09:09

I am trying to make a face tracker that combines Haar Cascade Classification with Lucas Kanade good feature detection. However, I keep getting an error that I cannot figure

16条回答
  •  清歌不尽
    2020-11-29 09:26

    I had this problem.

    Solution: Update the path of the image.

    If the path contains (for example: \n or \t or \a) it adds to the corruption. Therefore, change every back-slash "\" with front-slash "/" and it will not make create error but fix the issue of reading path.

    Also double check the file path/name. any typo in the name or path also gives the same error.

提交回复
热议问题