frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Txt2plotter – True centerline vectors from Flux.2 for pen plotters

https://github.com/malvarezcastillo/txt2plotter
1•tsanummy•1h ago
I’ve been working on a project to bridge the gap between AI generation and my AxiDraw, and I think I finally have a workflow that avoids the usual headaches.

If you’ve tried plotting AI-generated images, you probably know the struggle: generic tracing tools (like Potrace) trace the outline of a line, resulting in double-strokes that ruin the look and take twice as long to plot.

What I tried previously:

- Potrace / Inkscape Trace: Great for filled shapes, but results in "hollow" lines for line art.

- Canny Edge Detection: Often too messy; it picks up noise and creates jittery paths.

- Standard SDXL: Struggled with geometric coherence, often breaking lines or hallucinating perspective.

- A bunch of projects that claimed to be txt2svg but which produced extremely poor results, at least for pen plotting. (Chat2SVG, StarVector, OmniSVG, DeepSVG, SVG-VAE, VectorFusion, DiffSketcher, SVGDreamer, SVGDreamer++, NeuralSVG, SVGFusion, VectorWeaver, SwiftSketch, CLIPasso, CLIPDraw, InternSVG)

My Approach:

I ended up writing a Python tool that combines a few specific technologies to get a true "centerline" vector:

1. Prompt Engineering: An LLM rewrites the prompt to enforce a "Technical Drawing" style optimized for the generator.

2. Generation: I'm using Flux.2-dev (4-bit). It seems significantly better than SDXL at maintaining straight lines and coherent geometry.

3. Skeletonization: This is the key part. Instead of tracing contours, I use Lee’s Method (via scikit-image) to erode the image down to a 1-pixel wide skeleton. This recovers the actual stroke path.

4. Graph Conversion: The pixel skeleton is converted into a graph to identify nodes and edges, pruning out small artifacts/noise.

5. Optimization: Finally, I feed it into vpype to merge segments and sort the paths (TSP) so the plotter isn't jumping around constantly.

You can see the results in the examples inside the Github repo.

The project is currently quite barebones, but it produces better results than other options I've tested so I'm publishing it. I'm interested in implementing better pre/post processing, API-based generation, and identifying shapes for cross-hatching.

Show HN: Chat app with Hubot – hubot-chat

https://github.com/hubot-friends/hubot-chat
1•joeyguerra•2m ago•0 comments

Install.md: Innovation or Reinventing Gherkin?

https://docsalot.dev/blog/install-md-vs-getting-started-guides
2•fazkan•7m ago•0 comments

From Old English to Modern American English in One Monologue [video]

https://www.youtube.com/watch?v=842OX2_vCic
2•Teever•9m ago•0 comments

Tell HN: The current top story on R/news is LLM slop

https://old.reddit.com/r/news/
3•perihelions•9m ago•1 comments

American Closed Source vs. Chinese Open Source: A False Dichotomy

https://senteguard.com/blog/#post-h2V9GtUh5Xts9NTzH4zu
1•djwide•10m ago•1 comments

How criminals spread their ill-gotten gains to everyday business ventures

https://cyberscoop.com/what-cybercriminals-do-with-their-money-sophos/
2•Gaishan•13m ago•0 comments

HDMI 2.1 VRR support in AMDGPU via non-encumbered party

https://www.phoronix.com/news/AMDGPU-HDMI-Gaming-Features
3•snvzz•13m ago•0 comments

ARK's Price Target for Tesla in 2025 (2021)

https://www.ark-invest.com/articles/valuation-models/tesla-price-target-2
2•kklisura•15m ago•1 comments

3D printing my laptop ergonomic setup

https://www.ntietz.com/blog/3d-printing-my-laptop-ergonomic-setup/
1•kurinikku•16m ago•0 comments

Scandal: Various Organizations Leaked America's Biggest Math Test

https://tatler.lakesideschool.org/5784/showcase/scandal-how-various-organizations-leaked-americas...
1•paulpauper•17m ago•0 comments

Europe Contends with a Big New Threat: The U.S.

https://www.wsj.com/world/europe/europe-contends-with-a-big-new-threat-the-u-s-b76d26eb
3•doener•18m ago•1 comments

Batoto: Closing One Chapter

https://old.reddit.com/r/Batoto/comments/1qhgm2t/closing_one_chapter/
1•ValentineC•18m ago•0 comments

FelPawns – My first attempt to turn RimWorld into AI-Dungeon

https://captain-fel.itch.io/felpawns
1•walterfreedom•23m ago•1 comments

Vivo Time

https://lopespm.com/product/2026/01/19/vivotime.html
2•lopespm•23m ago•0 comments

Share Your Reminders to Yourself

https://herbertlui.net/share-your-reminders-to-yourself/
1•herbertl•24m ago•0 comments

Four Years of War in One Field – WW1 Documentary (No AI) [video]

https://www.youtube.com/watch?v=wrwUDqdW0Ds
1•vinnyglennon•24m ago•0 comments

OpenAI: A business that scales with the value of intelligence

https://openai.com/index/a-business-that-scales-with-the-value-of-intelligence/
1•PankajGhosh•26m ago•0 comments

Ask HN: How would you design for this scale today?

4•phs318u•27m ago•0 comments

Render meshes using realtime traditionally hand-painted textures

https://github.com/Rink37/BOBJECT_engine
1•hydrolox•27m ago•0 comments

The catch-22 with Apple security (2016)

https://www.infoworld.com/article/2248024/the-catch-22-with-apple-security.html
1•mooreds•28m ago•0 comments

Controlinfra – Free AI-powered Terraform drift detection

https://www.controlinfra.com/https:/controlinfra
1•lbenagha•32m ago•1 comments

I built an AI to catch my own revenge trading

https://m1nd.app/blog/ai-psychology-detection
1•timoslav•34m ago•0 comments

Show HN: Stream full Windows system audio to Google Nest speakers (no cloud)

https://www.pcnestspeaker.app
1•kepners•37m ago•0 comments

LLMs and Your Career

https://notes.eatonphil.com/2026-01-19-llms-and-your-career.html
1•cod1r•40m ago•0 comments

Only Known Photos of Computing Pioneer Ada Lovelace Join UK National Collection

https://news.artnet.com/art-world/ada-lovelace-daguerreotypes-uk-national-portrait-gallery-2735593
2•gnabgib•43m ago•0 comments

Show HN: Bubblewrap TUI – makes bubblewrap's command lines less terrifying

https://github.com/reubenfirmin/bubblewrap-tui
1•smallerfish•43m ago•1 comments

Geoff Huntley, creator of the Ralph loop, goat farmer, prophet

https://www.youtube.com/watch?v=lQ2ihlUzlfs
2•claudiacsf•44m ago•0 comments

OpenSplitDeck

https://github.com/tommybee456/OpenSplitDeck
1•euazOn•44m ago•1 comments

A fun trick for getting discovered by LLMs and AI tools

https://cassidoo.co/post/ai-llm-discoverability/
2•mooreds•44m ago•0 comments

The Problem with Lying Is Keeping Track of All the Lies

https://materialize.com/blog/keeping-track-lies/
2•transpute•45m ago•1 comments