Skip to content

build: switch opencv-python to opencv-python-headless - #5420

Open
halfcrazy wants to merge 1 commit into
opendatalab:masterfrom
halfcrazy:fix-libgl-dep
Open

halfcrazy wants to merge 1 commit into
opendatalab:masterfrom
halfcrazy:fix-libgl-dep

Conversation

@halfcrazy

@halfcrazy halfcrazy commented Aug 24, 2026

Copy link
Copy Markdown

Motivation

MinerU only uses cv2 for image processing (no GUI APIs like imshow/ waitKey), so the headless build is functionally identical while dropping the libGL.so.1 system dependency that breaks installs in minimal/server environments. libgl1 is therefore also removed from both Dockerfiles.

Modification

Switch opencv-python to opencv-python-headless

Related PaddlePaddle/PaddleOCR#8414

Checklist

Before PR:

  • Pre-commit or other linting tools are used to fix the potential lint issues.
  • Bug fixes are fully covered by unit tests, the case that causes the bug should be added in the unit tests.
  • The modification is covered by complete unit tests. If not, please add more unit test to ensure the correctness.
  • The documentation has been modified accordingly, like docstring or example tutorials.

After PR:

  • If the modification has potential influence on downstream or other related projects, this PR should be tested with those projects.
  • CLA has been signed and all committers have signed the CLA in this PR.

I have read the CLA Document and I hereby sign the CLA

@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Aug 24, 2026
@github-actions

github-actions Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@halfcrazy

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Aug 24, 2026
MinerU only uses cv2 for image processing (no GUI APIs like imshow/
waitKey), so the headless build is functionally identical while
dropping the libGL.so.1 system dependency that breaks installs in
minimal/server environments. libgl1 is therefore also removed from
both Dockerfiles.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant