A web application that converts uploaded images into artistic line art SVG drawings and G-code output using a combination of Python and Rust processing.
- Image preprocessing with background removal
- Configurable contrast settings for line detection
- Adjustable path length for line art optimization
- Outputs both SVG vector graphics and G-code
- Web interface with live preview
- Custom G-code tool on/off commands
- Batch processing support
The core functionality is built upon:
- ImageToLines by RandomGamingDev - Rust image processing
- svg2gcode by sameer - G-code generation
- Python 3.x
- Rust/Cargo
Install dependencies:
pip install -r requirements.txt
cargo build --release- Start the server:
python server.py-
Access the web interface at http://localhost:5000
-
Upload an image and configure settings:
- Contrast Threshold: Controls line detection sensitivity (lower is more sensitive) (0-50)
- Minimum Path Length: Filters short path segments (0-150)
- Remove Background: Toggle background removal
- Tool On Command (default: M3)
- Tool Off Command (default: M5)
- Press the Button to Process the Image! (First time running might take a few minutes to build the gcode generator and download the model for removing the background)
See LICENSE.md for details.