Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use headless builds of OpenCV #33

Merged
merged 2 commits into from Dec 9, 2020
Merged

Use headless builds of OpenCV #33

merged 2 commits into from Dec 9, 2020

Conversation

willgraf
Copy link
Contributor

@willgraf willgraf commented Dec 9, 2020

From the opencv-python-headless README:

Packages for server (headless) environments (such as Docker, cloud environments etc.), no GUI library dependencies

These packages are smaller than the two other packages above because they do not contain any GUI functionality (not compiled with Qt / other GUI components). This means that the packages avoid a heavy dependency chain to X11 libraries and you will have for example smaller Docker images as a result. You should always use these packages if you do not use cv2.imshow et al. or you are using some other package (such as PyQt) than OpenCV to create your GUI.

Since we only use cv2 for resizing images, we should use the headless build.

@willgraf willgraf merged commit 6c06aee into master Dec 9, 2020
@willgraf willgraf deleted the opencv-headless branch December 9, 2020 00:46
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.

None yet

1 participant