(-215:Assertion Failed) !_src0.empty() In Function 'medianBlur' Code Example


Example: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'

This error happened because the image didn't load properly. So you have problem with the previous line cv2.imread my suggestion is :  check if the images exist in the path you give  check the count variable if he have valid number

Comments

Popular posts from this blog

Android - ImageView With Rounded Only One Corner

530 Valid Hostname Is Expected When Setting Up IIS 10 For Multiple Sites

Android - SetOnClickListener Vs OnClickListener Vs View.OnClickListener