Skip to content

Commit 6b2fa44

Browse files
committed
Update README.md to include missing URI field
1 parent 99038f5 commit 6b2fa44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ The `BarCodeReader` class is used to decode images:
2525
3.4.1 (3, 4, 1)
2626
>>> barcode = reader.decode("test/barcodes/QR_CODE-easy.png")
2727
>>> print(barcode)
28-
BarCode(raw='This should be QR_CODE', parsed='This should be QR_CODE', format='QR_CODE', type='TEXT', points=[(15.0, 87.0), (15.0, 15.0), (87.0, 15.0), (75.0, 75.0)])
28+
BarCode(raw='This should be QR_CODE', parsed='This should be QR_CODE', uri='file:///path/to/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)])
2929
```
3030

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

3434
The `decode()` method accepts an image path (or list of paths) and takes optional parameters `try_harder` (boolean), `possible_formats` (list of formats to consider), and `pure_barcode` (boolean).

0 commit comments

Comments
 (0)