This commit is contained in:
2026-08-07 18:03:56 +08:00
parent 645c483649
commit 1a76602872
15 changed files with 273 additions and 6 deletions
@@ -143,7 +143,7 @@ public class WeightOcrBatchService {
if (candidate == null || candidate.text() == null) {
continue;
}
String text = candidate.text().strip().replaceAll("[\\p{Cc}\\p{Cf}]+", " ");
String text = candidate.text().replaceAll("[\\p{Cc}\\p{Cf}]+", " ").strip();
if (text.isBlank()) {
continue;
}