1 | initial version |
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)