Fix leafweb-vision OpenCV headless error on cv2.destroyAllWindows
Replace opencv-python with opencv-python-headless so GUI calls are no-ops instead of crashing in a display-less container.
This commit is contained in:
@@ -3,7 +3,7 @@ services:
|
|||||||
image: ultralytics/ultralytics:latest
|
image: ultralytics/ultralytics:latest
|
||||||
container_name: leafweb-vision
|
container_name: leafweb-vision
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command: bash -c "pip install 'streamlit>=1.29.0' -q --root-user-action=ignore && yolo solutions inference"
|
command: bash -c "pip install 'streamlit>=1.29.0' opencv-python-headless -q --root-user-action=ignore && pip uninstall opencv-python -y -q 2>/dev/null; yolo solutions inference"
|
||||||
ports:
|
ports:
|
||||||
- "8501:8501"
|
- "8501:8501"
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user