Commit graph

1088 commits

Author SHA1 Message Date
srowen 20c4317efb Small tweaks to streamline performance and code, and changed row search pattern to search more broadly more quickly, which seems to slightly improve decode performance
git-svn-id: https://zxing.googlecode.com/svn/trunk@140 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-01-10 19:36:33 +00:00
srowen d8ef9bc275 Removed unneeded import
git-svn-id: https://zxing.googlecode.com/svn/trunk@137 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-01-07 21:17:40 +00:00
srowen b112a890fb Improved black point estimation -- favor a point not white so close the white peak
git-svn-id: https://zxing.googlecode.com/svn/trunk@135 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-01-07 16:31:26 +00:00
srowen 80b3dd3632 Trivial move of a commented method to better spot -- won't compile where it is now
git-svn-id: https://zxing.googlecode.com/svn/trunk@134 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-01-02 23:11:41 +00:00
srowen b3ecc20522 Slightly friendlier error message
git-svn-id: https://zxing.googlecode.com/svn/trunk@133 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-01-02 23:08:41 +00:00
dswitkin 31b056997b The UPC decoder now returns a pair of points to indicate the row where the barcode was found.
git-svn-id: https://zxing.googlecode.com/svn/trunk@129 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2007-12-21 20:07:31 +00:00
srowen a9e7e3c8ae Be more forgiving about endpoints that transform to be just off the image
git-svn-id: https://zxing.googlecode.com/svn/trunk@128 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2007-12-21 18:32:49 +00:00
srowen 3fd38e3893 Small logic fix -- OK to end up at border of image in this code
git-svn-id: https://zxing.googlecode.com/svn/trunk@127 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2007-12-21 18:09:03 +00:00
srowen 6fed049a2c Improve correctness of black-run logic in case where patterns are very close to edge
git-svn-id: https://zxing.googlecode.com/svn/trunk@124 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2007-12-18 21:45:44 +00:00
srowen f7ef069a47 Tiny logic improvement
git-svn-id: https://zxing.googlecode.com/svn/trunk@123 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2007-12-18 21:44:08 +00:00
srowen ac3e9d3335 Fixed handling of UPC/QR hints, improved error reporting
git-svn-id: https://zxing.googlecode.com/svn/trunk@121 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2007-12-18 16:43:38 +00:00
srowen fd68032e1a Bug fix from K. Kakima
git-svn-id: https://zxing.googlecode.com/svn/trunk@120 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2007-12-18 16:37:05 +00:00
srowen 0daa06a5e0 Moved com.google.zxing.client.result from core-ext to core, rewrote it for J2ME, changed javame to use it, and removed core-ext
git-svn-id: https://zxing.googlecode.com/svn/trunk@114 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2007-12-12 18:38:22 +00:00
alasdair.john.mackintosh 852669ced6 Don't calculate 1st digit unless checkBothParities is true
git-svn-id: https://zxing.googlecode.com/svn/trunk@102 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2007-12-07 21:06:26 +00:00
dswitkin 776c3db869 Minor changes to support EAN-13.
git-svn-id: https://zxing.googlecode.com/svn/trunk@101 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2007-12-07 20:50:23 +00:00
srowen 611e057250 Added some 'if' braces, changes C-comments to javadocs -- minor stuff
git-svn-id: https://zxing.googlecode.com/svn/trunk@92 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2007-12-06 20:47:05 +00:00
alasdair.john.mackintosh 0ce5a5c57d Add support for EAN-13 barcodes
git-svn-id: https://zxing.googlecode.com/svn/trunk@91 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2007-12-06 19:23:16 +00:00
srowen b53b6f27cc Should fix problems decoding tiny QR codes without any alignment pattern
git-svn-id: https://zxing.googlecode.com/svn/trunk@63 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2007-11-20 18:51:40 +00:00
dswitkin 25d112c554 Implemented row sampling for histograms and tweaked the valley finding algorithm
for better performance.


git-svn-id: https://zxing.googlecode.com/svn/trunk@56 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2007-11-19 17:26:22 +00:00
srowen eb52d61f46 Initial refactorings to support multiple kinds of black point estimation
git-svn-id: https://zxing.googlecode.com/svn/trunk@50 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2007-11-16 22:06:18 +00:00
srowen 57c5bc3b8e Minor improvements
git-svn-id: https://zxing.googlecode.com/svn/trunk@47 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2007-11-16 16:56:03 +00:00
srowen 09e93c1ae9 Added reference to thresholding resource
git-svn-id: https://zxing.googlecode.com/svn/trunk@45 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2007-11-15 21:00:17 +00:00
srowen f7a402511c Code tweaks and so forth with Daniel
git-svn-id: https://zxing.googlecode.com/svn/trunk@34 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2007-11-14 19:23:23 +00:00
dswitkin 89c7787517 Added the initial version of my UPC reader and modified some common files
as necessary to get it building and used by the J2SE command line test.


git-svn-id: https://zxing.googlecode.com/svn/trunk@31 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2007-11-12 23:13:15 +00:00
srowen db56b85644 Tiny tweak
git-svn-id: https://zxing.googlecode.com/svn/trunk@24 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2007-11-09 22:51:09 +00:00
srowen 96ea7e296c Fixed the rest of my typos and added basic unit test
git-svn-id: https://zxing.googlecode.com/svn/trunk@23 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2007-11-09 22:19:46 +00:00
srowen 703852e839 Better, still some bugs
git-svn-id: https://zxing.googlecode.com/svn/trunk@22 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2007-11-09 19:13:28 +00:00
srowen 033ae10187 Replace JAIPerspectiveTransform with PerspectiveTransform
git-svn-id: https://zxing.googlecode.com/svn/trunk@21 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2007-11-08 03:58:13 +00:00
srowen f0a299ec80 Adjust tolerance of method that decides whether a finder/alignment pattern has been crossed so that it passes on low resolution images more correctly -- just a matter of resorting to some floating point math.
git-svn-id: https://zxing.googlecode.com/svn/trunk@18 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2007-11-07 19:18:50 +00:00
srowen 149c7f1b8a Oops, bug fix for MaskPattern100
git-svn-id: https://zxing.googlecode.com/svn/trunk@17 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2007-11-07 18:44:18 +00:00
srowen 0aeb2f672c More javadoc
git-svn-id: https://zxing.googlecode.com/svn/trunk@14 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2007-11-07 06:42:22 +00:00
srowen d6cfb083a1 More javadoc
git-svn-id: https://zxing.googlecode.com/svn/trunk@13 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2007-11-07 06:40:04 +00:00
srowen cc66a80d3e More javadoc
git-svn-id: https://zxing.googlecode.com/svn/trunk@12 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2007-11-07 06:39:29 +00:00
srowen 424c19f542 More javadoc
git-svn-id: https://zxing.googlecode.com/svn/trunk@11 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2007-11-06 19:41:49 +00:00
srowen 4a39981245 More javadoc
git-svn-id: https://zxing.googlecode.com/svn/trunk@10 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2007-11-06 19:07:08 +00:00
srowen f44627915e Added more javadoc
git-svn-id: https://zxing.googlecode.com/svn/trunk@9 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2007-11-06 18:56:30 +00:00
srowen 265036c128 Fixed dumb bug that caused grid sampling to sample 2x too wide in the horizontal direction.
git-svn-id: https://zxing.googlecode.com/svn/trunk@7 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2007-10-26 17:52:37 +00:00
srowen 7726e8fcb2 git-svn-id: https://zxing.googlecode.com/svn/trunk@6 59b500cc-1b3d-0410-9834-0bbf25fbcc57 2007-10-23 19:12:27 +00:00