Converted all np.int to np.int32, which should solve OpenCV problems on
64bit machines