(-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

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable