Closed fct-edilberto closed 7 years ago
#loop over all images
imgFilenames = getFilesInDirectory(imagesToAnnotateDir, ".jpg")
for imgIndex, imgFilename in enumerate(imgFilenames):
labelsPath = os.path.join(imagesToAnnotateDir , imgFilename[:-4] + ".bboxes.labels.tsv")
if os.path.exists(labelsPath):
return True //and go to other images with no labels
return False
in 6_scoreImage i like to obtain a message true/false if the image have any label or not because i have a lot of images