Skip to content
Snippets Groups Projects
Commit 5c37875f authored by Manon Blanco's avatar Manon Blanco
Browse files

Send str to OpenCV

parent 60fab108
No related branches found
No related tags found
1 merge request!259Send str to OpenCV
......@@ -120,7 +120,8 @@ class OCRDataset(Dataset):
if self.load_in_memory:
return self.samples[i]["img"]
return self.preprocessing_transforms(read_image(self.samples[i]["path"]))
image_path = str(self.samples[i]["path"])
return self.preprocessing_transforms(read_image(image_path))
def compute_std_mean(self):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment