cpoints = np.unique(cpoints)
return cpoints.view('i4').reshape((-1, 2))

def using_set():
    return np.vstack([np.array(u) for u in set([tuple(p) for p in points])])
Finding unique points in numpy array