QR code to OpenSCAD converter
Project description
qr2scad - Convert QR code images to OpenSCAD <http://github.com/l0b0/qr2scad>
Default syntax:
qr2scad < input_file
Description:
For each black pixel in the input, it will create a cube in the output.
The result can be used in an existing OpenSCAD file as follows: 1. Remove the QR code from a flat surface using the difference() function. 2. After printing, splash some removable paint or ink on the QR code holes. 3. Remove the residue around the holes with a piece of cloth, leaving the color in the holes intact.
This code does not optimize the output in any way. If you get a really big result file, try to scale it down and verify that it is still readable using <http://zxing.org/w/decode.jspx>.
Examples:
- ./qr2scad.py < example.png > example.scad
Convert example.png to example.scad
<http://www.thingiverse.com/thing:4448>
Bugs:
Please email bug reports to victor dot engmark at gmail dot com.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.