Skip to content

deps: declare opencv-python-headless (cv2) as a runtime dependency#55

Open
pskeshu wants to merge 1 commit into
gently-project:developmentfrom
pskeshu:fix/declare-opencv-dep
Open

deps: declare opencv-python-headless (cv2) as a runtime dependency#55
pskeshu wants to merge 1 commit into
gently-project:developmentfrom
pskeshu:fix/declare-opencv-dep

Conversation

@pskeshu

@pskeshu pskeshu commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

cv2 (OpenCV) is imported unguarded by sam_detection.py, the device layer (device_layer.py), analysis/steps.py, and video_maker.py, but it was never declared in pyproject.toml. A clean pip install therefore omits it, and embryo detection/analysis fail at runtime with No module named 'cv2' (the agent currently catches this and degrades to manual marking).

Declares opencv-python-headless>=4.8.0 as a core runtime dependency. headless avoids the libGL.so system-library requirement that full opencv-python imposes on headless servers/agents — a second failure mode on machines without a display stack.

Root-level fix on development; the same one-line change backports cleanly to main (release) and the experimental branches.

🤖 Generated with Claude Code

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) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant