Skip to main content

通过ai.animedb.cn的api识别动漫、galgame角色

Project description

NoneBotPluginLogo
NoneBotPluginText

nonebot-plugin-anime-trace

✨ 通过ai.animedb.cn的api识别动漫、galgame角色 ✨

license pypi python

最新情报

前两天网站抽风,现已恢复正常。2023/08/25

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-anime-trace
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip install nonebot-plugin-anime-trace

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入

plugins = ["nonebot-plugin-anime-trace"]

🎉 使用

默认配置下

命令: {#} {识别|角色|人物|} [gal|动漫]

说明:命令符不是命令头,只要包含命令符和命令关键字就会触发响应,例如“foo识别foo#foo”也可以触发

大括号内{}为必要关键字, 中括号内[]为可选参数, 默认使用动漫模型

附带一张图片、或回复一张图片、或再发送一张图片

可以自定义命令符、命令关键字

示例:

image image image image

⚙️ 配置

如果需要自定义配置,请在 nonebot2 项目的.env文件中添加配置

配置项 必填 默认值 说明
animetrace_cmd "#" 命令符
animetrace_keyword ["识别", "角色", "人物"] 命令关键字
animetrace_priority 10 响应优先级
animetrace_model_anime "pre_stable" 动漫模型
animetrace_model_gal "game_model_kirakira" galgame模型
animetrace_max_num 3 一个角色最多返回几个识别结果
nickname ["anime trace"] bot昵称列表,只取nickname[0]

动漫模型和galgame模型请前往 ai.animedb.cn查看

常见问题 Q&A

没有识别到任何角色

网站没有识别到该图中的角色

出错啦~可能是图里角色太多了content:{code:-1}

网站处理图片出错,可能是图中角色过多、或者网站后端挂了,可以尝试裁剪图片

识别失败,换张图片试试吧~<Response [504 Gateway Time-out]>

网站接收图片出错,可能是图中角色过多、或者网站后端挂了,可以尝试裁剪图片

其他

请先去ai.animedb.cn尝试能否识别,若能识别,联系我更新;若不能识别,等待站长修复

TODO

增加ai绘图鉴别

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_anime_trace-0.1.5.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page