def key_filt(keypoints1, keypoints2):
    """
    If there are any similar keypoints between two filtering methods used,
    This will find and remove duplicates in one list. 
    """
    duplicates = 0
    if len(keypoints1) != 0 and len(keypoints2) != 0:
        newk1 = keypoints1
        for k1 in keypoints1:
            for k2 in keypoints2:
                if int(k1.pt[0]) == int(k2.pt[0]) and int(k1.pt[1]) == int(k2
                    .pt[1]):
                    newk1.remove(k1)
                    duplicates += 1
        return newk1, duplicates
    else:
        return keypoints1, duplicates
