Unable to Scan image cords

We are facing this issue, when we provide an image to scan image coordinates.
"cv::Exception: OpenCV(4.5.4) /home/runner/work/opencv/opencv/opencv-4.5.4/modules/imgproc/src/resize.cpp:4051: error: (-215:Assertion failed) !ssize.empty() in function ‘resize’
"
Can anyone help on it?

MRE is required, if you require assistance debugging your program.

s.a. Scan Image Coords issues · Issue #22742 · opencv/opencv · GitHub