1
0
mirror of https://github.com/x-hw/amazing-qr.git synced 2025-07-17 01:32:32 +02:00

update README

This commit is contained in:
sylnsfar
2016-09-02 19:31:40 +08:00
parent 82b6c64a8b
commit 1e9d6fded0

View File

@ -3,6 +3,8 @@
**Python QR二维码生成器** **Python QR二维码生成器**
## Example 示例 ## Example 示例
![](https://github.com/sylnsfar/QR-Code/blob/master/example/qrs0.jpg) ![](https://github.com/sylnsfar/QR-Code/blob/master/example/qrs0.jpg)
@ -11,6 +13,8 @@
![](https://github.com/sylnsfar/QR-Code/blob/master/example/qrs2.jpg) ![](https://github.com/sylnsfar/QR-Code/blob/master/example/qrs2.jpg)
## Usage 用法 ## Usage 用法
### Common QR-Code 普通QR二维码 ### Common QR-Code 普通QR二维码
@ -69,19 +73,23 @@ python myqr.py https://github.com -v 10 -l Q
参数 `-h`, `-v``-l` 如上文述。 参数 `-h`, `-v``-l` 如上文述。
```console ```console
python myqr.py https://github.com -p github.jpg python myqr.py https://github.com -p github.jpg
``` ```
* The `-p` is to combine the QR-Code with the following picture which is at the same directory as the program. The resulting picture is **black and white** by default. * The `-p` is to combine the QR-Code with the following picture which is at the same directory as the program. The resulting picture is <u>**black and white** </u> by default.
参数`-p` 用来将QR二维码图像与一张同目录下的图片相结合,产生一张黑白图片。 参数`-p` 用来将QR二维码图像与一张同目录下的图片相结合,产生一张**黑白**图片。
* Suggestion: If the size of the picture is large, you should choose a correct large `-v` too instead of using the default one. * **Suggestion**: If the size of the picture is large, you should choose a correct large `-v` too instead of using the default one.
建议在图片尺寸大的时候使用 `-v` 的值也应该适当变大。 **建议**在图片尺寸大的时候使用 `-v` 的值也应该适当变大。
@ -89,9 +97,11 @@ python myqr.py https://github.com -p github.jpg
python myqr.py https://github.com -p github.jpg -c python myqr.py https://github.com -p github.jpg -c
``` ```
* The `-c` is to make the resulting picture colorized. * The `-c` is to make the resulting picture **colorized**.
加上参数 `-c` 可以使产生的图片由黑白变为彩色的。 加上参数 `-c` 可以使产生的图片由黑白变为**彩色**的。
@ -107,6 +117,8 @@ python myqr.py https://github.com -p github.jpg [-c] -con 1.5 -bri 1.6
参数 `-bri` 用来调节图片的亮度,其余用法和取值与 `-con` 相同。 参数 `-bri` 用来调节图片的亮度,其余用法和取值与 `-con` 相同。
## Supported Characters 可用字符 ## Supported Characters 可用字符
* Numbers: `0~9` * Numbers: `0~9`