build(python): make OpenCV headless by default with optional GUI support (issue #737)

This commit is contained in:
SWHL authored and GitHub committed 2026-09-15 09:21:54 +08:00
1 parent cbea36ab3d
commit c1ec6054a7
2 files changed
+3 -2

No files matched your search

+1
View File
@@ -45,6 +45,7 @@ rapidocr = "rapidocr.main:main"
[project.optional-dependencies]
rtl = ["python-bidi>=0.4.2,<1.0"]
opencv-python = ["opencv-python>=4.5.1.48"]
[tool.setuptools]
include-package-data = true
+2 -2
View File
@@ -1,5 +1,5 @@
pyclipper>=1.2.0
opencv_python>=4.5.1.48
opencv-python-headless>=4.5.1.48
numpy>=1.19.5,<3.0.0
six>=1.15.0
Shapely>=1.7.1,!=2.0.4 # python3.12 2.0.4 bug
@@ -8,4 +8,4 @@ Pillow
tqdm
omegaconf!=2.2.1 # https://github.com/omry/omegaconf/issues/934
requests
colorlog
colorlog