Merge pull request #52 from LDOUBLEV/fixocr

Fixocr
This commit is contained in:
xiaoting 2020-05-18 16:41:23 +08:00 committed by GitHub
commit 078a823ff5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -81,8 +81,8 @@ class EvalTestReader(object):
lines = fin.readlines()
for line in lines:
img_name = line.decode().strip("\n").split("\t")[0]
img_path = img_set_dir + "/" + img_name
img_list.append([img_path, img_name])
img_path = os.path.join(img_set_dir, img_name)
img_list.append(img_path)
else:
img_path = self.params['single_img_path']
img_list = get_image_file_list(img_path)