diff --git a/memos/plugins/ocr/ppocr.yaml b/memos/plugins/ocr/ppocr.yaml index 5a93b55..3945096 100644 --- a/memos/plugins/ocr/ppocr.yaml +++ b/memos/plugins/ocr/ppocr.yaml @@ -6,6 +6,7 @@ Global: print_verbose: false min_height: 30 width_height_ratio: 40 + use_space_char: true Det: use_cuda: false diff --git a/web/src/lib/Figure.svelte b/web/src/lib/Figure.svelte index 0a0333d..c931c57 100644 --- a/web/src/lib/Figure.svelte +++ b/web/src/lib/Figure.svelte @@ -91,21 +91,21 @@
@@ -187,11 +187,11 @@
-
-
diff --git a/web/src/lib/OCRTable.svelte b/web/src/lib/OCRTable.svelte index 3530382..1a758ff 100644 --- a/web/src/lib/OCRTable.svelte +++ b/web/src/lib/OCRTable.svelte @@ -4,19 +4,22 @@ */ export let ocrData = []; - - - - - - - - - {#each ocrData as { dt_boxes, rec_txt, score }} - - - + +
+
TextScore
{rec_txt}{score.toFixed(3)}
+ + + + - {/each} - -
TextScore
\ No newline at end of file + + + {#each ocrData as { dt_boxes, rec_txt, score }} + + {rec_txt} + {score.toFixed(3)} + + {/each} + + + \ No newline at end of file