w46881/coloringzap-lineart-parameters
Photo-to-line-art parameter sweep (coloringzap) Review date: 2026-09-15 — every number here was measured by scripts/export-dataset.mjs, not estimated. Which settings turn a photo into a clean, printable line drawing? This dataset is the measured answer: 128 rows covering 32 parameter combinations across 4 synthetic image classes, plus the 8 test images that went in and came out. These measurements were produced by the same open-source pipeline that runs in the browser at… See the full description on the dataset page: https://huggingface.co/datasets/w46881/coloringzap-lineart-parameters.
Photo-to-line-art parameter sweep (coloringzap)
Review date: 2026-09-15 — every number here was measured by scripts/export-dataset.mjs, not estimated.
Which settings turn a photo into a clean, printable line drawing? This dataset is the measured answer: 128 rows covering 32 parameter combinations across 4 synthetic image classes, plus the 8 test images that went in and came out.
These measurements were produced by the same open-source pipeline that runs in the browser at https://coloringzap.com, published in full at https://github.com/w46881/coloringzap-algorithms.
Headline result
Best parameter set per image class:
Files
Columns in parameter-sweep-full.csv
How "clean" was measured
- line coverage % — below ~1.5% the page is nearly blank; above ~12% it turns into a muddy grey blob.
- lone-speck % — isolated dots are what make a page look dirty.
- Winner = lowest
2 x lone-speck% + penalty(coverage outside 1.5–12%).
Known limits
- Smooth gradients produce nothing. The
smooth-portraitclass returned 0.00% line coverage at all 32 combinations — soft shading has no local step for the Sobel operator to catch. No setting fixes this; it needs a different algorithm. - Busy photos stay muddy.
detailed-textureonly reached a printable state at blur 3 / threshold 90, and even then coverage was 23.55%, well above the ~12% ceiling. - The test images are synthetic, generated procedurally by the script — not real photographs, and not photos of any person. Treat the numbers as a starting point and re-run the script on your own images.
- `lone-speck %` is 0.00 in every row. Do not read that as "the denoise step is perfect"; read it as "speckle was not the failure mode on these four images".
Reproduce
node scripts/export-dataset.mjsNo dependencies, no network. Node 18 or newer.
License — two scopes, deliberately not mixed
- Data (
data/*.csv,data/**/*.png) — CC0 1.0 Universal (public domain). Copy it, republish it, build on it, no attribution required. - Code (
scripts/,src/) — MIT.
Citation
coloringzap.com (2026). Photo-to-line-art parameter sweep (coloringzap).
Measured 2026-09-15. CC0 1.0 (data) / MIT (code).
https://coloringzap.com | https://github.com/w46881/coloringzap-algorithms