First time here? Check out the FAQ!
answered 2018-08-25 04:53:55 -0600
I add np.uint8 to the end of mask = np.zeros((3, 3)) and it worked! it is now: mask0 = np.zeros((3, 3), np.uint8)