def DBSCAN(src, eps, min_samples):
    arr = cv2.cvtColor(src, cv2.COLOR_BGR2LAB).reshape((- 1), src.shape[2])
    clustering = skDBSCAN(eps=eps, min_samples=min_samples).fit(arr)
    labels = (clustering.labels_ + 1)
    maps = labels.reshape(src.shape[:2])
    return (maps, labels)
def DBSCAN(src, eps, min_samples):
    arr = cv2.cvtColor(src, cv2.COLOR_BGR2LAB).reshape((- 1), src.shape[2])
    clustering = skDBSCAN(eps=eps, min_samples=min_samples).fit(arr)
    labels = (clustering.labels_ + 1)
    maps = labels.reshape(src.shape[:2])
    return (maps, labels)