The situation is as follows
You are trying to unpack result returned from im.getpixel((i, j))
into 4 variables r, g, b, _
.
For this to work, the im.getpixel
has to return a list, a tuple or another iterable, which will provide just 4 values for the variables. Providing more or less makes a problem.
But in your case, the function im.getpixel((i, j))
is returning an int
, which is not by any means an iterable, so it complains.