From 15e30acb0f9c6cc73b1d68345a9491c307e05df4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Wed, 9 Sep 2026 11:38:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4UI=E8=AF=86=E5=88=AB=E6=8C=87?= =?UTF-8?q?=E4=BB=A4=E7=BB=86=E8=8A=82=EF=BC=8C=E6=98=8E=E7=A1=AE=E6=96=87?= =?UTF-8?q?=E5=AD=97=E7=BB=84=E4=BB=B6=E8=AF=86=E5=88=AB=E8=A7=84=E5=88=99?= =?UTF-8?q?=E4=B8=8E=E7=B2=92=E5=BA=A6=E6=A0=87=E5=87=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src-tauri/src/ui_editor/commands/recognition.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/recognition.rs b/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/recognition.rs index bc578daf8..6671e9c83 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/recognition.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/recognition.rs @@ -46,9 +46,10 @@ const SYSTEM_PROMPT: &str = r#" * 面向用户的字段如名称描述等请用中文 * 由于每个截图未必是完整的, 可能是局部的, 每棵树描述清楚每个截图上UI的层次结构即可 * 不同树的共用框架/层次/...请使用使用相同的名称描述. 不同状态/变体名称使用相同的前缀, 用后缀区别 -* 粒度要求: 尽可能细致, 最小单元举例: 进度条的底槽、填充和外框; slider的底槽, dragger等 -* 为每个节点直接返回完整 components。纯容器返回空数组;需要从设计图自动分离图片的 Image component 必须令 target_graphic 为 null。文本内容和组件类型完全由视觉判断,不调用或依赖 OCR。 +* 粒度要求: 以可交互,方便程序化控制的最小单位为准: 进度条的底槽、填充和外框; slider的底槽, dragger等. +* 为每个节点直接返回完整 components。纯容器返回空数组;目前我们只做识别, 不要求图片字体参数 * 每个节点当前最多返回一个 Image component 和一个 Text component。 +* 文字组件要求: 艺术字等作为图片组件, 其余正常文字要作为单独的节点识别. "#;