python:barcode
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
python:barcode [2016/08/07 15:43] – created admin | python:barcode [2016/08/07 23:40] – [Python Barcode] admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Python Barcode ====== | ====== Python Barcode ====== | ||
+ | refer: | ||
+ | * https:// | ||
+ | * https:// | ||
+ | ===== huBarcode ===== | ||
refer: https:// | refer: https:// | ||
+ | ==== Setup huBarcode ==== | ||
+ | - step1: download hubarcode from https:// | ||
+ | - step2: install python processing image:< | ||
+ | pip uninstall PIL | ||
+ | pip install pillow | ||
+ | </ | ||
+ | - step2: build and install hubarcode:< | ||
+ | python setup.py build | ||
+ | python setup.py install | ||
+ | </ | ||
+ | ==== Example create Barcode with hubarcode ==== | ||
+ | Create Firt example **barcode.py** and run it: | ||
+ | - Step1: Create **barcode.py**< | ||
+ | import sys | ||
+ | from hubarcode.code128 import Code128Encoder | ||
+ | if __name__ == ' | ||
+ | print ' | ||
+ | encoder = Code128Encoder(sys.argv[1]) | ||
+ | encoder.save(" | ||
+ | </ | ||
+ | - Step2: Run it:<code bat> | ||
+ | python barcode.py 123 | ||
+ | </ | ||
+ | barcode.py 123 | ||
+ | </ | ||
+ | ImportError: | ||
+ | </ | ||
+ |
python/barcode.txt · Last modified: 2022/10/29 16:15 by 127.0.0.1