fix: som_anchor_match déclenché quand by_text vide (icônes sans texte)
La condition vérifiait anchor_label (du SomEngine) au lieu de by_text. Pour les icônes (disquette, loupe), by_text est vide même si anchor_label contient du bavardage VLM. Maintenant le template matching anchor vs YOLO se déclenche correctement. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -3532,7 +3532,8 @@ def _resolve_by_som(
|
||||
# Pour les icônes sans texte : comparer le crop de référence contre
|
||||
# chaque région YOLO détectée par SomEngine.
|
||||
anchor_b64 = target_spec.get("anchor_image_base64", "")
|
||||
if anchor_b64 and not anchor_label:
|
||||
by_text = target_spec.get("by_text", "").strip()
|
||||
if anchor_b64 and (not anchor_label or not by_text):
|
||||
try:
|
||||
import cv2
|
||||
import numpy as np
|
||||
|
||||
Reference in New Issue
Block a user