首页 > 编程语言 > 详细

Python开源库的bug

时间:2014-08-29 10:33:57      阅读:296      评论:0      收藏:0      [点我收藏+]

scipy

在misc的pilutil.py中def fromimage(im, flatten=0)函数中,

# workaround for crash in PIL, see #1613.
im.convert(‘L‘)

上面是之前的代码,当图片模式是二值模式时,此处会出错,因为im.convert(‘L‘)对原图片没有任何变化,改为

im = im.convert(‘L‘)

Python开源库的bug

原文:http://www.cnblogs.com/summerwinter/p/3944191.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!