重命名 separated_image_area 为 extracted_area,优化命名一致性并明确区域含义

This commit is contained in:
2026-09-09 15:48:32 +08:00
parent 7aa96e8438
commit aa2a78f7e0
4 changed files with 6 additions and 4 deletions
@@ -145,7 +145,7 @@ mod tests {
let id = NodeId::new("image").unwrap();
let decisions = vec![BindingDecision::Ok {
to_node: id.clone(),
separated_image_area: BindingArea {
extracted_area: BindingArea {
global_pos_x_px: 0,
global_pos_y_px: 0,
width_px: 1,
@@ -110,7 +110,7 @@ impl BindingArea {
#[schemars(deny_unknown_fields)]
pub enum BindingDecision {
Ok {
separated_image_area: BindingArea,
extracted_area: BindingArea,
to_node: NodeId,
},
NeedRework {
@@ -37,7 +37,9 @@ pub(super) fn gen_binding_prompt(nodes: Vec<&SeparationNode>) -> String {
```
{SHARED_SEPARATION_REQ}
```
You need to recognize and review the separation:
You need to recognize and review the separation using the given tool.
field notes:
* extracted_area MUST be the recognized area from the processed image, INSTEAD OF from the src image.
these node need handle:
"#
@@ -512,7 +512,7 @@ pub(crate) async fn separate_ui_impl(
for decision in &binding.decisions {
if let BindingDecision::Ok {
to_node,
separated_image_area,
extracted_area: separated_image_area,
} = decision
{
let cut_path = sidecar.join(format!("cut-{}.png", to_node.as_str()));