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
Close
Hashes for nonebot_plugin_ocr-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 628462045c9bd6a5b9bc7aece629f97d7f2031edb9c03cef223165e9dedfb958 |
|
MD5 | 3c4811e90286931d38b96fe28a5cbfa0 |
|
BLAKE2b-256 | 897c2869b4c4bf23cd584520b567446842102f4fba7865dc98c7931ec2e9ff43 |