blob: 73b2a284a705ea61aa1ff4cef4992eee3d36a978 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import text_recognizer.metadata.emnist as emnist
import text_recognizer.metadata.shared as shared
PROCESSED_DATA_DIRNAME = shared.DATA_DIRNAME / "processed" / "iam_lines"
IMAGE_SCALE_FACTOR = 2
CHAR_WIDTH = emnist.INPUT_SHAPE[0] // IMAGE_SCALE_FACTOR # rough estimate
IMAGE_HEIGHT = 112 // IMAGE_SCALE_FACTOR
IMAGE_WIDTH = 3072 // IMAGE_SCALE_FACTOR # rounding up IAMLines empirical maximum width
DIMS = (1, IMAGE_HEIGHT, IMAGE_WIDTH)
OUTPUT_DIMS = (89, 1)
MAPPING = emnist.MAPPING
|