Skip to content

Repository files navigation

🧵 StringArtGenerator

Turn a photo into string art: one continuous thread wound around pins, with a step-by-step build guide.

A Streamlit app built around a greedy line-selection algorithm with pure-ratio scoring: it picks each next thread path by average darkness density, which keeps fine detail and stops the thread from "rim walking" across white space. A taboo list prevents loops.

  • Live preview as the thread is laid down, line by line
  • Build mode: an interactive player that tells you exactly which pin to go from and to
  • Save & load progress as JSON
  • Zoom, offset, contrast and edge-enhancement controls; optional ngrok sharing
pip install -r requirements.txt
streamlit run app.py

About

Streamlit app that turns photos into string art with a greedy pure-ratio algorithm, live preview and an interactive build guide.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages