scipy.misc.imread creates an image with no size or shape

后端 未结 1 1740
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-19 04:43

I\'m trying to get scipy.misc.imread to just read in an image and tell me it size, which I\'ve been able to do fine on other computers but it\'s failing for me on a new Mac:

1条回答
  •  爱一瞬间的悲伤
    2021-01-19 04:55

    Solved! Libjpeg wasn't installed when I installed PIL. So I did this:

    pip uninstall PIL
    brew install libjpeg
    pip install PIL
    

    and it works. I got the hint from here:

    https://stackoverflow.com/a/12194881/11522

    0 讨论(0)
提交回复
热议问题