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

Please use opencv-python-headless #258

Open
alexkreidler opened this issue Dec 10, 2024 · 0 comments
Open

Please use opencv-python-headless #258

alexkreidler opened this issue Dec 10, 2024 · 0 comments

Comments

@alexkreidler
Copy link

Based on a quick search of the codebase, surya only uses utility functions from cv2, and no GUI functions like imshow. If you use the headless version of the package, which is identical but doesn't include the GUI functions, then it would be easier to install in docker and would speed up installation times for regular users.

From the opencv-python-headless docs:

b. 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.

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

No branches or pull requests

1 participant