Skip to content

Commit

Permalink
Merge pull request #510 from inokawa/patch-1
Browse files Browse the repository at this point in the history
Update MultiFormatReader example in README.md
  • Loading branch information
werthdavid committed Apr 26, 2022
2 parents 89c4c23 + 82797d4 commit 4c35d16
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,10 @@ hints.set(DecodeHintType.POSSIBLE_FORMATS, formats);

const reader = new MultiFormatReader();

reader.setHints(hints);

const luminanceSource = new RGBLuminanceSource(imgByteArray, imgWidth, imgHeight);
const binaryBitmap = new BinaryBitmap(new HybridBinarizer(luminanceSource));

reader.decode(binaryBitmap);
reader.decode(binaryBitmap, hints);
```

## Contributing
Expand Down

0 comments on commit 4c35d16

Please sign in to comment.