python code so far
At the moment it can find the actual resistor, and generates a mask so that
a line containing all the coloured bands is generated