pangeo-docker-images icon indicating copy to clipboard operation
pangeo-docker-images copied to clipboard

add opencv

Open hillsonghimire opened this issue 2 years ago • 4 comments

add opencv

hillsonghimire avatar Dec 20 '22 09:12 hillsonghimire

Binder :point_left: Try on Mybinder.org! Binder :point_left: Try on Pangeo GCP Binder! Binder :point_left: Try on Pangeo AWS Binder!

github-actions[bot] avatar Dec 20 '22 09:12 github-actions[bot]

/condalock Automatically locking new conda environment, building, and testing images...

pangeo-bot avatar Dec 20 '22 09:12 pangeo-bot

thanks for opening this @hillsonghimire could you please add some information about how you're using opencv? It has complex dependencies and increases the image sizes by quite a lot:

  Package                Version  Build                Channel                   Size
───────────────────────────────────────────────────────────────────────────────────────
  Install:
───────────────────────────────────────────────────────────────────────────────────────

  + alsa-lib               1.2.8  h166bdaf_0           conda-forge/linux-64     592kB
  + attr                   2.5.1  h166bdaf_1           conda-forge/linux-64      71kB
  + dbus                  1.13.6  h5008d03_3           conda-forge/linux-64     619kB
  + fftw                  3.3.10  nompi_hf0379b8_106   conda-forge/linux-64       2MB
  + glib                  2.74.1  h6239696_1           conda-forge/linux-64     486kB
  + glib-tools            2.74.1  h6239696_1           conda-forge/linux-64     109kB
  + gst-plugins-base      1.21.3  h4243ec0_1           conda-forge/linux-64       3MB
  + gstreamer             1.21.3  h25f0c4b_1           conda-forge/linux-64       2MB
  + gstreamer-orc         0.4.33  h166bdaf_0           conda-forge/linux-64     306kB
  + jack                  1.9.21  h583fa2b_2           conda-forge/linux-64     461kB
  + libcap                  2.66  ha37c62d_0           conda-forge/linux-64     100kB
  + libclang              15.0.6  default_h2e3cab8_0   conda-forge/linux-64     132kB
  + libclang13            15.0.6  default_h3a83d3e_0   conda-forge/linux-64       9MB
  + libcups                2.3.3  h3e49a29_2           conda-forge/linux-64       5MB
  + libdb                 6.2.32  h9c3ff4c_0           conda-forge/linux-64      24MB
  + libflac                1.4.2  h27087fc_0           conda-forge/linux-64     421kB
  + libgcrypt             1.10.1  h166bdaf_0           conda-forge/linux-64     720kB
  + libgpg-error            1.45  hc0c96e0_0           conda-forge/linux-64     292kB
  + liblapacke             3.9.0  16_linux64_openblas  conda-forge/linux-64      13kB
  + libllvm15             15.0.6  h63197d8_0           conda-forge/linux-64      32MB
  + libogg                 1.3.4  h7f98852_1           conda-forge/linux-64     211kB
  + libopencv              4.6.0  py310h6214075_6      conda-forge/linux-64      37MB
  + libopus                1.3.1  h7f98852_1           conda-forge/linux-64     261kB
  + libsndfile             1.1.0  hcb278e6_1           conda-forge/linux-64     349kB
  + libsystemd0              252  h2a991cd_0           conda-forge/linux-64     393kB
  + libudev1                 252  h166bdaf_0           conda-forge/linux-64     121kB
  + libvorbis              1.3.7  h9c3ff4c_0           conda-forge/linux-64     286kB
  + libxkbcommon           1.0.3  he3ba5ed_0           conda-forge/linux-64     595kB
  + mpg123                1.31.1  h27087fc_0           conda-forge/linux-64     535kB
  + mysql-common          8.0.31  h26416b9_0           conda-forge/linux-64       2MB
  + mysql-libs            8.0.31  hbc51c84_0           conda-forge/linux-64       2MB
  + opencv                 4.6.0  py310hff52083_6      conda-forge/linux-64      24kB
  + pulseaudio              16.1  h126f2b6_0           conda-forge/linux-64       2MB
  + py-opencv              4.6.0  py310hfdc917e_6      conda-forge/linux-64       1MB
  + qt-main               5.15.6  hafeba50_4           conda-forge/linux-64      55MB
  + xcb-util               0.4.0  h166bdaf_0           conda-forge/linux-64      21kB
  + xcb-util-image         0.4.0  h166bdaf_0           conda-forge/linux-64      24kB
  + xcb-util-keysyms       0.4.0  h166bdaf_0           conda-forge/linux-64      12kB
  + xcb-util-renderutil    0.3.9  h166bdaf_0           conda-forge/linux-64      16kB
  + xcb-util-wm            0.4.1  h166bdaf_0           conda-forge/linux-64      57kB

  Summary:

  Install: 40 packages

  Total download: 184MB

scottyhq avatar Dec 21 '22 23:12 scottyhq

There was some discussion on having the lightweight 'headless' version of opencv in conda-forge at https://github.com/conda-forge/opencv-feedstock/issues/293#issuecomment-982373647, but it didn't seem to get anywhere.

We could try to at least include the libGL.so.1 library so that users could at least install opencv on their own, see discussion at https://github.com/microsoft/planetary-computer-containers/issues/32 where I tried to add it to Planetary Computer? But best to understand the use case first.

weiji14 avatar May 18 '23 21:05 weiji14