Skip to content

Commit 646766b

Browse files
committed
use latest ZXing release (3.5.3)
Among other improvements, this release of ZXing fixes the brokenness of the `--raw` option (added in 3.5.0, but broken for `PDF_417` and maybe other barcode types). See my bug report and fix for that issue at zxing/zxing#1682 and zxing/zxing#1683.
1 parent ead91c0 commit 646766b

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ evolved considerably beyond that ancestral package.
1515
Use the Python 3 version of pip (usually invoked via `pip3`) to install: `pip3 install zxing`
1616

1717
* You'll neeed to have a recent `java` binary somewhere in your path. (Tested with OpenJDK v7, v8, v11.)
18-
* pip will automatically download the relevant [JAR](https://en.wikipedia.org/wiki/JAR_(file_format)) files for the Java ZXing libraries (currently v3.5.1)
18+
* pip will automatically download the relevant [JAR](https://en.wikipedia.org/wiki/JAR_(file_format)) files for the Java ZXing libraries (currently v3.5.3)
1919

2020
## Usage
2121

@@ -31,8 +31,8 @@ The `BarCodeReader` class is used to decode images:
3131
BarCode(raw='This should be QR_CODE', parsed='This should be QR_CODE', path='test/barcodes/QR_CODE-easy.png', format='QR_CODE', type='TEXT', points=[(15.0, 87.0), (15.0, 15.0), (87.0, 15.0), (75.0, 75.0)])
3232
```
3333

34-
The attributes of the decoded `BarCode` object are `raw`, `parsed`, `path`, `format`, `type`, and `points`. The list of formats which ZXing can decode is
35-
[here](https://zxing.github.io/zxing/apidocs/com/google/zxing/BarcodeFormat.html).
34+
The attributes of the decoded `BarCode` object are `raw`, `parsed`, `path`, `format`, `type`, `points`, and `raw_bits`.
35+
The list of formats which ZXing can decode is [here](https://zxing.github.io/zxing/apidocs/com/google/zxing/BarcodeFormat.html).
3636

3737
The `decode()` method accepts an image path or [PIL Image object](https://pillow.readthedocs.io/en/stable/reference/Image.html) (or list thereof)
3838
and takes optional parameters `try_harder` (boolean), `possible_formats` (list of formats to consider), and `pure_barcode` (boolean).

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323

2424

2525
def download_java_files(force=False):
26-
files = {'java/javase.jar': 'https://repo1.maven.org/maven2/com/google/zxing/javase/3.5.2/javase-3.5.2.jar',
27-
'java/core.jar': 'https://repo1.maven.org/maven2/com/google/zxing/core/3.5.2/core-3.5.2.jar',
26+
files = {'java/javase.jar': 'https://repo1.maven.org/maven2/com/google/zxing/javase/3.5.3/javase-3.5.3.jar',
27+
'java/core.jar': 'https://repo1.maven.org/maven2/com/google/zxing/core/3.5.3/core-3.5.3.jar',
2828
'java/jcommander.jar': 'https://repo1.maven.org/maven2/com/beust/jcommander/1.82/jcommander-1.82.jar'}
2929

3030
for fn, url in files.items():

0 commit comments

Comments
 (0)