summaryrefslogtreecommitdiff
path: root/text_recognizer/metadata/iam.py
blob: 6995f8356871ac1f059bcb5260121a6ba74de409 (plain)
1
2
3
4
5
6
7
8
9
import text_recognizer.metadata.shared as shared

RAW_DATA_DIRNAME = shared.DATA_DIRNAME / "raw" / "iam"
METADATA_FILENAME = RAW_DATA_DIRNAME / "metadata.toml"
DL_DATA_DIRNAME = shared.DATA_DIRNAME / "downloaded" / "iam"
EXTRACTED_DATASET_DIRNAME = DL_DATA_DIRNAME / "iamdb"

DOWNSAMPLE_FACTOR = 2  # if images were downsampled, the regions must also be
LINE_REGION_PADDING = 8  # add this many pixels around the exact coordinates