Skip to content

deps: declare opencv-python-headless (cv2) — backport to main#57

Open
pskeshu wants to merge 1 commit into
gently-project:mainfrom
pskeshu:backport/opencv-main
Open

deps: declare opencv-python-headless (cv2) — backport to main#57
pskeshu wants to merge 1 commit into
gently-project:mainfrom
pskeshu:backport/opencv-main

Conversation

@pskeshu

@pskeshu pskeshu commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Backport of the development fix (#55) to the release line.

main imports cv2 in sam_detection.py, device_layer.py, and analysis/steps.py but never declares opencv in pyproject.toml, so a clean install of the released version breaks detection/analysis with No module named 'cv2'. Declares opencv-python-headless>=4.8.0 (headless avoids the libGL.so requirement on headless boxes).

One-line, conflict-free cherry-pick of the #55 commit.

🤖 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