重命名 separated_image_area 为 extracted_area,优化命名一致性并明确区域含义
This commit is contained in:
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user