New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Friendlier error messages when image path does not exist in cv2.seamlessClone() #20167
Comments
Hello may I try and work on this? |
I would like to work on this |
Invalid image path should be handled with (before or after) imread() as imread() will return None in case of any error. |
Yes. I don't think imread() neither seamlessClone() should display any error regarding wrong path. They both do their job. |
…essClone() opencv#20167 This code will solve the problem. It will show the error if the file path supplied to seamlessclone() is invalid.
I would like to work on this issue |
It is very true but wouldn't it be more beneficial to a programmer if the seamlessClone() shows an error stating that the input image has a none value rather than showing the error that is shown above? This change may easily alert the programmer that the image path is wrong or invalid. |
I would like to work upon this issue and do the above mentioned changes. |
I'd like to work on this issue. |
I'd like to work on this issue |
HI |
System information (version)
Detailed description
When running cv2.seamlessClone() the error is a bit misleading when the incorrect image path is supplied. It doesn't make it obvious that the problem is in the path
Steps to reproduce
Issue submission checklist
forum.opencv.org, Stack Overflow, etc and have not found solution
The text was updated successfully, but these errors were encountered: