All Projects → JuliaImages → QRCode.jl

JuliaImages / QRCode.jl

Licence: MIT license
Creating QR Codes within Julia

Programming Languages

julia
2034 projects

Projects that are alternatives of or similar to QRCode.jl

QRCodeMonkey
A library using PHP to generate QRCode from https://www.qrcode-monkey.com free
Stars: ✭ 46 (+58.62%)
Mutual labels:  qrcode-generator
ai barcode
Barcode generation,Barcode scanning,qrcode,qrcode generation,qrcode creator,flutter barcode,flutter qrcode,support android iOS web platform
Stars: ✭ 99 (+241.38%)
Mutual labels:  qrcode-generator
WifiBarcodeSample
Sample code for my article in DotNetCurry magazine on scanning barcodes. In this sample you can generate and scan QR codes that contain a Wi-Fi connection string
Stars: ✭ 13 (-55.17%)
Mutual labels:  qrcode-generator
SmoothLivePlot.jl
A Julia package for creating live-style plots during calculations.
Stars: ✭ 24 (-17.24%)
Mutual labels:  julia-package
BasisFunctionExpansions.jl
Basis Function Expansions for Julia
Stars: ✭ 19 (-34.48%)
Mutual labels:  julia-package
wifiqr
Create a QR code with your Wi-Fi login details
Stars: ✭ 207 (+613.79%)
Mutual labels:  qrcode-generator
Fezzik
Brute force sysimg building for Julia
Stars: ✭ 63 (+117.24%)
Mutual labels:  julia-package
laravel-qr-code-login
Today I will be showing you how to implement Laravel login with QRcode in a website. You can use my Laravel Starter so you can start the project in one minute .
Stars: ✭ 72 (+148.28%)
Mutual labels:  qrcode-generator
otp-authenticator-webapp
A 'Google Authenticator' like Single Page Application
Stars: ✭ 69 (+137.93%)
Mutual labels:  qrcode-generator
FaceDetection.jl
A face detection algorithm using Viola-Jones' rapid object detection framework written in Julia
Stars: ✭ 13 (-55.17%)
Mutual labels:  julia-package
qrencode-el
QRCode encoder for Emacs in pure elisp
Stars: ✭ 18 (-37.93%)
Mutual labels:  qrcode-generator
OmniSci.jl
Julia client for OmniSci GPU-accelerated SQL engine and analytics platform
Stars: ✭ 22 (-24.14%)
Mutual labels:  julia-package
ips-qr-code
IPS QR Code Generator
Stars: ✭ 30 (+3.45%)
Mutual labels:  qrcode-generator
SkiaSharp.QrCode
Qr Code Generator with Skia. (no System.Drawing)
Stars: ✭ 72 (+148.28%)
Mutual labels:  qrcode-generator
plsql-qr-code
Oracle PL/SQL Package and APEX plugin for QR Code Generation
Stars: ✭ 34 (+17.24%)
Mutual labels:  qrcode-generator
ArgMacros.jl
Fast, flexible, macro-based, Julia package for parsing command line arguments.
Stars: ✭ 29 (+0%)
Mutual labels:  julia-package
qrcode-bot
Artistic QR code generator bot for Facebook Messenger
Stars: ✭ 28 (-3.45%)
Mutual labels:  qrcode-generator
pix-payload-generator.net
Gerar payload para qrcode estático PIX. (Sistema de pagamento instantâneo do Brasil) Sem a necessidade de conexão com um PSP.
Stars: ✭ 23 (-20.69%)
Mutual labels:  qrcode-generator
qrcode
A simple library for generating QR codes in C.
Stars: ✭ 23 (-20.69%)
Mutual labels:  qrcode-generator
art-qr
JavaScript library to generate beautiful QR code in browser 艺术二维码
Stars: ✭ 19 (-34.48%)
Mutual labels:  qrcode-generator

QRCode

Create QR Codes as data within Julia, or export as PNG.

Create a QR Code as data

Creating a QR Code couldn't be simpler.

julia> using QRCode

julia> qrcode("Hello world!")
29×29 BitArray{2}:
 false  false  false  falsefalse  false  false
 false  false  false  false     false  false  false
     ⋮                       ⋱
 false  false  false  false     false  false  false
 false  false  false  false     false  false  false

The value true represents a dark space and false a white square.

There are two optional arguments: the error correction level (explained below) and compact which, when true, removes the white space around the code.

julia> qrcode("Hello world!", High(), compact = true)
25×25 BitArray{2}:
 true   true   true   truetrue   true   true
 true  false  false  false     false  false   true
    ⋮                       ⋱
 true  false  false  false     false  false  false
 true   true   true   true     false  false   true

Export a QR Code as a PNG file

Exporting files is also easy.

julia> exportqrcode("Hello world!")

A file will be saved at ./qrcode.png.

QRCode1

There are three optional parameters.

julia> exportqrcode("Hello world!", "img/hello.png", Medium(), targetsize = 10, compact = true)

This file will be saved as ./img/hello.png (if the img directory already exists), have a size of (approximately) 10 centimeters and be compact. Please note that compact codes may be hard to read depending on their background.

QRCode2

Error Correction Level

QR Codes and be encoded with four error correction levels Low, Medium, Quartile and High. Error correction can restore missing data from the QR code.

  • Low can restore up to 7% of missing codewords.
  • Medium can restore up to 15% of missing codewords.
  • Quartile can restore up to 25% of missing codewords.
  • High can restore up to 30% of missing codewords.

The four levels are encoded as types in QRCode.jl, grouped under the abstract type ErrCorrLevel. Don't forget to use parentheses when you call the values: qrcode("Hello", High()).

Encoding Modes

QR Codes can encode data using several encoding schemes. QRCode.jl supports three of them: Numeric, Alphanumeric and Byte.

Numeric is used for messages composed of digits only, Alphanumeric for messages composed of digits, characters A-Z (capital only) space and % * + - . / : \$, and Bytes for messages composed of ISO 8859-1 or UTF-8 characters. Please not that QR Code reader don't always support arbitrary UTF-8 characters.

Acknowledgments

QRCode.jl was built following this excellent tutorial.

QRCode.jl was created during the Efficient Scientific Computing with Julia workshop, taught by Valentin Churavy at the Okinawa Institute of Science and Technology in July 2019. Slides available here.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].