debug: use INFO level for skip-reason logs
Some checks failed
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-school (push) Successful in 27s
CI / test-go-edu-search (push) Successful in 28s
CI / test-python-klausur (push) Failing after 1m56s
CI / test-nodejs-website (push) Has been cancelled
CI / test-python-agent-core (push) Has been cancelled
Some checks failed
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-school (push) Successful in 27s
CI / test-go-edu-search (push) Successful in 28s
CI / test-python-klausur (push) Failing after 1m56s
CI / test-nodejs-website (push) Has been cancelled
CI / test-python-agent-core (push) Has been cancelled
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -270,7 +270,7 @@ def detect_graphic_elements(
|
||||
if area < min_area or area > max_area:
|
||||
bx, by, bw, bh = cv2.boundingRect(cnt)
|
||||
reason = f"area={int(area)}<{min_area}" if area < min_area else f"area={int(area)}>{max_area}"
|
||||
logger.debug("GraphicDetect SKIP: %s at (%d,%d) %dx%d", reason, bx, by, bw, bh)
|
||||
logger.info("GraphicDetect SKIP: %s at (%d,%d) %dx%d", reason, bx, by, bw, bh)
|
||||
skip_reasons[f"area_filter"] = skip_reasons.get("area_filter", 0) + 1
|
||||
continue
|
||||
|
||||
@@ -283,7 +283,7 @@ def detect_graphic_elements(
|
||||
roi_excl = exclusion[by:by + bh, bx:bx + bw]
|
||||
excl_ratio = np.sum(roi_excl > 0) / (bw * bh) if bw * bh > 0 else 0
|
||||
if excl_ratio > 0.4:
|
||||
logger.debug("GraphicDetect SKIP excl_ratio=%.2f at (%d,%d) %dx%d area=%d",
|
||||
logger.info("GraphicDetect SKIP excl_ratio=%.2f at (%d,%d) %dx%d area=%d",
|
||||
excl_ratio, bx, by, bw, bh, int(area))
|
||||
skip_reasons["excl_overlap"] = skip_reasons.get("excl_overlap", 0) + 1
|
||||
continue
|
||||
@@ -293,7 +293,7 @@ def detect_graphic_elements(
|
||||
|
||||
# Skip noise (too small or text-like)
|
||||
if shape == "noise":
|
||||
logger.debug("GraphicDetect SKIP noise at (%d,%d) %dx%d area=%d",
|
||||
logger.info("GraphicDetect SKIP noise at (%d,%d) %dx%d area=%d",
|
||||
bx, by, bw, bh, int(area))
|
||||
skip_reasons["noise"] = skip_reasons.get("noise", 0) + 1
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user