srowen
df65c5b83e
A bunch of code style related changes
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1795 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2011-05-21 03:36:39 +00:00
dswitkin@google.com
11d348a59f
Cleaned up a bunch of TODOs and deleted the old ImageConverter app which has been supplanted by CommandLineRunner.
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1778 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2011-05-17 20:13:20 +00:00
dswitkin@google.com
8ff9e7f4fa
Standardized the naming of our barcode formats and alphabetized them.
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1775 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2011-05-17 15:46:09 +00:00
dswitkin@google.com
45bebd195c
Added RSS_EXPANDED to the CommandLineRunner.
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1774 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2011-05-17 15:27:27 +00:00
srowen
b02b2b55b7
Chopped up into several classes, made into beans, etc for a bit of clarity
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1760 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2011-05-08 14:48:34 +00:00
dswitkin@google.com
a48dbeab11
Made recursive behavior optional, and caused hidden directories to always be skipped.
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1757 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2011-05-04 15:17:10 +00:00
dswitkin@google.com
b21e0a935d
Made the CommandLineRunner optionally multithreaded and added a less verbose option. This change also allows summaries to be printed over multiple arguments, not just one directory, and adds recursive directory traversal.
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1756 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2011-05-03 18:51:50 +00:00
dswitkin@google.com
abe6cdc573
Refactored the CommandLineRunner a bit.
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1755 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2011-05-03 15:33:42 +00:00
srowen
6f62deca64
Issue 693 add --multi. Committed for drejc83
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1708 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2011-01-20 10:55:13 +00:00
srowen
2cd75045fd
Issue 677, faster grayscale conversion from Wolfgang
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1697 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2011-01-07 17:16:33 +00:00
srowen
99d09e0a44
Style stuff mostly but fix a problem between Aztec and J2ME too
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1681 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-12-15 14:42:17 +00:00
srowen
c4dede3689
Style changes to Aztec, enable in web app and command line
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1669 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-11-21 20:47:00 +00:00
srowen
5108924d05
Use includeantruntime=false to avoid Ant 1.8 warning
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1631 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-10-25 21:03:11 +00:00
srowen
2874ed0988
Overhaul 'extractPureBits' implementations and standardize. Improve by looking for bottom-right black pixel. Fix PDF417 pure barcode mode along the way.
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1628 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-10-23 19:14:03 +00:00
srowen
f1bee324b4
Morgan's cosmetic improvement to a translation, and equivalent for other translations we dare touch
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1606 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-09-27 21:51:10 +00:00
dswitkin@google.com
226bf1a1a6
Added rounding code to getRow() as well and updated the tests accordingly.
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1564 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-08-26 14:06:44 +00:00
smparkes@smparkes.net
4836a3e28c
Issue 494 round luminance values rather than truncate
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1558 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-08-25 15:54:19 +00:00
smparkes@smparkes.net
dd1336d0cf
Tweak svn/git ignores
...
Add OS X libzxing.a project
Include a copy of scons-local for cpp
git-svn-id: https://zxing.googlecode.com/svn/trunk@1549 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-08-20 00:41:26 +00:00
dswitkin@google.com
2cb4f5f82b
Issue 495: Renamed DATAMATRIX to DATA_MATRIX for consistency.
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1508 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-08-05 15:22:30 +00:00
flyashi
99ca70d7f3
Java CommandLineRunner: print result points
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1496 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-07-29 18:54:36 +00:00
srowen
02f090dd34
Add auto-translation tool to help update strings with Google Translate. Let it reorder (but not change) existing translations alphabetically by key. Add bulk-scan strings along the way as a test.
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1442 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-06-17 10:55:00 +00:00
srowen
492492b591
Update Codabar style and disable it as its causing too many false positives
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1403 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-05-31 12:49:29 +00:00
bas5winkel@gmail.com
73635c7585
Added support for codabar format
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1400 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-05-31 12:20:50 +00:00
srowen
05e8181ef5
Add Code 93 support. Update tests to reflect new (better) number of successes.
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1398 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-05-30 14:37:08 +00:00
srowen
e51dbb3c53
Use RSS14 on the command line; scan more lines since RSS14 stacked kind of needs this; fix VerifyError when RSS14 is enabled on Android
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1311 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-04-19 09:23:43 +00:00
srowen
634273cfdb
Use jar packaging
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1287 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-04-06 19:58:40 +00:00
srowen
be71fb0613
Back up and restore poms to prerelease state
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1285 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-04-06 12:38:26 +00:00
srowen
26a63fc183
Add --crop=left,top,width,height arg
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1269 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-03-31 18:22:32 +00:00
srowen
7410fd3082
Issue 361
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1268 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-03-30 22:53:34 +00:00
srowen
ae635078cb
"Unfix" previous fix -- account for odd ByteMatrix representation by flipping black and white to make result correct
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1246 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-03-19 12:17:29 +00:00
srowen
813f4070bf
For better handling of some formats, perform rotation with help of Graphics2D
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1240 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-03-05 11:08:53 +00:00
srowen
aa8ad02e16
Add pure barcode support to web app and command line
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1228 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-03-01 12:09:43 +00:00
srowen
508697a318
Related to Issue 205, but not the direct issue: read both copies of the format info and use both in determining the right one. This avoids a close, but incorrect first match throwing off the decoding. Also fix creating an image from ByteMatrix -- was inverted
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1226 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-03-01 11:04:22 +00:00
srowen
5ef5f3b02d
"Split" ReaderException into subclasses to enable more useful error reporting
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1195 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-02-02 08:23:46 +00:00
dswitkin
5cc1df3c92
Finished work on the local binarizer and renamed it to HybridBinarizer. It uses the old histogram for 1D and the new approach for 2D. The unit tests don't fully demonstrate how much better this is in real-world lighting, but it pretty much solves the situation of pointing at a QR Code for 30 seconds without scanning, due to a shadow or gradient.
...
HybridBinarizer is now the default across all the fast clients and the unit tests.
git-svn-id: https://zxing.googlecode.com/svn/trunk@1157 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-12-13 21:08:57 +00:00
dswitkin
fde805cc02
Added a --products_only flag to the CommandLineRunner.
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1156 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-12-13 17:19:27 +00:00
dswitkin
8ba08bb916
Added the ability to track who is throwing exceptions and how often in the core library. Uncomment to enable it.
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1155 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-12-13 17:10:02 +00:00
srowen
b710e257eb
More fixes, to cropping BufferedImages
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1109 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-11-13 10:46:04 +00:00
srowen
a853429282
Fix a typo and add better javadoc
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1096 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-11-03 14:39:07 +00:00
srowen
2cc7a2c8fa
Oops, rendering based on ByteMatrix was reversed, white on black (Issue 265)
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1095 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-11-03 13:43:53 +00:00
srowen
967afc8e64
Fix scanline stride issue
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1079 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-10-20 17:41:23 +00:00
srowen
7d0acf8bd9
Tiny changes to System.err usage, closed a stream, saved a reused Pattern
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1064 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-09-26 13:25:37 +00:00
srowen
0bf2c2a66e
Boneheaded mistake: was writing transparent pixels
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1032 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-08-04 21:59:24 +00:00
srowen
6dbf893cb0
Add MatrixToImageWriter convenience class, small code tweaks in javase/, make ByteMatrix width/height property getters names standard
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1028 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-07-30 08:58:57 +00:00
dswitkin
c3e5f1fcfd
Modified the CommandLineRunner to use all available decoders, even the ones which aren't considered production quality yet.
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@1000 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-06-26 20:03:10 +00:00
dswitkin
167197ec7a
Refactored the MonochromeBitmapSource class hierarchy into LuminanceSource, Binarizer, and BinaryBitmap classes. The unit tests pass and I believe the change is complete, but there are some clients like J2ME and Bug that I can't build.
...
This change will allow new thresholding algorithms to be developed and tested, as well as implemented per platform if needed (e.g. in JNI on Android). It should also perform better when multiple 2D Readers are installed, because the underlying image will only be converted to 1 bit once. It also allows some platforms to return luminance data without a copy.
The current state of this checkin is to use the old black point algorithm, which now lives in GlobalHistogramBinarizer. This will be our benchmark and fallback for slower platforms. Going forward we will begin to use LocalBlockBinarizer as I shake out the edge cases and tune it for performance. Currently it is unused.
IMPORTANT: I have temporarily included three methods from MonochromeBitmapSource at the end of BinaryBitmap as a way to make this change in stages. They are deprecated and will be removed soon. All of the Reader classes will need to change the way they examine 1 bit pixels to use the new getBlackRow() and getBlackMatrix() calls.
git-svn-id: https://zxing.googlecode.com/svn/trunk@993 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-06-26 17:49:45 +00:00
dswitkin
da4f56b022
Fixed some code which was ignoring the result of MonochromeBitmapSource calls, which may work in some cases but isn't legal and failed and in some experiments.
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@986 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-06-25 19:46:49 +00:00
dswitkin
1da9bd60b3
Added a new blackbox test with extreme shadows and highlights. We do pretty poorly on this, but I've been experimenting with local thresholding algorithms which are a night and day improvement.
...
Also made the ImageConverter app ignore some kinds of files.
git-svn-id: https://zxing.googlecode.com/svn/trunk@969 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-06-16 18:47:34 +00:00
dswitkin
0fe2f0365f
Wrote a usage message for the CommandLineRunner.
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@962 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-05-28 18:59:11 +00:00
dswitkin
70eab118c1
You can now dump the black point for URLs to the pwd.
...
git-svn-id: https://zxing.googlecode.com/svn/trunk@954 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-05-26 18:12:22 +00:00