charDistCmp

Undocumented in source. Be warned that the author may not have intended to support it.
@safe
int
charDistCmp

Examples

Recognizer r = Recognizer(2);
r.load("/usr/share/tegaki/models/wagomu/joyo-kanji.model");
// this model is on a 1000x1000 canvas

Character ch = Character(100, 1);
for (int x = 0; x < 10; x++)
	ch.points[x] = [x * 80 + 100, 500, 0, 0];
auto res = r.recognize(ch, 5);

assert(res[0].unicode == '一');

Meta