Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

qr2scad-0.1-py2.6.egg (5.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page