mirror of
https://github.com/Refound-445/nonebot-plugin-nailongremove.git
synced 2025-11-04 21:22:43 +08:00
up
This commit is contained in:
parent
308d8af559
commit
c118baade8
@ -9,7 +9,7 @@ require("nonebot_plugin_uninfo")
|
||||
from . import handler as handler
|
||||
from .config import Config
|
||||
|
||||
__version__ = "2.1.1.post1"
|
||||
__version__ = "2.1.1.post2"
|
||||
__plugin_meta__ = PluginMetadata(
|
||||
name="自动撤回奶龙",
|
||||
description="一个基于图像分类模型的简单插件~",
|
||||
|
||||
@ -203,7 +203,7 @@ async def handle_function(
|
||||
}
|
||||
if checked_image is not None:
|
||||
bio = io.BytesIO()
|
||||
img = PilImage.fromarray(checked_image)
|
||||
img = PilImage.fromarray(cv2.cvtColor(checked_image, cv2.COLOR_BGR2RGB))
|
||||
img.save(bio, "PNG")
|
||||
mapping["$checked_image"] = bio.getvalue()
|
||||
await UniMessage.template(template_str).format_map(mapping).finish()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user