日志
新增通过opencv下腾讯的二维码识别模型识别。 v0.2.0 2023/09/12
依赖
根据pyzbar官方文档,zbar DLLs 已经包含在 Windows Python 轮子中。
在其他操作系统上,您需要安装 zbar 共享库。
Mac OS X:
brew install zbar
Linux:
sudo apt-get install libzbar0
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-qrcode2
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip install nonebot-plugin-qrcode2
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot-plugin-qrcode2"]
🎉 使用
默认配置下
命令: {#} {扫码}
说明:命令符不是命令头,只要包含命令符和命令关键字就会触发响应,例如“foo扫码foo # foo”也可以触发
附带一张图片、或回复一张图片、或再发送一张图片
可以自定义命令符、命令关键字
示例:
⚙️ 配置
如果需要自定义配置,请在 nonebot2 项目的.env文件中添加配置
| 配置项 | 必填 | 默认值 | 说明 |
|---|---|---|---|
| qrcode_cmd | 否 | "#" | 命令符 |
| qrcode_keyword | 否 | ["扫码"] | 命令关键字 |
| qrcode_priority | 否 | 10 | 响应优先级 |
| nickname | 否 | ["qrcode2"] | bot昵称列表,只取nickname[0] |
感谢
使用的二维码解析库(按调用顺序排序)
- opencv-contrib-python 腾讯的wechat_qrcode_WeChatQRCode
- pyzbar
Metadata
Release files for nonebot-plugin-qrcode2 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nonebot_plugin_qrcode2-0.2.3.tar.gz | 926.5 kB | Without provenance | Details for nonebot_plugin_qrcode2-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_qrcode2-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_qrcode2-0.2.3-py3-none-any.whl |
Total release size: 1.9 MB
Release files / nonebot_plugin_qrcode2-0.2.3.tar.gz
| Download URL | nonebot_plugin_qrcode2-0.2.3.tar.gz |
|---|---|
| Size | 926.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5dbe2e72642a287430df66d58cf6989520ee6b014dc9b20b52caabcc3b65eb36
|
|
BLAKE2b-256 checksum How to use checksums |
3e0448926ba35378d5f1727bfeb374671b1df12c91d44b3dbb6b79712997fd32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.1 Windows/10
|
Release files / nonebot_plugin_qrcode2-0.2.3-py3-none-any.whl
| Download URL | nonebot_plugin_qrcode2-0.2.3-py3-none-any.whl |
|---|---|
| Size | 926.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
99dccc4641ccb2736e8fcb102ed68f15881b0c0169b7aeb2ee90e604225fff6d
|
|
BLAKE2b-256 checksum How to use checksums |
bf37e935481d8c86bb7096b17e383ffb8d452abafb2ad16136b838fa456c1bc9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.1 Windows/10
|
Security for nonebot-plugin-qrcode2 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.