From b2cd3f88dcec2889d1fb1cde5c0a9172706aac88 Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Tue, 13 Sep 2022 20:25:18 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Work=20around=20not=20detecting?= =?UTF-8?q?=20any=20regions=20(and=20lines)=20with=20OpenCV=204.6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Using opencv-python-headless 4.6.x we get the following error when detecting the contours of the detected text regions: module 'cv2' has no attribute 'cv2' Work around this by requiring OpenCV < 4.6 for now. See also the discussion at https://github.com/qurator-spk/sbb_textline_detection/issues/60. Fixes gh-60. --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index cfcbbc5..0c49b1b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -opencv-python-headless +opencv-python-headless < 4.6 # XXX https://github.com/qurator-spk/sbb_textline_detection/issues/60 matplotlib seaborn tqdm