OCR plugin for nonebot2
Project description
NoneBot 适配器支持
OCR 应用支持
- 百度智能云(Web应用,内置)
部署指南
一. 安装插件
- 方式一:使用 pip
1.安装 nonebot-plugin-ocr
pip install nonebot-plugin-ocr
2.使用 nonebot 加载插件 "nonebot_plugin_ocr" (参考:加载插件)
- 方式二:手动安装
1.克隆本仓库
git clone https://github.com/NewYearPrism/nonebot-plugin-ocr
2.安装依赖 requirements.txt
pip install -r requirements.txt
3.复制插件本体到 Nonebot 环境中
cp path/to/repo/nonebot-plugin-ocr/nonebot_plugin_ocr path/to/nonebot_plugins -r
4.使用 nonebot 加载插件(同上)
二. 创建配置文件
- 需要手动创建配置文件,配置文件默认路径 ".ocr/config.toml" (相对当前工作目录), 你可以在 NoneBot .env配置中使用变量OCR_CONFIG_PATH指定之:
# .env
HOST=0.0.0.0
PORT=8080
SUPERUSERS=["123456789", "987654321"]
# ...
OCR_CONFIG_PATH="path/to/config/ocr.toml"mkdir -p path/to/config vim path/to/config/ocr.toml
- 具体参考:配置模板和配置文档
使用方法
特别感谢
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nonebot-plugin-ocr-0.3.2.tar.gz
.
File metadata
- Download URL: nonebot-plugin-ocr-0.3.2.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0 CPython/3.10.7 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81745d28985d7a2f954b8f338aec308fc228ab5bff5848ce9e9207c35f821ca8 |
|
MD5 | 88e2ab9c34298c8b57474fc2e57f6c03 |
|
BLAKE2b-256 | 7d49797002b60545b08b0455d34dba026badd8b13ae6dea33303fa2a61830d86 |
File details
Details for the file nonebot_plugin_ocr-0.3.2-py3-none-any.whl
.
File metadata
- Download URL: nonebot_plugin_ocr-0.3.2-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0 CPython/3.10.7 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 628462045c9bd6a5b9bc7aece629f97d7f2031edb9c03cef223165e9dedfb958 |
|
MD5 | 3c4811e90286931d38b96fe28a5cbfa0 |
|
BLAKE2b-256 | 897c2869b4c4bf23cd584520b567446842102f4fba7865dc98c7931ec2e9ff43 |