Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

mask = np.zeros_like(frame, dtype=np.uint8)

you need a uchar mask, not an float64 one, so make it:

mask = np.zeros_like(frame, dtype=np.uint8)