import glob


def findLblWithoutImg(pathI, pathII):
    """
    :param pathI: a glob path. example: "D:/大块煤数据/大块煤第三次标注数据/images/*.jpg"
    :param pathII: a glob path. example: "D:/大块煤数据/大块煤第三次标注数据/labels/*.txt"
    :return: num of image which not has label
    """
    num = 0
    pathI = glob.glob(pathI)
    pathII = glob.glob(pathII)
    imgNames = [i.split("\\")[-1].split(".")[0] for i in pathI]
    lblNames = [i.split("\\")[-1].split(".")[0] for i in pathII]
    for lbl in lblNames:
        if lbl not in imgNames:
            print(lbl)
            num += 1
    return num