Ask Your Question

Revision history [back]

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)