From a63447e68137cd33a7a183f4f71b1629439da62c Mon Sep 17 00:00:00 2001 From: P S Kesavan Date: Wed, 17 Jun 2026 03:05:58 +0530 Subject: [PATCH] deps: declare opencv-python-headless (cv2) as a runtime dependency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit cv2 is imported unguarded by sam_detection, the device layer, analysis/steps, and video_maker, but was never declared — so a clean install breaks detection/ analysis with 'No module named cv2'. headless avoids the libGL.so requirement of full opencv-python on headless servers/agents. Co-Authored-By: Claude Opus 4.8 (1M context) --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index d07b6c42..160bb7bb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,6 +31,11 @@ dependencies = [ "tifffile>=2023.0.0", "scipy>=1.10.0", "scikit-image>=0.21.0", + # OpenCV is imported (unguarded) by detection (sam_detection), the device + # layer, analysis steps, and video_maker — so it's a true runtime dep, not + # optional. headless avoids the libGL.so requirement of full opencv-python + # on headless servers/agents. + "opencv-python-headless>=4.8.0", "jinja2>=3.1.0", "pyyaml>=6.0", "matplotlib>=3.7.0",