Open zdenop opened 4 years ago
images/source.png has wrong file extension - it is jpg file and not png. And main.py is expecting to find source7.png, so IMO this should be changed to:
diff --git a/scripts/main.py b/scripts/main.py index de29972..d6dad3d 100644 --- a/scripts/main.py +++ b/scripts/main.py @@ -10,7 +10,7 @@ from ROI_selection import detect_lines, get_ROI import cv2 as cv def main(display = False, print_text = False, write = False): - filename = '../images/source7.png' + filename = '../images/source.jpg' src = cv.imread(cv.samples.findFile(filename))
images/source.png has wrong file extension - it is jpg file and not png. And main.py is expecting to find source7.png, so IMO this should be changed to: