Ask Your Question

hjy1312's profile - activity

2018-08-29 04:12:22 -0600 answered a question "TypeError: expected a single-segment buffer object" when calling cv.SaveImage

Add this line, background = np.ascontiguousarray(background) and it would work.