From 09e0f9c098dfa88dca352c93609a2a982f1c4fc8 Mon Sep 17 00:00:00 2001 From: Maxim Zhiltsov Date: Mon, 10 Feb 2025 17:55:19 +0200 Subject: [PATCH] Restrict opencv version to below 4.11 to keep api after https://github.com/opencv/opencv/pull/25809 --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 3915468bf3..daaed2f56b 100644 --- a/setup.py +++ b/setup.py @@ -46,9 +46,9 @@ def parse_requirements(filename=CORE_REQUIREMENTS_FILE): CORE_REQUIREMENTS = parse_requirements(CORE_REQUIREMENTS_FILE) if strtobool(os.getenv("DATUMARO_HEADLESS", "0").lower()): - CORE_REQUIREMENTS.append("opencv-python-headless") + CORE_REQUIREMENTS.append("opencv-python-headless<4.11") else: - CORE_REQUIREMENTS.append("opencv-python") + CORE_REQUIREMENTS.append("opencv-python<4.11") DEFAULT_REQUIREMENTS = parse_requirements(DEFAULT_REQUIREMENTS_FILE)