Skip to main content

Digital Ink Kit

Project description

dinkit

Digital Ink Kit provides digital ink identification function.

Example

from dinkit import Recognize

strokes = [[[312, 211], [312, 215], [312, 219], [310, 230], [307, 238], [305, 250], [305, 255], [302, 266], [296, 275], [292, 283], [289, 288], [283, 293], [283, 295], [279, 299], [275, 302], [274, 303], [274, 304], [273, 307], [271, 310], [271, 310]], [[382, 363], [401, 358], [417, 354], [449, 348], [461, 347], [473, 343], [483, 340], [488, 340], [492, 340], [494, 340], [495, 340], [496, 340], [496, 339], [496, 339]], [[304, 283], [306, 285], [313, 297], [319, 315], [327, 344], [332, 359], [336, 378], [338, 392], [340, 404], [343, 419], [347, 435], [349, 452], [351, 469], [352, 485], [354, 499], [356, 511], [359, 524], [359, 535], [361, 545], [361, 549], [361, 554], [362, 555], [362, 556], [361, 555], [355, 545], [346, 532], [339, 525], [332, 515], [332, 515]], [[280, 479], [282, 479], [308, 479], [329, 479], [342, 475], [350, 472], [364, 466], [374, 463], [380, 460], [392, 457], [396, 454], [400, 451], [403, 450], [404, 448], [405, 448], [407, 447], [409, 444], [411, 442], [413, 441], [415, 439], [418, 437], [421, 433], [421, 433]], [[426, 263], [426, 268], [440, 298], [453, 330], [470, 365], [480, 386], [487, 399], [497, 421], [508, 440], [521, 462], [532, 482], [544, 497], [555, 517], [565, 532], [572, 540], [578, 546], [582, 550], [584, 553], [588, 554], [588, 551], [586, 543], [583, 537], [583, 531], [583, 531]], [[575, 436], [574, 437], [569, 442], [563, 446], [542, 459], [517, 471], [502, 481], [491, 488], [483, 494], [473, 498], [466, 504], [460, 507], [458, 508], [457, 508], [456, 508], [455, 508], [454, 505], [453, 501], [453, 501]], [[466, 289], [468, 289], [478, 289], [479, 289], [482, 289], [487, 291], [492, 292], [494, 292], [495, 293], [496, 293], [497, 294], [498, 294], [500, 294], [501, 295], [503, 296], [506, 297], [510, 300], [512, 301], [514, 302], [514, 302]]]

reco = Recognize()
print(reco.Single(strokes))

Output

{'我': 3049, '找': 3784, '戌': 4144, '戎': 4449, '绒': 4740, '线': 4746, '拽': 4755, '伐': 4775, '战': 4802, '城': 4885}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dinkit-1.1.1.tar.gz (4.7 MB view hashes)

Uploaded Source

Built Distribution

dinkit-1.1.1-py3-none-any.whl (4.7 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page