danforthcenter / plantcv

Plant phenotyping with image analysis
Mozilla Public License 2.0
665 stars 265 forks source link

Ability to install with opencv-headless, remove altair dependency etc. #1515

Open ogencoglu opened 6 months ago

ogencoglu commented 6 months ago

Currently plantcv requires opencv-python which comes with a lot of bloat (GUI, libGL etc) if those are not needed. Typical solution for projects that do not need that is simply using opencv-python-headless. Similarly altair and such visualization libraries are not needed for core functionalities.

It would make sense to have a separate, distilled plantcv that does not require especially full opencv install. In addition, library versions in plantcv are not fixed and might change the behaviour. I suggest those to be fixed as well in pyproject.toml.