File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,22 @@ from rmqrcode import rMQR
12
12
import rmqrcode
13
13
14
14
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
+ )
16
20
```
17
21
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
+
18
31
----
19
32
The word "QR Code" is registered trademark of DENSO WAVE Incorporated.<br >
20
33
http://www.denso-wave.com/qrcode/faqpatent-e.html
You can’t perform that action at this time.
0 commit comments