summaryrefslogtreecommitdiff
path: root/javase/src
AgeCommit message (Collapse)AuthorFilesLines
2011-01-20Issue 693 add --multi. Committed for drejc83srowen1-35/+130
git-svn-id: https://zxing.googlecode.com/svn/trunk@1708 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2011-01-07Issue 677, faster grayscale conversion from Wolfgangsrowen1-43/+21
git-svn-id: https://zxing.googlecode.com/svn/trunk@1697 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-12-15Style stuff mostly but fix a problem between Aztec and J2ME toosrowen1-1/+0
git-svn-id: https://zxing.googlecode.com/svn/trunk@1681 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-11-21Style changes to Aztec, enable in web app and command linesrowen1-1/+2
git-svn-id: https://zxing.googlecode.com/svn/trunk@1669 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-10-23Overhaul 'extractPureBits' implementations and standardize. Improve by ↵srowen1-1/+1
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-09-28Morgan's cosmetic improvement to a translation, and equivalent for other ↵srowen1-1/+2
translations we dare touch git-svn-id: https://zxing.googlecode.com/svn/trunk@1606 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-08-26Added rounding code to getRow() as well and updated the tests accordingly.dswitkin@google.com1-1/+2
git-svn-id: https://zxing.googlecode.com/svn/trunk@1564 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-08-25Issue 494 round luminance values rather than truncatesmparkes@smparkes.net1-1/+2
git-svn-id: https://zxing.googlecode.com/svn/trunk@1558 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-08-05Issue 495: Renamed DATAMATRIX to DATA_MATRIX for consistency.dswitkin@google.com1-4/+4
git-svn-id: https://zxing.googlecode.com/svn/trunk@1508 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-07-29Java CommandLineRunner: print result pointsflyashi1-0/+8
git-svn-id: https://zxing.googlecode.com/svn/trunk@1496 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-06-17Add auto-translation tool to help update strings with Google Translate. Let ↵srowen1-0/+219
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-05-31Update Codabar style and disable it as its causing too many false positivessrowen1-1/+1
git-svn-id: https://zxing.googlecode.com/svn/trunk@1403 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-05-31Added support for codabar format bas5winkel@gmail.com1-0/+1
git-svn-id: https://zxing.googlecode.com/svn/trunk@1400 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-05-30Add Code 93 support. Update tests to reflect new (better) number of successes.srowen1-0/+1
git-svn-id: https://zxing.googlecode.com/svn/trunk@1398 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-04-19Use RSS14 on the command line; scan more lines since RSS14 stacked kind of ↵srowen1-0/+1
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-03-31Add --crop=left,top,width,height argsrowen1-9/+28
git-svn-id: https://zxing.googlecode.com/svn/trunk@1269 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-03-31Issue 361srowen1-43/+1
git-svn-id: https://zxing.googlecode.com/svn/trunk@1268 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-03-19"Unfix" previous fix -- account for odd ByteMatrix representation by ↵srowen1-1/+1
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-05For better handling of some formats, perform rotation with help of Graphics2Dsrowen1-4/+6
git-svn-id: https://zxing.googlecode.com/svn/trunk@1240 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-03-01Add pure barcode support to web app and command linesrowen1-5/+9
git-svn-id: https://zxing.googlecode.com/svn/trunk@1228 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-03-01Related to Issue 205, but not the direct issue: read both copies of the ↵srowen1-1/+1
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-02-02"Split" ReaderException into subclasses to enable more useful error reportingsrowen2-5/+9
git-svn-id: https://zxing.googlecode.com/svn/trunk@1195 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-12-14Finished work on the local binarizer and renamed it to HybridBinarizer. It ↵dswitkin3-7/+7
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-13Added a --products_only flag to the CommandLineRunner.dswitkin1-9/+22
git-svn-id: https://zxing.googlecode.com/svn/trunk@1156 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-12-13Added the ability to track who is throwing exceptions and how often in the ↵dswitkin1-0/+4
core library. Uncomment to enable it. git-svn-id: https://zxing.googlecode.com/svn/trunk@1155 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-11-13More fixes, to cropping BufferedImagessrowen1-1/+1
git-svn-id: https://zxing.googlecode.com/svn/trunk@1109 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-11-03Fix a typo and add better javadocsrowen1-5/+34
git-svn-id: https://zxing.googlecode.com/svn/trunk@1096 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-11-03Oops, rendering based on ByteMatrix was reversed, white on black (Issue 265)srowen1-1/+4
git-svn-id: https://zxing.googlecode.com/svn/trunk@1095 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-10-20Fix scanline stride issuesrowen1-2/+2
git-svn-id: https://zxing.googlecode.com/svn/trunk@1079 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-09-26Tiny changes to System.err usage, closed a stream, saved a reused Patternsrowen2-10/+19
git-svn-id: https://zxing.googlecode.com/svn/trunk@1064 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-08-05Boneheaded mistake: was writing transparent pixelssrowen1-2/+2
git-svn-id: https://zxing.googlecode.com/svn/trunk@1032 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-07-30Add MatrixToImageWriter convenience class, small code tweaks in javase/, ↵srowen5-8/+111
make ByteMatrix width/height property getters names standard git-svn-id: https://zxing.googlecode.com/svn/trunk@1028 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-06-27Modified the CommandLineRunner to use all available decoders, even the ones ↵dswitkin1-2/+21
which aren't considered production quality yet. git-svn-id: https://zxing.googlecode.com/svn/trunk@1000 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-06-26Refactored the MonochromeBitmapSource class hierarchy into LuminanceSource, ↵dswitkin5-224/+198
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-25Fixed some code which was ignoring the result of MonochromeBitmapSource ↵dswitkin1-3/+4
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-16Added a new blackbox test with extreme shadows and highlights. We do pretty ↵dswitkin1-3/+14
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-05-28Wrote a usage message for the CommandLineRunner.dswitkin1-1/+14
git-svn-id: https://zxing.googlecode.com/svn/trunk@962 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-05-26You can now dump the black point for URLs to the pwd.dswitkin1-1/+7
git-svn-id: https://zxing.googlecode.com/svn/trunk@954 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-05-26Extended the command line tool to dump the results of black point ↵dswitkin1-6/+105
calculation. You can now use the flag --dump_black_point to generate a PNG which contains the original image, the row scanning monochrome version, and the 2D scanning monochrome version side by side. It will be saved as originalfilename.mono.png. git-svn-id: https://zxing.googlecode.com/svn/trunk@953 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-05-21I moved a chunk of the histogram/black point code out of ↵dswitkin1-3/+3
BaseMonochromeBitmapSource and into BlackPointEstimator which makes a lot more sense. Unfortunately I had to expose three new methods and touch a bunch of files. But I did manage to reuse an array on subsequent calls, which was being allocated on every row scanned, so that might be a bit faster. It will also be easier to convert this code to JNI in the future if we want to, and/or do more advanced thresholding. git-svn-id: https://zxing.googlecode.com/svn/trunk@945 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-05-12Removed deprecation of 'cropping' constructor -- in the end replacing it ↵srowen1-3/+0
introduced some non-trivial performance hit, not worth it git-svn-id: https://zxing.googlecode.com/svn/trunk@938 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-04-28Issue 183: Adds support for detecting multiple barcodes, and simplifies ↵srowen1-0/+3
ResultPoint abstraction git-svn-id: https://zxing.googlecode.com/svn/trunk@918 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-03-06Changed the order of the BaseMonochromeBitmapSource constructor arguments to ↵dswitkin1-6/+12
be width, height to match the rest of the codebase, and added two apparently missing methods to the J2ME subclass, although I can't test it. git-svn-id: https://zxing.googlecode.com/svn/trunk@874 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-02-10Refactored width/height values into superclass and enabled construction of ↵srowen1-16/+5
RGBMonochromeBitmapSource from a Bitmap git-svn-id: https://zxing.googlecode.com/svn/trunk@846 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-01-14Separated rectangle detection from decoder for reusesrowen1-1/+2
git-svn-id: https://zxing.googlecode.com/svn/trunk@824 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-12-30Add more unit tests for client.result, and more small code tweaks.srowen1-1/+1
git-svn-id: https://zxing.googlecode.com/svn/trunk@809 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-12-19Fixed crash and bad parsing of an SMS with a question mark in the subject or ↵dswitkin1-3/+7
message. git-svn-id: https://zxing.googlecode.com/svn/trunk@794 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-12-12More reckless refactoring and code style tweaks -- mostly adding braces ↵srowen2-1/+8
around conditional/loops, and using @Override git-svn-id: https://zxing.googlecode.com/svn/trunk@784 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-11-15Remove my old email address from files. Might as well save spammers the trouble.srowen3-3/+5
git-svn-id: https://zxing.googlecode.com/svn/trunk@706 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-11-02Updated qrcode-2 with corrected output for some Japanese-language results. ↵srowen1-11/+27
Also standardized on UTF-8 encoding for test result files and enabled --dump_results for single-file case. git-svn-id: https://zxing.googlecode.com/svn/trunk@663 59b500cc-1b3d-0410-9834-0bbf25fbcc57