Teklia/pylaia-esposalles
Image-to-Text
•
Updated
Error code: ClientConnectionError
The Marriage Licenses ground-truth is compiled from the Marriage Licenses Books conserved at the Archives of the Cathedral of Barcelona.
Note that all images are resized to a fixed height of 128 pixels.
All the documents in the dataset are written in Catalan.
{
'image': <PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=1244x128 at 0x1A800E8E190,
'text': 'donsella filla de Onofre Esquer morraler de Bara y'
}
image: a PIL.Image.Image object containing the image. Note that when accessing the image column (using dataset[0]["image"]), the image file is automatically decoded. Decoding of a large number of image files might take a significant amount of time. Thus it is important to first query the sample index before the "image" column, i.e. dataset[0]["image"] should always be preferred over dataset["image"][0].text: the label transcription of the image.