Mahotas imread无法确定文件类型

时间:2014-08-22 23:03:24

标签: python image macos canopy mahotas

您好我正在尝试使用Mahotas来阅读图像。我收到一条错误,上面写着“ValueError:mahotas.freeimage:无法确定文件picture.jpeg的类型”。我尝试了几种图像和文件类型,包括bmp和png。

import mahotas
picture = mahotas.imread('picture.jpeg') #line throws error

此问题也是here跟我一样跟tutorial一样,但未找到解决方案的问题。

  1. 我在Mac OSx 10.9.4上运行
  2. 我正在使用Canopy 1.4.1
  3. 我使用Homebrew
  4. 安装了FreeImage 3.16.0

    如果有任何帮助,调用$ brew doctor会返回以下警告:

    Warning: Enthought Python was found in your PATH.
    This can cause build problems, as this software installs its own
    copies of iconv and libxml2 into directories that are picked up by
    other build systems.
    
    Warning: Python is installed at /Library/Frameworks/Python.framework
    

0 个答案:

没有答案