-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Require opencv-python-headless
by default
#130
Comments
Hello there, thank you for opening an Issue ! 🙏🏻 The team was notified and they will get back to you asap. |
Hi, @fabito 👋🏻! That will be awesome for example if you want to limit the size of your Docker image. I definitely think it is a good move. The next question is how do we implement this? We could add install_requires=[
'numpy>=1.20.0',
'opencv-python', # this will install by default
'matplotlib',
'pyyaml'
],
extras_require={
'dev': [
'flake8',
'black==22.3.0',
'isort',
'twine',
'pytest',
'wheel',
'notebook',
'mkdocs-material',
'mkdocstrings[python]'
],
'headless': ['opencv-python-headless'], # extra for environments without GUI
}, |
A new extra sounds like a good route. |
I guess the alternative is to build two separate pip packages, |
Why use a |
Hi, @sanmai-NL 👋🏻! It looks like I'm already lagging behind the latest Python dev trends. We started working on a migration from |
@onuralpszr would be awesome if you could propose some solution that would work 🔥 |
Search before asking
Description
Installing supervision indirectly installs
opencv-python
package as a dependency.It would be nice to make it optional or replace
opencv-python
byopencv-python-headless
.Use case
For production inference environments we usually don't want/need to install/depend on GUI packages and libraries.
Additional
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: