PDF417-Encode-a-Decode

所属分类:图形图像处理
开发工具:Visual C++
文件大小:225KB
下载次数:122
上传日期:2012-02-10 21:04:53
上 传 者bianselong
说明:  二维码PDF417编码和解码的源代码,可将它们修改后做成匹配的编码和解码对。
(The source code of two-dimensional barcode PDF417 encoding and decoding, they can be modified to become a matched encoding and decoding. )

文件列表:
PDF417 Encode & Decode\pdf417decode2.0\Makefile (398, 2004-06-13)
PDF417 Encode & Decode\pdf417decode2.0\pbm.h (1490, 2004-03-07)
PDF417 Encode & Decode\pdf417decode2.0\pbmplus.h (8647, 2004-03-07)
PDF417 Encode & Decode\pdf417decode2.0\pdf417decode.c (15483, 2004-06-13)
PDF417 Encode & Decode\pdf417decode2.0\pdf417rs.c (13146, 2004-03-11)
PDF417 Encode & Decode\pdf417decode2.0\pdf417_dham.c (1179732, 2004-03-13)
PDF417 Encode & Decode\pdf417decode2.0\pdf417_enc.patch (256, 2004-06-13)
PDF417 Encode & Decode\pdf417decode2.0\test\Euclid.pbm (84144, 2004-03-08)
PDF417 Encode & Decode\pdf417decode2.0\test\Euclid.txt (142, 2004-06-13)
PDF417 Encode & Decode\pdf417decode2.0\test\Large.bmp (12282, 2010-04-01)
PDF417 Encode & Decode\pdf417decode2.0\test\Large.pbm (195522, 2004-03-15)
PDF417 Encode & Decode\pdf417decode2.0\test\Large.txt (791, 2004-06-13)
PDF417 Encode & Decode\pdf417decode2.0\test\Numbers.pbm (30162, 2004-03-08)
PDF417 Encode & Decode\pdf417decode2.0\test\Numbers.txt (182, 2004-06-13)
PDF417 Encode & Decode\pdf417decode2.0\test\Pascal-errors.pbm (191398, 2004-03-08)
PDF417 Encode & Decode\pdf417decode2.0\test\Pascal.pbm (166717, 2004-03-08)
PDF417 Encode & Decode\pdf417decode2.0\test\Pascal.txt (920, 2004-06-13)
PDF417 Encode & Decode\pdf417decode2.0\test\PDF417_bc.pbm (10465, 2004-03-07)
PDF417 Encode & Decode\pdf417decode2.0\test\PDF417_bc.txt (18, 2004-06-13)
PDF417 Encode & Decode\pdf417decode2.0\test\PDF417_tc.pbm (9207, 2004-03-07)
PDF417 Encode & Decode\pdf417decode2.0\test\PDF417_tc.txt (12, 2004-06-13)
PDF417 Encode & Decode\pdf417decode2.0\test\Scanned.pbm (25340, 2004-03-08)
PDF417 Encode & Decode\pdf417decode2.0\test\Scanned.txt (54, 2004-06-13)
PDF417 Encode & Decode\pdf417decode2.0\test\Small.pbm (18699, 2004-03-08)
PDF417 Encode & Decode\pdf417decode2.0\test\Small.txt (59, 2004-06-13)
PDF417 Encode & Decode\pdf417decode2.0\test\Text.pbm (33104, 2004-03-08)
PDF417 Encode & Decode\pdf417decode2.0\test\Text.txt (96, 2004-06-13)
PDF417 Encode & Decode\pdf417decode2.0\test\Text_mixed.bmp (9346, 2010-03-31)
PDF417 Encode & Decode\pdf417decode2.0\test\Text_mixed.pbm (76864, 2003-04-14)
PDF417 Encode & Decode\pdf417decode2.0\test\Text_mixed.txt (217, 2004-06-13)
PDF417 Encode & Decode\pdf417lib\pdf417.c (1509, 2004-03-17)
PDF417 Encode & Decode\pdf417lib\pdf417.dsp (4688, 2003-01-22)
PDF417 Encode & Decode\pdf417lib\pdf417.dsw (535, 2002-12-03)
PDF417 Encode & Decode\pdf417lib\pdf417.ncb (50176, 2004-03-17)
PDF417 Encode & Decode\pdf417lib\pdf417.opt (54784, 2012-02-10)
PDF417 Encode & Decode\pdf417lib\pdf417.plg (1377, 2004-03-17)
PDF417 Encode & Decode\pdf417lib\pdf417lib.c (29777, 2004-03-17)
PDF417 Encode & Decode\pdf417lib\pdf417lib.h (1878, 2004-03-17)
PDF417 Encode & Decode\pdf417lib\pdf417libimp.h (33564, 2004-03-17)
... ...

Pdf417decode Usage ----- To decode a pbm file "jac.pbm", do "./pdf417decode jac.pbm". The file is written to stdout. The decoder accepts the following command line options: -c output the codewords found in the image -d output debug information -e output the decoded information in John Lien's (jtlien@charter.net) pdf147_encode input format. -rs perform Reed-Solomon error detection and correction (note that the R-S error correction algorithm cannot correct certain errors introduced by the pbm image decoder, like the insertion of spurious codewords due to the same row being detected more than once). Installation ------------ To compile the decoder, just do a "make". Assuming you have a suitable C compiler (see Notes), the compilation will generate the executable named pdf147decode. In the directory "test" you'll find a few pbm test images. For each image, there is a corresponding text file with the information used to generate the image (in pdf417_encode input format). The file has the same name as the image, but with "txt" extension. Most of the test images were generated with pdf417enc 3.1, a few of them came with the pdf417enc 3.1 distribution and one or two were found in the web. After the program has been compiled, a "make check" can be used to test the decoder. The command causes the program to decode all the images found in the test directory, dumping the information to the terminal. Notes ----- - Your compiler needs to understand that "long long" is *** bits (gcc does) in order to compile it. - The decoder ignores Macro PDF and extended mode commands. - The program expects the image to be in PBM (black and white) format. The image must be oriented horizontally, and it is processed from left to right and from top to bottom. So if you have an scanned image that does not decode into what you would expect, try then flipping it horizontally and/or vertically. - The image decoder currently ignores the start and stop symbols, as well as the left and right row indicators. While they are not strictly necessary in order to decode data, their use would make the image decoder much more robust, and would allow the image to be decoded properly even if it is flipped in any direction or even rotated. They also make the error recovering mechanism much more accurate. - The current Reed-Solomon implementation may fail to work properly for large images with error correction level greater than 4. That's partially related to the above limitation. - If you use John Lien's pdf147_encode program to generate PDF417 images, keep in mind that the latest version 3.1 has a bug: it generates incorrect numeric compactions if the group of digits has more than 44 bytes. A simple patch can correct this, the provided pdf147_enc.patch will correct the offending file when you apply it on pdf417_enc.3.1 source directory. History ------- 22/12/01 Original release by Ian Goldberg. Supports only BYTE compactions. 23/12/01 Modified and updated by OOO S. (ooosawaddee3@hotmail.com) Added a test to see if fopen() succeeded. 07/03/04 Codeword decoding routines completely rewritten. Fixed a couple of bugs in dham[] table. Added support for all compaction modes and Reed-Solomon error correction. By Hector Peraza (peraza@uia.ua.ac.be).

近期下载者

相关文件


收藏者