내가 tensorflow 내장 된 API를 GTSRB 데이터 집합을 읽을 수 (리더 API)와 GTSRB 데이터를 읽을어떻게 tensorflow 리더 API
누구든지 도와 드릴까요?
참고 : 나는 _parse_annotations가 German Traffic Sign Recognition Benchmark
def _parse_annotations(prefix, gt_file, cut_roi):
reader = csv.reader(gt_file, delimiter=';')
reader.next()
images = {'x': [], 'y': []}
for row in reader:
# first column of csv file is filename
image = cv2.imread(prefix + row[0])
# remove regions surrounding the actual traffic sign
if cut_roi:
image = image[np.int(row[4]):np.int(row[6]), np.int(row[3]):np.int(row[5]), :]
images['x'].append(image)
images['y'].append(row[7])
return images
당신이 이미 시도한 것을 보여주세요. – tektiv