---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-5-0521a3cd8fe2> in <module>()
----> 1 grayscale.master_solver('petri.jpg')
/Users/philomathie/Programming/Casimir-Programming-2/grayscale.py in master_solver(img, xs)
75 """
76
---> 77 img = grayscale(img) ## gray scale
78
79 if xs!=None:
/Users/philomathie/Programming/Casimir-Programming-2/grayscale.py in grayscale(rgb)
8 def grayscale(rgb):
9
---> 10 r, g, b = rgb[:,:,0], rgb[:,:,1], rgb[:,:,2]
11 gray = 0.2989 * r + 0.5870 * g + 0.1140 * b
12
TypeError: string indices must be integers