Skip to content

TactiDiagram

Textbook diagram in, tactile graphic out. TactiDiagram turns a labeled science diagram into a first-draft tactile graphic designed for swell paper, with braille labels. The application runs locally in the browser: no uploads, no accounts, no application server. GitHub Pages hosts this documentation only; it does not host the application.

TactiDiagram is a working tool in daily use by a braille transcriber, not a demo. It began as a hackathon build and is now maintained and refined against real transcription work: preparing science and geography diagrams for students who read by touch.

Who it is for

  • Braille transcribers and teachers of the visually impaired (TVIs) who need first drafts of tactile graphics that follow the BANA Guidelines and Standards for Tactile Graphics (2022).
  • Educators who want material ready for review and final cleanup rather than a blank starting point.
  • Anyone producing tactile diagrams who prefers a private, offline-capable tool.

Using the application

Start with Getting started. The Application controls and options reference explains every current setting, result view, review action, and export.

Desktop distribution

Packaged releases provide an x86_64 Linux AppImage, a Windows x64 NSIS installer (TactiDiagram-Setup.exe), and a portable Windows ZIP. The NSIS installer installs the Neutralino executable and its resources.neu runtime payload per-user, creates desktop and Start Menu shortcuts, and registers an uninstaller; it defaults to %LOCALAPPDATA%\Programs\TactiDiagram and does not require administrator elevation. All desktop builds use the operating system's WebView runtime. GitHub Actions builds the Windows payload first, then compiles packaging/windows/TactiDiagram.nsi with NSIS; only valid vYYYY.MM.DD version-tag pushes publish releases. The tag determines the version, and the release workflow automatically updates package.json and package-lock.json on the default branch. See Desktop app and packaging for the installer logic, reproducible build commands, installation details, and platform prerequisites.

Why it exists

Each textbook diagram has to be redrawn by hand as a tactile graphic: clutter removed, print replaced with braille, lines spaced at least 3 mm apart so fingers can tell them apart, only a few distinguishable textures. A science assignment with graphics can take up to 10 hours to transcribe (Jordan School District, 2024), and a 2023 survey found almost half of the teachers making tactile graphics had never been trained to do so (British Journal of Visual Impairment).

Naive tracing does not work as a complete transcription method: edge detection can turn printed labels, shading, and decoration into clutter. The default TactiDiagram workflow reads labels, follows leader lines, segments named parts, and redraws the result for touch. Two optional Potrace paths serve different purposes: Autotrace reconstructs the raster before analysis, while direct Potrace SVG output runs the full analysis and then replaces segmented artwork with transparent monochrome object outlines. The direct output keeps braille placement and key mapping from the standard tactile layout.

What it produces

  • A tactile page in millimetres with a bold/fine line hierarchy, optional textures, and UEB Grade 1 (uncontracted) braille labels
  • A key page when labels do not fit in full braille
  • A 3D relief preview of how the page will feel, plus an STL export for 3D printing
  • A tactile SVG (pure black, no greys) ready for swell paper, or print / PDF at true page size
  • An automated guideline check, shown side by side with a naive edge-tracing baseline

In evaluation on 16 Wikimedia Commons diagrams, TactiDiagram found 148 of 151 hand-counted labels (98%), placed all but 1 of 233 detected labels in braille, and left 66 fragments below the 12.5 mm touch threshold versus 763 for plain edge tracing. See Evaluation and benchmarks.

Learn the theory and technology

  • Architecture: why the system combines OCR, geometric computer vision, and segmentation.
  • Pipeline stages: standard segmented workflow, Autotrace preprocessing, direct Potrace output, edge-map construction, and how errors propagate.
  • Models and inference engines: the exact OCR and segmentation model files, runtime libraries, and their purposes.
  • WebGPU browser setup: browser compatibility, GPU acceleration, and SAM 2.1 troubleshooting.
  • Tools and libraries: every third-party tool the application uses (SlimSAM, SAM 2.1, PaddleOCR, Tesseract.js, Indra, Potrace, OpenCV.js, ONNX Runtime Web, three.js, Neutralino), what it does technically, and why it is worth shipping.
  • Advanced AI model options: larger models that could improve grounding, segmentation, and diagram reasoning. These are research options, not implemented features.

Where to go next

Status and honest limits

These are automated checks derived from BANA guidelines, not a substitute for a qualified transcriber. TactiDiagram has not yet been formally tested with blind readers or printed on physical swell paper. Labels are uncontracted UEB. Diagrams without printed labels (or with only math symbols) get outlines only. OCR misses some text on busy fills; the teacher can edit wrong words but cannot yet add a missed label.

Editable SVG post-processing and quality control

The standard tactile SVG export is a vector document with physical dimensions in millimetres. It contains separate, named SVG groups for the page background, textures, structural line art, outlines, label-clearance knockouts, leader lines, and braille dots. The key-page SVG also separates braille from sighted print-reference text. Paths, circles, and text remain vector objects rather than a flattened screenshot.

Inkscape is the recommended reference editor because it is free and open-source (FOSS). The exported SVG is standard vector artwork; other SVG-capable editors—including Adobe Illustrator and Affinity Designer—can also be used. TactiDiagram targets FOSS workflows, so Inkscape is the editor used in these instructions, not a technical requirement.

Recommended post-processing sequence:

  1. Export the editable tactile SVG and, when present, the key-page SVG.
  2. Open the SVG in Inkscape. Use the Objects/Layers panel to inspect and isolate the named groups.
  3. Compare the artwork with the source diagram and the TactiDiagram analysis views. Correct path geometry, remove false contours, reconnect broken boundaries, and adjust leader placement where necessary.
  4. Check label-to-part correspondence, braille spelling and dot patterns, line hierarchy, texture distinction, clearances, and page margins. Do not assume that a visually attractive edit is tactilely legible.
  5. Preserve the physical page dimensions and millimetre scale. Avoid scaling individual objects in ways that alter specified braille or line dimensions.
  6. Save a separate reviewed SVG, then produce a physical proof on the target printer/swell-paper/fuser system. Inspect the raised output and obtain tactile-reader feedback where possible.

The vector editor is a post-processing and QC option, not an automated validation step. Editing SVG geometry does not update TactiDiagram's analysis state or its automated guideline report. Re-run or independently perform checks after edits, and retain the unmodified export so changes can be compared or reverted.

The optional direct Potrace SVG is a different deliverable: black vector outline paths on a transparent canvas, no source-colour fills or opaque background, and independent braille layers for the title and each label. Both output modes use the normal key-page renderer when keys are required.