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>.

Installation / upgrade:

sudo easy_install -U qr2scad

Examples:

qr2scad < 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

If you're not sure about the file name format, learn more about wheel file names.

qr2scad-0.6-py2.6.egg (6.0 kB view details)

Uploaded Egg

File details

Details for the file qr2scad-0.6-py2.6.egg.

File metadata

  • Download URL: qr2scad-0.6-py2.6.egg
  • Upload date:
  • Size: 6.0 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for qr2scad-0.6-py2.6.egg
Algorithm Hash digest
SHA256 bf7d7d0dee9748b614ebe426fc5473843d960c5f20faf92e53d1a897cb7b3a97
MD5 5fec354d36e4603eb3149cc32b4b15d1
BLAKE2b-256 5364f05604b67c8a9385cadee4dbd241fe5c99458e2a1451bdd3bfd6cc76395f

See more details on using hashes here.

Supported by

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