0

I have imported the scikit-image library using the following code:

    from skimage.measure import compare_ssim as ssim

And I used the library here in my program:

        s = ssim(imageA, imageB)

However, I keep getting this error:

    from skimage.measure import compare_ssim as ssim
    ModuleNotFoundError: No module named 'skimage'

I have installed scikit-image on my computer, so I am not sure why it is not recognizing this library.

SKunkel
  • 11
  • 3

1 Answers1

0

skimage.measure library has been renamed now. Instead of

from skimage.measure import compare_ssim as ssim

use

from skimage.metrics import structural_similarity as ssim

Christoph Rackwitz
  • 11,317
  • 4
  • 27
  • 36