Update NCTCRCHE100K.py
Browse files- NCTCRCHE100K.py +1 -1
NCTCRCHE100K.py
CHANGED
@@ -62,7 +62,7 @@ class NCTCRCHE100K(datasets.GeneratorBasedBuilder):
|
|
62 |
for filepath, image in images:
|
63 |
# extract text from each item
|
64 |
yield idx, {
|
65 |
-
"image": {"
|
66 |
"text": filepath[:filepath.find("-")]
|
67 |
}
|
68 |
idx += 1
|
|
|
62 |
for filepath, image in images:
|
63 |
# extract text from each item
|
64 |
yield idx, {
|
65 |
+
"image": {"path": filepath, "bytes": image.read()},
|
66 |
"text": filepath[:filepath.find("-")]
|
67 |
}
|
68 |
idx += 1
|