ユーザ用ツール

サイト用ツール


サイドバー

最新の10件
一覧
linux:qrcode

QR Code

qreator

graphical utility for creating QR codes
 Qreator enables you to easily create your own QR codes to encode different
 types of information in an efficient, compact and cool way.
 .
 Qreator supports creating the following kinds of QR codes:
  - Business card
  - Geolocation
  - Phone call/SMS
  - Text
  - URL
  - Wi-Fi network

qrencode

QR Code encoder into PNG image
 Qrencode is a utility software using libqrencode to encode string data in
 a QR Code and save as a PNG or an EPS image.
$ qrencode
qrencode version 4.0.2
Copyright (C) 2006-2017 Kentaro Fukuchi
Usage: qrencode [OPTION]... [STRING]
Encode input data in a QR Code and save as a PNG or EPS image.

  -h           display this message.
  --help       display the usage of long options.
  -o FILENAME  write image to FILENAME. If '-' is specified, the result
               will be output to standard output. If -S is given, structured
               symbols are written to FILENAME-01.png, FILENAME-02.png, ...
               (suffix is removed from FILENAME, if specified)
  -r FILENAME  read input data from FILENAME.
  -s NUMBER    specify module size in dots (pixels). (default=3)
  -l {LMQH}    specify error correction level from L (lowest) to H (highest).
               (default=L)
  -v NUMBER    specify the minimum version of the symbol. (default=auto)
  -m NUMBER    specify the width of the margins. (default=4 (2 for Micro))
  -d NUMBER    specify the DPI of the generated PNG. (default=72)
  -t {PNG,PNG32,EPS,SVG,XPM,ANSI,ANSI256,ASCII,ASCIIi,UTF8,ANSIUTF8}
               specify the type of the generated image. (default=PNG)
  -S           make structured symbols. Version must be specified.
  -k           assume that the input text contains kanji (shift-jis).
  -c           encode lower-case alphabet characters in 8-bit mode. (default)
  -i           ignore case distinctions and use only upper-case characters.
  -8           encode entire data in 8-bit mode. -k, -c and -i will be ignored.
  -M           encode in a Micro QR Code.
  -V           display the version number and copyrights of the qrencode.
  [STRING]     input data. If it is not specified, data will be taken from
               standard input.

  Try "qrencode --help" for more options.
$ qrencode -o ./test.png 'qrencode で作ったQR'
$ file test.png 
test.png: PNG image data, 99 x 99, 1-bit colormap, non-interlaced
$ display ./test.png 
$ qrscanner ./test.png 
╔═════════════════════════╗
║                         ║
║   qrencode で作ったQR   ║
║                         ║
╚═════════════════════════╝
$ qrencode ほげ -o - | display
$ qrencode -l H -t ansiutf8 '😺'
█████████████████████████████
█████████████████████████████
████ ▄▄▄▄▄ █▀▄▄█ █ ▄▄▄▄▄ ████
████ █   █ █   ▀▄█ █   █ ████
████ █▄▄▄█ █ ▀█▀ █ █▄▄▄█ ████
████▄▄▄▄▄▄▄█▄▀ ▀▄█▄▄▄▄▄▄▄████
█████▀▄██▄▄ ▄▄▀ ▄▄█▄▄   █████
█████▄▄▀▀▀▄▀▄ █▄█ ▄█▀█▀▄█████
████████▄█▄▄▀▀█▀█  ▀██   ████
████ ▄▄▄▄▄ █ █ ████ ▄▄ ██████
████ █   █ ██▀ ▀█  ▄▄█▀█▄████
████ █▄▄▄█ █▄█▀█▄▀▀█▀▄█▄▄████
████▄▄▄▄▄▄▄████▄█▄▄██▄▄█▄████
█████████████████████████████
█████████████████████████████

ANSI,ANSI256,UTF8,ANSIUTF8 であれば端末に表示された物をそのまま読み込めた. ASCII,ASCIIi は加工向け?

QtQR

Qt frontend for QR code generator and decoder
 A Qt based software that help you to generate QR codes easily, scan
 an image file for QR codes and decode them or use your webcam to
 scan a printed one.

qr-scanner-cli

zbarを使っていないnode実装のよう.

$ qrscanner --version
1.2.2
$ qrscanner --help

  [![Build Status](https://travis-ci.org/victorperin/qr-scanner-cli.svg?branch=master)](https://travis-ci.org/victorperin/qr-scanner-cli) [![Coverage Status](https://coveralls.io/repos/github/victorperin/qr-scanner-cli/badge.svg?branch=master)](https://coveralls.io/github/victorperin/qr-scanner-cli?branch=master) [![Greenkeeper badge](https://badges.greenkeeper.io/victorperin/qr-scanner-cli.svg)](https://greenkeeper.io/) [![Maintainability](https://api.codeclimate.com/v1/badges/db529f4bc96d3bc44341/maintainability)](https://codeclimate.com/github/victorperin/qr-scanner-cli/maintainability)

  Usage
      $ qrscanner <input file>

    Options
      --clear, -c  Clear output, just print the QR Code scan result
      --clipboard, -p  Copy the qr code value to your clipboard
      --open, -o  Open the qr code value in any browser or program if support it
      --version Show installed version
      --help Show this help

    Examples
      $ qrscanner ./qrCode.jpg
      
     ╔══════════════════════════════════════════╗
     ║                                          ║
     ║   This message is written in a QR Code   ║
     ║                                          ║
     ╚══════════════════════════════════════════╝
  

      $ qrscanner ./qrCode.jpg --clear
      This message is written in a QR Code
$ qrencode -o ./test.jpg hogehoge
$ qrscanner ./test.jpg 
╔══════════════╗
║              ║
║   hogehoge   ║
║              ║
╚══════════════╝
$ qrscanner ./test.jpg --clear
hogehoge
$ qrscanner ./test.jpg --clear --clipboard
hogehoge
$ xclip -o -selection clipboard
hogehoge

ERROR

WebCamを他のアプリで利用中に「Decode from Webcam」でアプリが落ちる

$ qtqr 
QPixmap::scaled: Pixmap is a null pixmap
libv4l2: error setting pixformat: Device or resource busy
libv4l2: error setting pixformat: Device or resource busy
libv4l2: error setting pixformat: Device or resource busy
libv4l2: error setting pixformat: Device or resource busy
WARNING: no compatible input to output format
...trying again with output disabled
libv4l2: error setting pixformat: Device or resource busy
libv4l2: error setting pixformat: Device or resource busy
Traceback (most recent call last):
  File "/usr/bin/qtqr", line 834, in decodeWebcam
    qr.decode_webcam(device=device)
  File "/usr/lib/python3/dist-packages/qrtools.py", line 240, in decode_webcam
    proc.init(device)
zbar.UnsupportedError: <zbar.Processor object at 0x7fc78602f180>
Aborted

関連URL

関連書籍?

コメント

コメントを入力. Wiki文法が有効です:
  _   __  _   __ __  __   __  ___   __  ___
 | | / / | | / / \ \/ /  /  |/  /  /  |/  /
 | |/ /  | |/ /   \  /  / /|_/ /  / /|_/ / 
 |___/   |___/    /_/  /_/  /_/  /_/  /_/
 
linux/qrcode.txt · 最終更新: 2020/12/04 06:01 by matoken