summaryrefslogtreecommitdiff
path: root/text_recognizer/metadata/emnist_lines.py
blob: 5a329bbc74d96a18d332e3efdb6e49f6d443ab3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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"
    / "mappings"
    / "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