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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file dinkit-1.1.1.tar.gz.

File metadata

  • Download URL: dinkit-1.1.1.tar.gz
  • Upload date:
  • Size: 4.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for dinkit-1.1.1.tar.gz
Algorithm Hash digest
SHA256 e6b0e8e890a82564ec0d9a3ce27fcdb63d7037d0554cb150cc7d3127fb9e00f9
MD5 1bc8848f984dbc687040f00752167d70
BLAKE2b-256 ba3a6f4524cf12ee8aedcfbcb4bc58db62c9b1df3bd49f1a13fc84829004beda

See more details on using hashes here.

File details

Details for the file dinkit-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: dinkit-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for dinkit-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d84e8d5cf6a75ed73205fc319ec2cf6cfc1dcad67b608eef02086bc8ae0a1be0
MD5 2ab9f0d7f86ea6fe1cdf3156d513a2c2
BLAKE2b-256 f1769f9aa6ee2f66af14de8933af2ed993ad3e58476b1b2b94d882555d5d088b

See more details on using hashes here.

Supported by

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