Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:lipstick: Simplify OCR threshold setting hints https://github.com/siyuan-note/siyuan/issues/19984

Daniel494a330e9e06
diff --git a/app/appearance/langs/ar.json b/app/appearance/langs/ar.json
index 6c25b4bffa..29aefabb7f 100644
--- a/app/appearance/langs/ar.json
+++ b/app/appearance/langs/ar.json
@@ -1,8 +1,9 @@
{
+ "ocrModelDefault": "القيمة الافتراضية للنموذج",
"ocrDetectionThreshold": "عتبة الكشف",
"ocrBoxThreshold": "عتبة الثقة لمربعات النص",
"ocrRecognitionThreshold": "عتبة الثقة للتعرف",
- "ocrThresholdsTip": "اترك الحقل فارغًا لاستخدام إعدادات الكشف للنموذج وعتبة التعرف 0.5؛ القيم الأعلى تقلل التعرف الخاطئ لكنها قد تفوّت نصوصًا؛ ينطبق على عمليات التعرف اللاحقة فقط",
+ "ocrThresholdsTip": "اترك الحقل فارغًا لاستخدام القيم الافتراضية. رفع العتبات يقلل النتائج الخاطئة، لكنه قد يفوّت نصوصًا. ينطبق على عمليات التعرف اللاحقة فقط",
"ocrThresholdRange": "يجب أن تكون عتبتا الكشف والمربعات أكبر من 0 وأقل من 1، وعتبة التعرف بين 0 و1",
"automationIncomplete": "القاعدة متوقفة؛ أكمل الإعداد: ${1}",
"databaseAutomations": "أتمتة",
diff --git a/app/appearance/langs/de.json b/app/appearance/langs/de.json
index fdbd094ece..3b6a0fd89e 100644
--- a/app/appearance/langs/de.json
+++ b/app/appearance/langs/de.json
@@ -1,8 +1,9 @@
{
+ "ocrModelDefault": "Modellstandard",
"ocrDetectionThreshold": "Erkennungsschwelle für Textbereiche",
"ocrBoxThreshold": "Konfidenzschwelle für Textrahmen",
"ocrRecognitionThreshold": "Konfidenzschwelle für Texterkennung",
- "ocrThresholdsTip": "Leer lassen für die Erkennungsparameter des Modells und eine Texterkennungsschwelle von 0.5; höhere Werte reduzieren Fehlerkennungen, können aber Text übersehen; gilt nur für künftige Erkennungen",
+ "ocrThresholdsTip": "Leer lassen für Standardwerte. Höhere Schwellen reduzieren Fehlerkennungen, können aber Text übersehen. Gilt nur für künftige Erkennungen",
"ocrThresholdRange": "Bereichs- und Rahmenschwellen müssen größer als 0 und kleiner als 1 sein; die Texterkennungsschwelle muss zwischen 0 und 1 liegen",
"automationIncomplete": "Regel pausiert; Konfiguration vervollständigen: ${1}",
"databaseAutomations": "Automatisierungen",
diff --git a/app/appearance/langs/en.json b/app/appearance/langs/en.json
index ffbda360eb..d32fe7df6e 100644
--- a/app/appearance/langs/en.json
+++ b/app/appearance/langs/en.json
@@ -1,8 +1,9 @@
{
+ "ocrModelDefault": "Model default",
"ocrDetectionThreshold": "Detection threshold",
"ocrBoxThreshold": "Text box confidence threshold",
"ocrRecognitionThreshold": "Recognition confidence threshold",
- "ocrThresholdsTip": "Leave blank to use model detection parameters and a recognition threshold of 0.5; higher thresholds reduce false positives but may miss text; applies to future recognition only",
+ "ocrThresholdsTip": "Leave blank to use defaults. Higher thresholds reduce false positives but may miss text. Applies to future recognition only",
"ocrThresholdRange": "Detection and box thresholds must be greater than 0 and less than 1; recognition must be between 0 and 1",
"automationIncomplete": "Rule paused; complete the configuration: ${1}",
"databaseAutomations": "Automations",
diff --git a/app/appearance/langs/es.json b/app/appearance/langs/es.json
index cda7825e14..11ca159e62 100644
--- a/app/appearance/langs/es.json
+++ b/app/appearance/langs/es.json
@@ -1,8 +1,9 @@
{
+ "ocrModelDefault": "Predeterminado del modelo",
"ocrDetectionThreshold": "Umbral de detección",
"ocrBoxThreshold": "Umbral de confianza de los cuadros de texto",
"ocrRecognitionThreshold": "Umbral de confianza de reconocimiento",
- "ocrThresholdsTip": "Dejar vacío para usar los parámetros de detección del modelo y un umbral de reconocimiento de 0.5; los valores altos reducen falsos positivos, pero pueden omitir texto; solo afecta a futuros reconocimientos",
+ "ocrThresholdsTip": "Deja en blanco para usar los valores predeterminados. Los umbrales más altos reducen los falsos positivos, pero pueden omitir texto. Solo se aplica a futuros reconocimientos",
"ocrThresholdRange": "Los umbrales de detección y de cuadros deben ser mayores que 0 y menores que 1; el de reconocimiento debe estar entre 0 y 1",
"automationIncomplete": "Regla pausada; completa la configuración: ${1}",
"databaseAutomations": "Automatizaciones",
diff --git a/app/appearance/langs/fr.json b/app/appearance/langs/fr.json
index 01182fdcf3..8d9d5fd9c6 100644
--- a/app/appearance/langs/fr.json
+++ b/app/appearance/langs/fr.json
@@ -1,8 +1,9 @@
{
+ "ocrModelDefault": "Valeur par défaut du modèle",
"ocrDetectionThreshold": "Seuil de détection",
"ocrBoxThreshold": "Seuil de confiance des zones de texte",
"ocrRecognitionThreshold": "Seuil de confiance de reconnaissance",
- "ocrThresholdsTip": "Laisser vide pour utiliser les paramètres de détection du modèle et un seuil de reconnaissance de 0.5 ; des seuils plus élevés réduisent les faux positifs mais peuvent omettre du texte ; uniquement pour les prochaines reconnaissances",
+ "ocrThresholdsTip": "Laisser vide pour utiliser les valeurs par défaut. Des seuils plus élevés réduisent les faux positifs, mais peuvent omettre du texte. S'applique uniquement aux prochaines reconnaissances",
"ocrThresholdRange": "Les seuils de détection et des zones doivent être strictement compris entre 0 et 1 ; celui de reconnaissance doit être compris entre 0 et 1 inclus",
"automationIncomplete": "Règle suspendue ; complétez la configuration : ${1}",
"databaseAutomations": "Automatisations",
diff --git a/app/appearance/langs/he.json b/app/appearance/langs/he.json
index 2ddeba8515..70c3833851 100644
--- a/app/appearance/langs/he.json
+++ b/app/appearance/langs/he.json
@@ -1,8 +1,9 @@
{
+ "ocrModelDefault": "ברירת המחדל של המודל",
"ocrDetectionThreshold": "סף זיהוי אזורים",
"ocrBoxThreshold": "סף ביטחון לתיבות טקסט",
"ocrRecognitionThreshold": "סף ביטחון לזיהוי טקסט",
- "ocrThresholdsTip": "יש להשאיר ריק לשימוש בפרמטרי זיהוי האזורים של המודל ובסף זיהוי טקסט של 0.5; ערכים גבוהים מפחיתים זיהוי שגוי אך עלולים להחמיץ טקסט; חל רק על זיהויים עתידיים",
+ "ocrThresholdsTip": "יש להשאיר ריק לשימוש בערכי ברירת המחדל. ספים גבוהים יותר מפחיתים זיהוי שגוי אך עלולים להחמיץ טקסט. חל רק על זיהויים עתידיים",
"ocrThresholdRange": "ספי זיהוי האזורים והתיבות חייבים להיות גדולים מ־0 וקטנים מ־1; סף זיהוי הטקסט חייב להיות בין 0 ל־1",
"automationIncomplete": "הכלל מושהה; יש להשלים את ההגדרות: ${1}",
"databaseAutomations": "אוטומציות",
diff --git a/app/appearance/langs/hi.json b/app/appearance/langs/hi.json
index 1f5e8cf2ee..a539e1f1fa 100644
--- a/app/appearance/langs/hi.json
+++ b/app/appearance/langs/hi.json
@@ -1,8 +1,9 @@
{
+ "ocrModelDefault": "मॉडल का डिफ़ॉल्ट",
"ocrDetectionThreshold": "पहचान क्षेत्र की सीमा",
"ocrBoxThreshold": "टेक्स्ट बॉक्स विश्वास सीमा",
"ocrRecognitionThreshold": "अक्षर पहचान विश्वास सीमा",
- "ocrThresholdsTip": "मॉडल के पहचान पैरामीटर और 0.5 अक्षर पहचान सीमा के लिए खाली छोड़ें; अधिक सीमा गलत पहचान घटाती है लेकिन कुछ टेक्स्ट छूट सकता है; केवल आगे की पहचान पर लागू",
+ "ocrThresholdsTip": "डिफ़ॉल्ट मानों के लिए खाली छोड़ें। सीमा बढ़ाने से गलत पहचान कम होती है, लेकिन कुछ टेक्स्ट छूट सकता है। केवल आगे की पहचान पर लागू",
"ocrThresholdRange": "क्षेत्र और बॉक्स की सीमाएँ 0 से बड़ी और 1 से छोटी हों; अक्षर पहचान की सीमा 0 से 1 के बीच हो",
"automationIncomplete": "नियम रोका गया है; कॉन्फ़िगरेशन पूरा करें: ${1}",
"databaseAutomations": "स्वचालन",
diff --git a/app/appearance/langs/id.json b/app/appearance/langs/id.json
index 5aa9d820e5..3609a7b606 100644
--- a/app/appearance/langs/id.json
+++ b/app/appearance/langs/id.json
@@ -1,8 +1,9 @@
{
+ "ocrModelDefault": "Bawaan model",
"ocrDetectionThreshold": "Ambang deteksi",
"ocrBoxThreshold": "Ambang keyakinan kotak teks",
"ocrRecognitionThreshold": "Ambang keyakinan pengenalan",
- "ocrThresholdsTip": "Kosongkan untuk memakai parameter deteksi model dan ambang pengenalan 0.5; ambang lebih tinggi mengurangi kesalahan tetapi dapat melewatkan teks; hanya berlaku untuk pengenalan berikutnya",
+ "ocrThresholdsTip": "Kosongkan untuk memakai nilai bawaan. Ambang lebih tinggi mengurangi kesalahan deteksi, tetapi dapat melewatkan teks. Hanya berlaku untuk pengenalan berikutnya",
"ocrThresholdRange": "Ambang deteksi dan kotak harus lebih besar dari 0 dan lebih kecil dari 1; ambang pengenalan harus antara 0 dan 1",
"automationIncomplete": "Aturan dijeda; lengkapi konfigurasi: ${1}",
"databaseAutomations": "Otomatisasi",
diff --git a/app/appearance/langs/it.json b/app/appearance/langs/it.json
index 2baf3490c4..1d71ae9f60 100644
--- a/app/appearance/langs/it.json
+++ b/app/appearance/langs/it.json
@@ -1,8 +1,9 @@
{
+ "ocrModelDefault": "Predefinito del modello",
"ocrDetectionThreshold": "Soglia di rilevamento",
"ocrBoxThreshold": "Soglia di confidenza dei riquadri di testo",
"ocrRecognitionThreshold": "Soglia di confidenza del riconoscimento",
- "ocrThresholdsTip": "Lasciare vuoto per usare i parametri di rilevamento del modello e una soglia di riconoscimento di 0.5; valori più alti riducono i falsi positivi ma possono omettere testo; si applica solo ai riconoscimenti successivi",
+ "ocrThresholdsTip": "Lasciare vuoto per usare i valori predefiniti. Soglie più alte riducono i falsi positivi, ma possono omettere testo. Si applica solo ai riconoscimenti successivi",
"ocrThresholdRange": "Le soglie di rilevamento e dei riquadri devono essere maggiori di 0 e minori di 1; quella di riconoscimento deve essere compresa tra 0 e 1",
"automationIncomplete": "Regola in pausa; completa la configurazione: ${1}",
"databaseAutomations": "Automazioni",
diff --git a/app/appearance/langs/ja.json b/app/appearance/langs/ja.json
index 378324c3a0..b6ca594959 100644
--- a/app/appearance/langs/ja.json
+++ b/app/appearance/langs/ja.json
@@ -1,8 +1,9 @@
{
+ "ocrModelDefault": "モデルの既定値",
"ocrDetectionThreshold": "検出しきい値",
"ocrBoxThreshold": "テキスト領域の信頼度しきい値",
"ocrRecognitionThreshold": "認識の信頼度しきい値",
- "ocrThresholdsTip": "空欄の場合はモデルの検出パラメーターと認識しきい値 0.5 を使用します。値を上げると誤認識を減らせますが、文字を見落とす場合があります。次回以降の認識にのみ適用されます",
+ "ocrThresholdsTip": "空欄の場合は既定値を使用します。しきい値を上げると誤検出を減らせますが、文字を見落とす場合があります。次回以降の認識にのみ適用されます",
"ocrThresholdRange": "検出とテキスト領域のしきい値は 0 より大きく 1 未満、認識しきい値は 0 以上 1 以下にしてください",
"automationIncomplete": "ルールは停止中です。設定を完了してください:${1}",
"databaseAutomations": "自動化",
diff --git a/app/appearance/langs/ko.json b/app/appearance/langs/ko.json
index 10e55ad927..540500d0ca 100644
--- a/app/appearance/langs/ko.json
+++ b/app/appearance/langs/ko.json
@@ -1,8 +1,9 @@
{
+ "ocrModelDefault": "모델 기본값",
"ocrDetectionThreshold": "검출 임계값",
"ocrBoxThreshold": "텍스트 영역 신뢰도 임계값",
"ocrRecognitionThreshold": "인식 신뢰도 임계값",
- "ocrThresholdsTip": "비워 두면 모델의 검출 매개변수와 인식 임계값 0.5를 사용합니다. 값을 높이면 오인식이 줄지만 일부 텍스트를 놓칠 수 있습니다. 이후 인식에만 적용됩니다",
+ "ocrThresholdsTip": "비워 두면 기본값을 사용합니다. 임계값을 높이면 오검출이 줄지만 일부 텍스트를 놓칠 수 있습니다. 이후 인식에만 적용됩니다",
"ocrThresholdRange": "검출 및 영역 임계값은 0보다 크고 1보다 작아야 하며, 인식 임계값은 0 이상 1 이하여야 합니다",
"automationIncomplete": "규칙이 일시 중지되었습니다. 설정을 완료하세요: ${1}",
"databaseAutomations": "자동화",
diff --git a/app/appearance/langs/nl.json b/app/appearance/langs/nl.json
index 84c1be9a71..a9f72d7db5 100644
--- a/app/appearance/langs/nl.json
+++ b/app/appearance/langs/nl.json
@@ -1,8 +1,9 @@
{
+ "ocrModelDefault": "Modelstandaard",
"ocrDetectionThreshold": "Detectiedrempel",
"ocrBoxThreshold": "Betrouwbaarheidsdrempel voor tekstvakken",
"ocrRecognitionThreshold": "Betrouwbaarheidsdrempel voor herkenning",
- "ocrThresholdsTip": "Laat leeg voor de detectieparameters van het model en een herkenningsdrempel van 0.5; hogere waarden verminderen foutieve herkenning maar kunnen tekst missen; geldt alleen voor volgende herkenningen",
+ "ocrThresholdsTip": "Laat leeg voor standaardwaarden. Hogere drempels verminderen foutieve detecties, maar kunnen tekst missen. Geldt alleen voor volgende herkenningen",
"ocrThresholdRange": "Detectie- en tekstvakdrempels moeten groter dan 0 en kleiner dan 1 zijn; de herkenningsdrempel moet tussen 0 en 1 liggen",
"automationIncomplete": "Regel gepauzeerd; voltooi de configuratie: ${1}",
"databaseAutomations": "Automatiseringen",
diff --git a/app/appearance/langs/pl.json b/app/appearance/langs/pl.json
index a2cc09c191..499068fb51 100644
--- a/app/appearance/langs/pl.json
+++ b/app/appearance/langs/pl.json
@@ -1,8 +1,9 @@
{
+ "ocrModelDefault": "Domyślna wartość modelu",
"ocrDetectionThreshold": "Próg wykrywania",
"ocrBoxThreshold": "Próg pewności obszarów tekstu",
"ocrRecognitionThreshold": "Próg pewności rozpoznawania",
- "ocrThresholdsTip": "Pozostaw puste, aby użyć parametrów wykrywania modelu i progu rozpoznawania 0.5; wyższe progi zmniejszają liczbę błędnych rozpoznań, ale mogą pomijać tekst; dotyczy tylko kolejnych rozpoznań",
+ "ocrThresholdsTip": "Pozostaw puste, aby użyć wartości domyślnych. Wyższe progi zmniejszają liczbę błędnych wykryć, ale mogą pomijać tekst. Dotyczy tylko kolejnych rozpoznań",
"ocrThresholdRange": "Progi wykrywania i obszarów muszą być większe od 0 i mniejsze od 1; próg rozpoznawania musi mieścić się od 0 do 1",
"automationIncomplete": "Reguła wstrzymana; uzupełnij konfigurację: ${1}",
"databaseAutomations": "Automatyzacje",
diff --git a/app/appearance/langs/pt-BR.json b/app/appearance/langs/pt-BR.json
index 97a56cfe45..badb7129de 100644
--- a/app/appearance/langs/pt-BR.json
+++ b/app/appearance/langs/pt-BR.json
@@ -1,8 +1,9 @@
{
+ "ocrModelDefault": "Padrão do modelo",
"ocrDetectionThreshold": "Limiar de detecção",
"ocrBoxThreshold": "Limiar de confiança das caixas de texto",
"ocrRecognitionThreshold": "Limiar de confiança do reconhecimento",
- "ocrThresholdsTip": "Deixe vazio para usar os parâmetros de detecção do modelo e o limiar de reconhecimento de 0.5; valores maiores reduzem falsos positivos, mas podem omitir texto; aplica-se apenas a novos reconhecimentos",
+ "ocrThresholdsTip": "Deixe vazio para usar os valores padrão. Limiares maiores reduzem falsos positivos, mas podem omitir texto. Aplica-se apenas a novos reconhecimentos",
"ocrThresholdRange": "Os limiares de detecção e das caixas devem ser maiores que 0 e menores que 1; o de reconhecimento deve estar entre 0 e 1",
"automationIncomplete": "Regra pausada; complete a configuração: ${1}",
"databaseAutomations": "Automações",
diff --git a/app/appearance/langs/ru.json b/app/appearance/langs/ru.json
index ad4e1cc6b6..f850181e5c 100644
--- a/app/appearance/langs/ru.json
+++ b/app/appearance/langs/ru.json
@@ -1,8 +1,9 @@
{
+ "ocrModelDefault": "По умолчанию для модели",
"ocrDetectionThreshold": "Порог обнаружения",
"ocrBoxThreshold": "Порог уверенности текстовых областей",
"ocrRecognitionThreshold": "Порог уверенности распознавания",
- "ocrThresholdsTip": "Оставьте пустым для параметров обнаружения модели и порога распознавания 0.5; повышение порогов уменьшает ложные срабатывания, но может пропускать текст; действует только для последующего распознавания",
+ "ocrThresholdsTip": "Оставьте пустым для значений по умолчанию. Повышение порогов уменьшает ложные срабатывания, но может приводить к пропуску текста. Действует только для последующего распознавания",
"ocrThresholdRange": "Пороги обнаружения и областей должны быть больше 0 и меньше 1; порог распознавания должен быть от 0 до 1",
"automationIncomplete": "Правило приостановлено; завершите настройку: ${1}",
"databaseAutomations": "Автоматизация",
diff --git a/app/appearance/langs/sk.json b/app/appearance/langs/sk.json
index 3c7d2fea5f..aea5bc4d79 100644
--- a/app/appearance/langs/sk.json
+++ b/app/appearance/langs/sk.json
@@ -1,8 +1,9 @@
{
+ "ocrModelDefault": "Predvolená hodnota modelu",
"ocrDetectionThreshold": "Prah detekcie",
"ocrBoxThreshold": "Prah spoľahlivosti textových oblastí",
"ocrRecognitionThreshold": "Prah spoľahlivosti rozpoznávania",
- "ocrThresholdsTip": "Ponechajte prázdne pre parametre detekcie modelu a prah rozpoznávania 0.5; vyššie prahy znižujú falošné rozpoznania, ale môžu vynechať text; platí iba pre ďalšie rozpoznávania",
+ "ocrThresholdsTip": "Ponechajte prázdne pre predvolené hodnoty. Vyššie prahy znižujú počet chybných detekcií, ale môžu vynechať text. Platí iba pre ďalšie rozpoznávania",
"ocrThresholdRange": "Prahy detekcie a oblastí musia byť väčšie ako 0 a menšie ako 1; prah rozpoznávania musí byť od 0 do 1",
"automationIncomplete": "Pravidlo pozastavené; dokončite konfiguráciu: ${1}",
"databaseAutomations": "Automatizácie",
diff --git a/app/appearance/langs/sr.json b/app/appearance/langs/sr.json
index f61c67441f..ca2cee357a 100644
--- a/app/appearance/langs/sr.json
+++ b/app/appearance/langs/sr.json
@@ -1,8 +1,9 @@
{
+ "ocrModelDefault": "Подразумевана вредност модела",
"ocrDetectionThreshold": "Праг детекције",
"ocrBoxThreshold": "Праг поузданости текстуалних области",
"ocrRecognitionThreshold": "Праг поузданости препознавања",
- "ocrThresholdsTip": "Оставите празно за параметре детекције модела и праг препознавања 0.5; виши прагови смањују погрешна препознавања, али могу пропустити текст; важи само за наредна препознавања",
+ "ocrThresholdsTip": "Оставите празно за подразумеване вредности. Виши прагови смањују погрешне детекције, али могу пропустити текст. Важи само за наредна препознавања",
"ocrThresholdRange": "Прагови детекције и области морају бити већи од 0 и мањи од 1; праг препознавања мора бити од 0 до 1",
"automationIncomplete": "Правило је паузирано; довршите подешавање: ${1}",
"databaseAutomations": "Аутоматизације",
diff --git a/app/appearance/langs/th.json b/app/appearance/langs/th.json
index e0d728d86b..eb019b0ba8 100644
--- a/app/appearance/langs/th.json
+++ b/app/appearance/langs/th.json
@@ -1,8 +1,9 @@
{
+ "ocrModelDefault": "ค่าเริ่มต้นของโมเดล",
"ocrDetectionThreshold": "เกณฑ์การตรวจจับ",
"ocrBoxThreshold": "เกณฑ์ความเชื่อมั่นของกรอบข้อความ",
"ocrRecognitionThreshold": "เกณฑ์ความเชื่อมั่นของการรู้จำ",
- "ocrThresholdsTip": "เว้นว่างเพื่อใช้ค่าการตรวจจับของโมเดลและเกณฑ์การรู้จำ 0.5 การเพิ่มเกณฑ์ช่วยลดการรู้จำผิด แต่อาจทำให้พลาดข้อความ มีผลเฉพาะการรู้จำครั้งถัดไป",
+ "ocrThresholdsTip": "เว้นว่างเพื่อใช้ค่าเริ่มต้น การเพิ่มเกณฑ์ช่วยลดการตรวจจับผิด แต่อาจทำให้พลาดข้อความ มีผลเฉพาะการรู้จำครั้งถัดไป",
"ocrThresholdRange": "เกณฑ์การตรวจจับและกรอบข้อความต้องมากกว่า 0 และน้อยกว่า 1 ส่วนเกณฑ์การรู้จำต้องอยู่ระหว่าง 0 ถึง 1",
"automationIncomplete": "หยุดกฎไว้ชั่วคราว โปรดตั้งค่าให้ครบถ้วน: ${1}",
"databaseAutomations": "ระบบอัตโนมัติ",
diff --git a/app/appearance/langs/tr.json b/app/appearance/langs/tr.json
index 4edb9fdc8f..9a10db3a51 100644
--- a/app/appearance/langs/tr.json
+++ b/app/appearance/langs/tr.json
@@ -1,8 +1,9 @@
{
+ "ocrModelDefault": "Model varsayılanı",
"ocrDetectionThreshold": "Algılama eşiği",
"ocrBoxThreshold": "Metin kutusu güven eşiği",
"ocrRecognitionThreshold": "Tanıma güven eşiği",
- "ocrThresholdsTip": "Modelin algılama parametrelerini ve 0.5 tanıma eşiğini kullanmak için boş bırakın; yüksek eşikler yanlış tanımaları azaltır ancak metni atlayabilir; yalnızca sonraki tanımaları etkiler",
+ "ocrThresholdsTip": "Varsayılan değerleri kullanmak için boş bırakın. Daha yüksek eşikler yanlış algılamaları azaltır ancak metni atlayabilir. Yalnızca sonraki tanımaları etkiler",
"ocrThresholdRange": "Algılama ve kutu eşikleri 0’dan büyük ve 1’den küçük olmalıdır; tanıma eşiği 0 ile 1 arasında olmalıdır",
"automationIncomplete": "Kural duraklatıldı; yapılandırmayı tamamlayın: ${1}",
"databaseAutomations": "Otomasyonlar",
diff --git a/app/appearance/langs/uk.json b/app/appearance/langs/uk.json
index 5f3a67e340..0b04d8396e 100644
--- a/app/appearance/langs/uk.json
+++ b/app/appearance/langs/uk.json
@@ -1,8 +1,9 @@
{
+ "ocrModelDefault": "Типове значення моделі",
"ocrDetectionThreshold": "Поріг виявлення",
"ocrBoxThreshold": "Поріг впевненості текстових областей",
"ocrRecognitionThreshold": "Поріг впевненості розпізнавання",
- "ocrThresholdsTip": "Залиште порожнім для параметрів виявлення моделі та порога розпізнавання 0.5; вищі пороги зменшують хибні спрацювання, але можуть пропускати текст; діє лише для подальшого розпізнавання",
+ "ocrThresholdsTip": "Залиште порожнім для типових значень. Вищі пороги зменшують хибні спрацювання, але можуть призводити до пропуску тексту. Діє лише для подальшого розпізнавання",
"ocrThresholdRange": "Пороги виявлення та областей мають бути більшими за 0 і меншими за 1; поріг розпізнавання має бути від 0 до 1",
"automationIncomplete": "Правило призупинено; завершіть налаштування: ${1}",
"databaseAutomations": "Автоматизація",
diff --git a/app/appearance/langs/zh-CN.json b/app/appearance/langs/zh-CN.json
index 93f7d6f08e..84d49d6836 100644
--- a/app/appearance/langs/zh-CN.json
+++ b/app/appearance/langs/zh-CN.json
@@ -1,8 +1,9 @@
{
+ "ocrModelDefault": "模型默认",
"ocrDetectionThreshold": "检测阈值",
"ocrBoxThreshold": "文本框置信度阈值",
"ocrRecognitionThreshold": "识别置信度阈值",
- "ocrThresholdsTip": "留空使用模型检测参数和 0.5 的识别阈值;提高阈值可减少误识别,但可能漏字;仅影响后续识别",
+ "ocrThresholdsTip": "留空使用默认值。调高阈值可减少误检,也可能漏字。仅对后续识别生效",
"ocrThresholdRange": "检测和文本框阈值须大于 0 且小于 1,识别阈值须在 0 到 1 之间",
"automationIncomplete": "规则已停用,请完善配置:${1}",
"databaseAutomations": "自动化",
diff --git a/app/appearance/langs/zh-TW.json b/app/appearance/langs/zh-TW.json
index 256d8995ad..0aeb6f19cc 100644
--- a/app/appearance/langs/zh-TW.json
+++ b/app/appearance/langs/zh-TW.json
@@ -1,8 +1,9 @@
{
+ "ocrModelDefault": "模型預設",
"ocrDetectionThreshold": "偵測閾值",
"ocrBoxThreshold": "文字框信賴度閾值",
"ocrRecognitionThreshold": "辨識信賴度閾值",
- "ocrThresholdsTip": "留空使用模型偵測參數和 0.5 的辨識閾值;提高閾值可減少誤辨識,但可能漏字;僅影響後續辨識",
+ "ocrThresholdsTip": "留空使用預設值。調高閾值可減少誤判,也可能漏字。僅對後續辨識生效",
"ocrThresholdRange": "偵測和文字框閾值須大於 0 且小於 1,辨識閾值須介於 0 到 1",
"automationIncomplete": "規則已停用,請完善設定:${1}",
"databaseAutomations": "自動化",
diff --git a/app/src/config/ocrThresholds.test.ts b/app/src/config/ocrThresholds.test.ts
index cc388d3121..e985deb189 100644
--- a/app/src/config/ocrThresholds.test.ts
+++ b/app/src/config/ocrThresholds.test.ts
@@ -31,7 +31,8 @@ const createDialog = (mobile = false, initial: OCRThresholds = {detection: 0.4,
const exports = {} as {openOCRThresholds: (value: OCRThresholds, save: (value: OCRThresholds) => Promise<boolean>, close: () => void) => Dialog};
runInNewContext(compiled, {exports, window: {siyuan: {languages: {
ocrDetectionThreshold: "Detection", ocrBoxThreshold: "Box", ocrRecognitionThreshold: "Recognition",
- ocrThresholdRange: "invalid threshold", default: "Default", configGroupAdvanced: "Advanced",
+ ocrThresholdRange: "invalid threshold", ocrModelDefault: "Model default", configGroupAdvanced: "Advanced",
+ ocrThresholdsTip: "Leave blank to use defaults",
}}}, require: () => ({Dialog, isMobile: () => mobile, escapeAttr: (value: string) => value})});
const dialog = exports.openOCRThresholds(initial, value => new Promise(resolve => requests.push({value, resolve})), () => { closed++; });
const click = (action: string) => listeners.get("click")({target: {closest: () => ({dataset: {action}})}});
@@ -44,6 +45,10 @@ for (const mobile of [false, true]) {
assert.equal(panel.options.width, mobile ? "92vw" : "520px");
assert.doesNotMatch(panel.options.content, /<details|<summary/);
assert.match(panel.options.content, /b3-dialog__content/);
+ assert.match(panel.options.content, /Leave blank to use defaults/);
+ assert.match(panel.options.content, /id="ocr-detection"[^>]*placeholder="Model default"/);
+ assert.match(panel.options.content, /id="ocr-box"[^>]*placeholder="Model default"/);
+ assert.match(panel.options.content, /id="ocr-recognition"[^>]*placeholder="0.5"/);
panel.inputs.detection.value = "0.6";
assert.equal(panel.requests.length, 0);
const saving = panel.click("save");
diff --git a/app/src/config/ocrThresholds.ts b/app/src/config/ocrThresholds.ts
index 4d57740bba..f5857bb752 100644
--- a/app/src/config/ocrThresholds.ts
+++ b/app/src/config/ocrThresholds.ts
@@ -10,9 +10,9 @@ export const openOCRThresholds = (
): Dialog => {
const languages = window.siyuan.languages;
const fields = [
- {key: "detection", title: languages.ocrDetectionThreshold},
- {key: "box", title: languages.ocrBoxThreshold},
- {key: "recognition", title: languages.ocrRecognitionThreshold},
+ {key: "detection", title: languages.ocrDetectionThreshold, placeholder: languages.ocrModelDefault},
+ {key: "box", title: languages.ocrBoxThreshold, placeholder: languages.ocrModelDefault},
+ {key: "recognition", title: languages.ocrRecognitionThreshold, placeholder: "0.5"},
] as const;
let closed = false;
let saving = false;
@@ -21,9 +21,9 @@ export const openOCRThresholds = (
width: isMobile() ? "92vw" : "520px",
content: `<div class="b3-dialog__content">
<div class="b3-label__text">${languages.ocrThresholdsTip}</div><div class="fn__hr--b"></div>
-${fields.map(({key, title}) => `<div class="b3-label b3-label--inner">
+${fields.map(({key, title, placeholder}) => `<div class="b3-label b3-label--inner">
<label class="config-name fn__block" for="ocr-${key}">${title}</label><div class="fn__hr"></div>
-<input id="ocr-${key}" class="b3-text-field fn__block" type="number" min="0" max="1" step="any" value="${initial?.[key] ?? ""}" placeholder="${escapeAttr(languages.default)}"></div>`).join("")}
+<input id="ocr-${key}" class="b3-text-field fn__block" type="number" min="0" max="1" step="any" value="${initial?.[key] ?? ""}" placeholder="${escapeAttr(placeholder)}"></div>`).join("")}
</div><div class="b3-dialog__action">
<button class="b3-button b3-button--outline" data-action="reset">${languages.reset}</button><div class="fn__flex-1"></div>
<button class="b3-button b3-button--cancel" data-action="cancel">${languages.cancel}</button><div class="fn__space"></div>