ZXing ("Zebra Crossing") barcode scanning library for Java, Android
Find a file
Taneli Huuskonen cc16a72c85 Simplified some code (#596)
* Fixed bug #593

Bug #593 was misleadingly reported as pertaining to another project, but
testing revealed it affected this project as well.  The Code128 encoding
algorithm failed when an odd number of digits were followed by FNC1 and
other digits.  The code selection algorithm was rewritten.  A test case
showing the bug was added, and an old test case was updated to expect
the result of the new algorithm  -  another valid encoding of the same
length as the old one.

* Fixed bug #593

Bug #593 was misleadingly reported as pertaining to another project, but
testing revealed it affected this project as well.  The Code128 encoding
algorithm failed when an odd number of digits were followed by FNC1 and
other digits.  The code selection algorithm was rewritten.  A test case
showing the bug was added, and an old test case was updated to expect
the result of the new algorithm  -  another valid encoding of the same
length as the old one.

* Cleaning up

Added a private enum and changed some names to improve readability.
Also some trivial cosmetic changes.

* Further cleanup of Code128 writer test

Removed a private one-liner method used exactly once, alphabetized
imports.

* Simplify conversion RGB -> luminance

Removed testing every pixel for greyness in RGBLuminanceSource, as it
did not appreciably change the speed of converting a greyscale image and
slowed down the conversion of a colour image by a few percent.  Besides,
there was no need to treat every row separately; the total number of
pixels was enough.

* Minor improvements to BitArray

Simplified some code, added more accurate error checking, and corrected
small inaccuracies in comments.
2016-05-12 10:06:04 +01:00
.github Add issue template and move supported files to .github 2016-03-02 12:45:45 +00:00
android Fix missing closing </body> tags 2016-05-08 09:13:41 +01:00
android-core [maven-release-plugin] prepare for next development iteration 2015-08-19 13:21:05 +01:00
android-integration [maven-release-plugin] prepare for next development iteration 2015-08-19 13:21:05 +01:00
androidtest Update plugins, dependencies, and clean up small code inspection issues 2016-01-21 14:46:48 +01:00
core Simplified some code (#596) 2016-05-12 10:06:04 +01:00
glass Add what's new for 4.7.4 and update proguard 2015-10-27 10:57:38 +00:00
javase Use StringWriter to prevent race condition in println 2016-02-15 13:21:33 -08:00
src Test signed commit and update minor deps, plugin 2016-04-05 22:51:25 +01:00
zxing.appspot.com Update plugins, dependencies, and clean up small code inspection issues 2016-01-21 14:46:48 +01:00
zxingorg Update plugins 2016-05-08 09:32:07 +01:00
.gitattributes Added .gitattributes to define how git handles the line endings 2014-07-17 20:36:16 +02:00
.gitignore Remove Thumbs.db from gitignore 2014-03-06 12:13:18 +00:00
.travis.yml New profile to limit memory usage in Travis 2016-02-08 14:38:18 +00:00
AUTHORS Added a Code 93 encoder 2015-10-18 23:39:03 +01:00
CHANGES Update to target Android 23; brief 3.2.1 release note 2015-08-19 12:09:39 +01:00
LICENSE Update jai-imageio license; remove unneeded gwt-servlet dep; update clirr 2015-09-25 11:25:51 +01:00
NOTICE Use JCommander for CommandLineRunner args 2015-05-03 20:49:10 +01:00
pom.xml Update plugins 2016-05-08 09:32:07 +01:00
README.md Added a port to PHP 2016-03-24 16:57:34 +01:00

##Get Started Developing To get started, please visit: https://github.com/zxing/zxing/wiki/Getting-Started-Developing

ZXing ("zebra crossing") is an open-source, multi-format 1D/2D barcode image processing library implemented in Java, with ports to other languages.

Supported Formats

1D product 1D industrial 2D
UPC-A Code 39 QR Code
UPC-E Code 93 Data Matrix
EAN-8 Code 128 Aztec (beta)
EAN-13 Codabar PDF 417 (beta)
ITF
RSS-14
RSS-Expanded

Components

Active

Module Description
core The core image decoding library, and test code
javase JavaSE-specific client code
android Android client Barcode Scanner Barcode Scanner
androidtest Android test app, ZXing Test
android-integration Supports integration with Barcode Scanner via Intent
android-core Android-related code shared among android, androidtest, glass
glass Simple Google Glass application
zxingorg The source behind zxing.org
zxing.appspot.com The source behind web-based barcode generator at zxing.appspot.com

Available in previous releases

Module Description
cpp C++ port
iphone iPhone client
objc Objective C port
actionscript Partial ActionScript port
jruby JRuby wrapper

ZXing-based third-party open source projects

Module Description
QZXing port to Qt framework
zxing-cpp port to C++ (forked from the deprecated official C++ port)
zxing_cpp.rb bindings for Ruby (not just JRuby), powered by zxing-cpp
python-zxing bindings for Python
ZXing .NET port to .NET and C#, and related Windows platform
php-qrcode-detector-decoder port to PHP
Module Description
Barcode4J Generator library in Java
ZBar Reader library in C99
OkapiBarcode

Contacting

Post to the discussion forum or tag a question with zxing on StackOverflow.

Etcetera

Build Status Coverity Status codecov.io

QR code is trademarked by Denso Wave, inc. Thanks to Haase & Martin OHG for contributing the logo.

Optimized with JProfiler