$ show yashlamba/handwrite
Handwrite is a CLI application that converts a scanned handwriting sample into a TrueType font. The pipeline consists of three stages: SHEETtoPNG uses OpenCV to detect and extract individual character images from a grid-based form; PNGtoSVG uses Potrace to convert the PNG images to SVG vector outlines; and SVGtoTTF uses FontForge to compile the SVGs into a font file with configurable metrics, kerning, and bearings. The architecture is a simple sequential pipeline orchestrated by the CLI entry point. External dependencies include OpenCV, Pillow, Potrace, and FontForge. The codebase is well-structured with unit tests, CI, and modern Python packaging (uv, Python 3.14). The character detection module in `sheettopng.py` demonstrates reusable grid-based contour extraction logic.
The LLM identified 1 files worth highlighting for reuse:
Implements a generic grid-based character detection algorithm from a scanned form. Uses OpenCV for thresholding, contour detection, filtering by quadrilateral approximation, and coordinate-based sorting to extract a matrix of character images. The method is parameterized by rows and columns, making it adaptable to other grid-based form processing tasks. The contour filtering and sorting logic demonstrates non-obvious computer vision skill and can be extracted with minimal modification.