Inkcadence: Browser-Only Personal Handwriting Rendering from Phone Photos with Classical Image Analysis and a Compact Character CNN
Systems that write text in a particular person's handwriting usually rely on server-side neural models trained on large corpora. This paper is a system and experience report on Inkcadence, an open-source (MIT) static web application that learns one person's handwriting from phone photos and renders new text that the person supplies, entirely in the browser, with no backend and no upload of photos. Handwriting is collected in three ways: a printable A4 letter sheet with corner fiducials that is rectified by a homography, photos of pages the person wrote earlier, from which letter-like ink components are harvested and labelled by a small convolutional network (about 100k parameters, trained on EMNIST ByClass) refined by the person's confirmed examples, and short known sentences copied onto plain paper, labelled by position. Page analysis estimates pens, heading treatment and style statistics such as slant, x-height and spacing with classical methods (Otsu thresholding, colour-aware ink masks, projection profiles). Rendering uses only the person's own glyph variants, a seeded pseudo-random generator for controlled variation, and composes missing letters from donor letters or names them. Every exported PNG and PDF carries an "AI-assisted handwriting" note. Evaluation is qualitative and uses only synthetic fixtures: we ran the project's 16 Node test scripts, which reported 340 passing checks and no failures, including 121 of 121 filled letter-sheet boxes extracted from a simulated phone photo and 39 of 39 spot-checked harvest labels on a synthetic page. We report no accuracy on real handwriting and no user study, and we discuss limitations and misuse risks.
Authors
- Muhammad Afzal Kalwar (ORCID: https://orcid.org/0009-0002-1636-9120)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-30
- DOI
- https://doi.org/10.5281/zenodo.24689130
- Primary Topic
- Handwritten Text Recognition Techniques
- Type
- preprint