Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Conversation

@Maslino
Copy link

@Maslino Maslino commented Aug 15, 2024

There are four opencv python packages:

  • opencv-python
  • opencv-contrib-python
  • opencv-python-headless
  • opencv-contrib-python-headless

Only one of them should be installed otherwise there would have conflict.

The code line

if 'opencv-python' in packages() or 'opencv-python-headless' in packages():

only consider opencv-python and opencv-python-headless and the other two are not considered. The above line is also not neccessary because if opencv package was not installed, an ImportError exception would be thrown.

This PR tries to fix this problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant