Ask Your Question

Revision history [back]

Your image returned from detect_image() is probably not contiguous. You can check with

assert image.flags['C_CONTIGUOUS'] == True

and if it that fails, you can make it contiguous with

image = np.ascontiguousarray(image)