OpenCV(4.5.4-dev) D:aopencv-pythonopencv-pythonopencvmodulesimgprocsrcresize.cpp:4051: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'
This error arises if you aren't giving the right path to the image,
check extentions(.png, .jpg)
if you are working on jupyter notebook on the folder C:/users/user
and your desired image called Dog.png exists in C:/users/user/Folder
use this -
Image = cv2.imread("Folder/Dog.png",-1)