| 1 | initial version |
Chances are that the problem in the line PixelNum, Collor_Channel = im.shape:
sage: shape = (1,2,3)
sage: PixelNum, Collor_Channel = shape
Traceback (most recent call last):
----> 1 PixelNum, Collor_Channel = shape
ValueError: too many values to unpack
Did you check the value of im.shape in particular if its size is really equal to 2?
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.