ShenweiXie / PaRK-Detect

PaRK-Detect: Towards Efficient Multi-Task Satellite Imagery Road Extraction via Patch-Wise Keypoints Detection
20 stars 4 forks source link

Error full2scribble.py #5

Open mggn28 opened 5 months ago

mggn28 commented 5 months ago

Hello author, I am trying to use this script to create a road extraction model in Indonesia using high-resolution aerial drone photography data. However, after running the full2scribble process, I encounter an error that reads "cv2.error: OpenCV(4.9.0) D:\a\opencv-python\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp:79: error: (-215:Assertion failed) pixels <= CV_IO_MAX_IMAGE_PIXELS in function 'cv::validateInputImageSize'". After some research, I found that OpenCV does not support high-resolution images. Is there a solution to this problem? Thank you for your help.

WuJunxu commented 5 months ago

@mggn28 Try to split image to tiles first.