Skip to content

Dev-Ray-Hunt/embroidery-processing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coloring Up Engine

POC repo for an embroidery coloring-up and proof-approval engine. Learning-first technology exploration, not a product build with a deadline.

For the full framing, read POC_PRD_Coloring_Up_Engine.md.

What's in this repo

  • POC specs at the repo root (POC_PRD_*, POC_1_* through POC_4_*, and the future-state PRD_Coloring_Up_Order_Management.md).
  • pocs/ — one folder per POC. Each has a README.md (links to its spec), a FINDINGS.md (the writeup deliverable), and source / tests directories.
    • poc1_dst_renderer/ — DST → preview image, 5-way bake-off
    • poc2_thread_catalogue/ — Madeira thread DB + color-matching algorithm bake-off
    • poc3_color_up_editor/ — interactive web editor (blocked on POCs 1 & 2)
    • poc4_order_workflow/ — order → proof → approval workflow (blocked on POC 3)
  • webapp/ — the Stitch Proofer: a single-file, zero-dependency web app (open webapp/DST_Render_Test.html in any browser, drag a DST onto it). Per-block color pickers, fabric colors, true 1:1 physical scale + zoom inspection. Parses DSTs locally in the browser — designs never leave the machine, so the file is safe to share with the team or host publicly.
  • shared/ — cross-POC Python utilities. First occupant: design_colors.py (default thread palette + fabric colors).
  • data/ — gitignored. Drop public sample DSTs into data/sample_dsts/, Madeira source files into data/madeira_sources/. See data/README.md for sources.
  • outputs/ — gitignored. Render artifacts, scorecards, comparison galleries.
  • Trim Sheet Examples/ — reference PDFs of the production trim sheet format the full app will eventually generate.
  • Blue Sky Archive/ — earlier embroidery generation roadmap, archived in favor of the simpler "render existing DSTs" approach.

Setup

Requires Python 3.12 and uv.

uv sync                        # creates .venv/ and installs deps
uv run playwright install chromium   # once — for the browser-renderer tests
uv run pytest                  # full suite (browser tests skip if chromium absent)
uv run ruff check .            # lint
uv run ruff format .           # format

Renderer C needs the system Cairo library:

  • macOS: brew install cairo pkg-config
  • Debian/Ubuntu: sudo apt-get install libcairo2-dev pkg-config

Test data

This project is architecturally and source-isolated from Straight Down's Wilcom toolchain. No production DSTs land here — only public sample DSTs (e.g., from pyembroidery's test corpus). See data/README.md for sources and licensing.

Where to start

POC 1 and POC 2 have no dependencies on each other and are intended to run in parallel:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors