天天看点

TypeError: img is not a numpy array, neither a scalar

简单的办法就是转换:

image = numpy.array(image)