📄 readme
字号:
README for pydmtx version 0.6.0 - November 23, 2008-----------------------------------------------------------------pydmtx is a thin wrapper around libdmtx that reads and writesData Matrix barcodes as PIL Image objects. Dan Watson wrote theoriginal version of pydmtx in 2006, and allowed it to become anative part of the libdmtx package.1. libdmtx Installation-----------------------------------------------------------------libdmtx must be installed on your system before trying to installand run the Python wrapper. Refer to the INSTALL file in the mainlibdmtx directory for instructions on how to do this.2. pydmtx Installation-----------------------------------------------------------------After libdmtx is present, next install pydmtx by running thefollowing command as root: $ python setup.py installOnce installed, you can verify it works by running as yourself: $ python test.pyIf it throws an error like this: ImportError: libdmtx.so.0: cannot open shared object filethis indicates it is not able to find the libdmtx library.There are a few ways to fix this. You can make a temporarylocal session fix: $ export LD_LIBRARY_PATH=/usr/local/lib... or make a permanent fix that requires root privileges: $ /sbin/ldconfig /usr/local/libAlternatively, you could edit /etc/ld.so.conf to include/usr/local/lib (which also requires root privileges).When it is working properly the test.py script should create animage named 'hello.png' in the current directory. The imageshould be a Data Matrix barcode that scans to "hello, world".3. Dependencies-----------------------------------------------------------------These packages are required to install and run pydmtx: Python: http://www.python.org PIL: http://www.pythonware.com/products/pilIf you are using an RPM-based system then you can test for thefollowing packages: python python-devel python-imaging4. This Document-----------------------------------------------------------------This document is derived from the wiki page located at: http://libdmtx.wiki.sourceforge.net/libdmtx+python+wrapperIf you find an error or have additional helpful information,please edit the wiki directly with your updates.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -