mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
To fix http://groups.google.com/group/zxing/browse_thread/thread/bf1d150a7ed44ee8#, try a little harder on 1D, which is fine
git-svn-id: https://zxing.googlecode.com/svn/trunk@1239 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
d273ab5dbc
commit
70933a7ffd
|
@ -103,7 +103,7 @@ public abstract class OneDReader implements Reader {
|
|||
|
||||
int middle = height >> 1;
|
||||
boolean tryHarder = hints != null && hints.containsKey(DecodeHintType.TRY_HARDER);
|
||||
int rowStep = Math.max(1, height >> (tryHarder ? 7 : 4));
|
||||
int rowStep = Math.max(1, height >> (tryHarder ? 8 : 4));
|
||||
int maxLines;
|
||||
if (tryHarder) {
|
||||
maxLines = height; // Look at the whole image, not just the center
|
||||
|
|
Loading…
Reference in a new issue