0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

QRコード読み取り(ZBar)

Last updated at Posted at 2020-06-23

ZBar bar code reader
を使う。

まずはインストール

OS「Amazon Linux AMI」の場合
yum install -y zbar-tools

OS「Linux version XXX.amzn1.x86_64」の場合(2014年から使っているEC2)
yum install zbar-devel
pip install zbar
or
/usr/local/bin/pip2.7 install zbar
※Python3系だと動かないので2.6or2.7でインストール
Python3系の場合は↓これを入れると出来るらしい.
https://github.com/zplab/zbar-py

実行
zbarimg qr.png
QR-Code:http://aaaaa/ddddd.html

urlもいける便利
zbarimg https://wwww.sample.com/qr.png
QR-Code:http://aaaaa/ddddd.html

時間がないので後日記事修正

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?