This commit is contained in:
student_2333 2024-10-30 00:35:09 +08:00
parent 308d8af559
commit c118baade8
2 changed files with 2 additions and 2 deletions

View File

@ -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="一个基于图像分类模型的简单插件~",

View File

@ -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()