Skip to content

Commit d01f245

Browse files
committed
doc: Add descriptions of paramaters to README
1 parent 55e126e commit d01f245

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,22 @@ from rmqrcode import rMQR
1212
import rmqrcode
1313

1414
data = "https://oudon.xyz"
15-
qr = rMQR.fit(data, rmqrcode.ErrorCollectionLevel.M, fit_strategy=rmqrcode.FitStrategy.MINIMIZE_WIDTH)
15+
qr = rMQR.fit(
16+
data,
17+
ecc=rmqrcode.ErrorCollectionLevel.M,
18+
fit_strategy=rmqrcode.FitStrategy.MINIMIZE_WIDTH
19+
)
1620
```
1721

22+
The `ecc` parameter is an enum value of rmqrcode.ErrorCollectionLevel to select error collection level. The following values are available:
23+
- `ErrorCollectionLevel.M`: Approx. 15% Recovery Capacity.
24+
- `ErrorCollectionLevel.H`: Approx. 30% Recovery Capacity.
25+
26+
The `fit_strategy` parameter is enum value of rmqrcode.FitStrategy to specify how to determine size of rMQR Code. The following values are available:
27+
- 'FitStrategy.MINIMIZE_WIDTH': Try to minimize width.
28+
- 'FitStrategy.MINIMIZE_HEIGHT': Try to minimize height.
29+
- 'FitStrategy.BALANCED': Try to keep balance of width and height.
30+
1831
----
1932
The word "QR Code" is registered trademark of DENSO WAVE Incorporated.<br>
2033
http://www.denso-wave.com/qrcode/faqpatent-e.html

0 commit comments

Comments
 (0)