53 img_paths = glob.glob(osp.join(dir_path,
'*.jpg'))
54 pattern = re.compile(
r'([\d]+)_c(\d\d\d)')
57 for img_path
in img_paths:
58 pid, camid = map(int, pattern.search(img_path).groups())
59 if pid == -1:
continue
60 assert 1 <= pid <= 776
61 assert 1 <= camid <= 20
66 data.append((img_path, pid, camid))