summaryrefslogtreecommitdiff
path: root/text_recognizer/metadata/emnist_lines.py
blob: 22e41b699c5a419ab473727796aaf726fd6ef349 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from pathlib import Path

import text_recognizer.metadata.emnist as emnist
import text_recognizer.metadata.shared as shared

PROCESSED_DATA_DIRNAME = shared.DATA_DIRNAME / "processed" / "emnist_lines"
ESSENTIALS_FILENAME = (
    Path(__file__).parents[1].resolve() / "data" / "emnist_lines_essentials.json"
)

CHAR_HEIGHT, CHAR_WIDTH = emnist.DIMS[1:3]
DIMS = (
    emnist.DIMS[0],
    CHAR_HEIGHT,
    None,
)  # width variable, depends on maximum sequence length

MAPPING = emnist.MAPPING