画像処理環境構築雑記(SimpleCV1.3編)

ずっと触ってなかったSimpleCVがふと気づいたら1.3になってたので
Windows8.1マシンにクリーンインストールした。
 
OpenCVのサンプルまでは通るのだが,SimpleCVで以前動いてたものが動かない。
「You need the python image library to save by filehandle」ってなエラーメッセージなので
そのままググったら,以下のページが出たのでそのまま対応した。
 
http://ib-krajewski.blogspot.jp/2012/11/simplecv-install-and-you-need-python.html

The solution is simple. Well, just open this file:
C:\Python27\Lib\site-packages\SimpleCV\base.py
and change the following line***:
from Image.GifImagePlugin import getheader, getdata
into:
from GifImagePlugin import getheader, getdata

*** somehow for Windows distribution the GifImagePlugin isn't a subpackage of Image, and the PIL package just isn't there to be used as prefix! Despite the warning, the problem isn't lack of the PIL installation, but failure to find one of it's subpackages.