浏览代码

delete(template_files): remove outdated template JSON files and add new version

- Deleted several outdated template JSON files related to layout detection, including those for 康强_北京农村商业银行, 施博深, and B用户.
- Introduced a new version of the 施博深 template, enhancing the structure and data representation for improved layout processing.
- This cleanup and update streamline the template management and ensure the use of the latest configurations.
zhch158_admin 1 月之前
父节点
当前提交
9702a5e1a5

+ 0 - 135
table_line_generator/backend/templates/B用户_扫描流水.template.json

@@ -1,135 +0,0 @@
-{
-  "name": "B用户_扫描流水",
-  "description": "",
-  "created_at": "2025-12-08T20:16:13.933527",
-  "source_image_size": {
-    "width": 1654,
-    "height": 2339
-  },
-  "horizontal_lines": [
-    449,
-    490,
-    532,
-    573,
-    615,
-    657,
-    693,
-    748,
-    788,
-    829,
-    871,
-    917,
-    964,
-    1003,
-    1038,
-    1094,
-    1134,
-    1177,
-    1220,
-    1261,
-    1303,
-    1340,
-    1418,
-    1458,
-    1500,
-    1535,
-    1590,
-    1624,
-    1676,
-    1727,
-    1767,
-    1810,
-    1852,
-    1892,
-    1931,
-    2007,
-    2040,
-    2106,
-    2147,
-    2175
-  ],
-  "vertical_lines": [
-    155,
-    267,
-    376,
-    490,
-    599,
-    715,
-    881,
-    977,
-    1091,
-    1509
-  ],
-  "table_bbox": [
-    155,
-    339,
-    1509,
-    2177
-  ],
-  "relative": {
-    "horizontal_lines": [
-      0.05984766050054407,
-      0.08215451577801959,
-      0.10500544069640914,
-      0.12731229597388466,
-      0.1501632208922742,
-      0.17301414581066377,
-      0.1926006528835691,
-      0.22252448313384113,
-      0.2442872687704026,
-      0.26659412404787813,
-      0.28944504896626766,
-      0.3144722524483134,
-      0.3400435255712731,
-      0.36126224156692055,
-      0.38030467899891185,
-      0.41077257889009794,
-      0.4325353645266594,
-      0.455930359085963,
-      0.47932535364526657,
-      0.5016322089227421,
-      0.5244831338411317,
-      0.544613710554951,
-      0.5870511425462459,
-      0.6088139281828074,
-      0.6316648531011969,
-      0.6507072905331882,
-      0.6806311207834603,
-      0.6991294885745375,
-      0.7274211099020674,
-      0.7551686615886833,
-      0.7769314472252449,
-      0.8003264417845484,
-      0.823177366702938,
-      0.8449401523394995,
-      0.8661588683351469,
-      0.9075081610446137,
-      0.9254624591947769,
-      0.9613710554951034,
-      0.9836779107725789,
-      0.998911860718172
-    ],
-    "vertical_lines": [
-      0.0,
-      0.0827178729689808,
-      0.16322008862629248,
-      0.24741506646971936,
-      0.32791728212703103,
-      0.413589364844904,
-      0.5361890694239291,
-      0.6070901033973413,
-      0.691285081240768,
-      1.0
-    ],
-    "table_bbox": [
-      0.09371221281741234,
-      0.14493373236425822,
-      0.9123337363966143,
-      0.9307396323215049
-    ]
-  },
-  "stats": {
-    "row_count": 39,
-    "col_count": 9
-  }
-}

+ 0 - 85
table_line_generator/backend/templates/康强_北京农村商业银行_v1.template.json

@@ -1,85 +0,0 @@
-{
-  "name": "康强_北京农村商业银行_v1",
-  "description": "",
-  "created_at": "2025-12-22T18:04:20.329012",
-  "source_image_size": {
-    "width": 1654,
-    "height": 2339
-  },
-  "horizontal_lines": [
-    692,
-    737,
-    793,
-    852,
-    910,
-    969,
-    1028,
-    1086,
-    1142,
-    1203,
-    1260,
-    1321,
-    1377,
-    1436,
-    1499
-  ],
-  "vertical_lines": [
-    114,
-    237,
-    375,
-    531,
-    657,
-    776,
-    835,
-    1099,
-    1239,
-    1523
-  ],
-  "table_bbox": [
-    114,
-    692,
-    1523,
-    1499
-  ],
-  "relative": {
-    "horizontal_lines": [
-      0.0,
-      0.055762081784386616,
-      0.1251548946716233,
-      0.1982651796778191,
-      0.2701363073110285,
-      0.34324659231722426,
-      0.4163568773234201,
-      0.4882280049566295,
-      0.5576208178438662,
-      0.6332094175960347,
-      0.7038413878562577,
-      0.7794299876084263,
-      0.8488228004956629,
-      0.9219330855018587,
-      1.0
-    ],
-    "vertical_lines": [
-      0.0,
-      0.08729595457771469,
-      0.18523775727466288,
-      0.29595457771469125,
-      0.38537970191625265,
-      0.46983676366217175,
-      0.5117104329311568,
-      0.6990773598296665,
-      0.7984386089425124,
-      1.0
-    ],
-    "table_bbox": [
-      0.06892382103990327,
-      0.29585292860196666,
-      0.9207980652962515,
-      0.6408721675929885
-    ]
-  },
-  "stats": {
-    "row_count": 14,
-    "col_count": 9
-  }
-}

+ 71 - 0
table_line_generator/backend/templates/施博深-v3.template.json

@@ -0,0 +1,71 @@
+{
+  "name": "施博深-v3",
+  "description": "2026-1-12",
+  "created_at": "2026-01-13T11:27:07.714113",
+  "source_image_size": {
+    "width": 2339,
+    "height": 1653
+  },
+  "horizontal_lines": [
+    428,
+    523,
+    574,
+    826,
+    1072,
+    1324
+  ],
+  "vertical_lines": [
+    114,
+    197,
+    330,
+    452,
+    604,
+    697,
+    907,
+    1124,
+    1375,
+    1609,
+    1848,
+    2053
+  ],
+  "table_bbox": [
+    114,
+    428,
+    2053,
+    1324
+  ],
+  "relative": {
+    "horizontal_lines": [
+      0.0,
+      0.10602678571428571,
+      0.16294642857142858,
+      0.44419642857142855,
+      0.71875,
+      1.0
+    ],
+    "vertical_lines": [
+      0.0,
+      0.042805569881382156,
+      0.111397627643115,
+      0.1743166580711707,
+      0.2527075812274368,
+      0.3006704486848891,
+      0.40897369778236203,
+      0.5208870551830841,
+      0.6503352243424445,
+      0.7710159876224858,
+      0.8942753996905621,
+      1.0
+    ],
+    "table_bbox": [
+      0.04873877725523728,
+      0.2589231699939504,
+      0.8777255237280889,
+      0.8009679370840895
+    ]
+  },
+  "stats": {
+    "row_count": 5,
+    "col_count": 11
+  }
+}

+ 0 - 71
table_line_generator/backend/templates/施博深_YUSYS统一OCR框架-v2.template.json

@@ -1,71 +0,0 @@
-{
-  "name": "施博深_YUSYS统一OCR框架-v2",
-  "description": "",
-  "created_at": "2025-12-08T14:43:36.684907",
-  "source_image_size": {
-    "width": 2339,
-    "height": 1653
-  },
-  "horizontal_lines": [
-    425,
-    513,
-    560,
-    793,
-    1020,
-    1252
-  ],
-  "vertical_lines": [
-    121,
-    204,
-    328,
-    452,
-    605,
-    695,
-    914,
-    1130,
-    1365,
-    1610,
-    1844,
-    2058
-  ],
-  "table_bbox": [
-    121,
-    425,
-    2058,
-    1252
-  ],
-  "relative": {
-    "horizontal_lines": [
-      0.0,
-      0.10640870616686819,
-      0.16324062877871826,
-      0.4449818621523579,
-      0.7194679564691656,
-      1.0
-    ],
-    "vertical_lines": [
-      0.0,
-      0.04284976768198245,
-      0.10686628807434176,
-      0.1708828084667011,
-      0.24987093443469283,
-      0.2963345379452762,
-      0.40939597315436244,
-      0.5209086215797625,
-      0.642230252968508,
-      0.7687145069695406,
-      0.8895198760970573,
-      1.0
-    ],
-    "table_bbox": [
-      0.05173150919196238,
-      0.2571082879612825,
-      0.8798631893971783,
-      0.7574107683000605
-    ]
-  },
-  "stats": {
-    "row_count": 5,
-    "col_count": 11
-  }
-}

+ 0 - 75
table_line_generator/backend/templates/施博深_page_001.template.json

@@ -1,75 +0,0 @@
-{
-  "name": "施博深_page_001",
-  "description": "相对坐标基于table_box",
-  "created_at": "2025-12-06T19:41:29.874344",
-  "source_image_size": {
-    "width": 2339,
-    "height": 1653
-  },
-  "horizontal_lines": [
-    426,
-    513,
-    716,
-    818,
-    970,
-    1068,
-    1219,
-    1324
-  ],
-  "vertical_lines": [
-    114,
-    202,
-    332,
-    453,
-    604,
-    694,
-    914,
-    1135,
-    1374,
-    1608,
-    1849,
-    2053
-  ],
-  "table_bbox": [
-    114,
-    426,
-    2053,
-    1324
-  ],
-  "relative": {
-    "horizontal_lines": [
-      0.0,
-      0.09688195991091314,
-      0.32293986636971045,
-      0.4365256124721604,
-      0.6057906458797327,
-      0.7149220489977728,
-      0.8830734966592427,
-      1.0
-    ],
-    "vertical_lines": [
-      0.0,
-      0.04538421866941723,
-      0.11242908715832904,
-      0.17483238782877772,
-      0.2527075812274368,
-      0.2991232594120681,
-      0.4125838060856111,
-      0.5265600825167612,
-      0.6498194945848376,
-      0.7705002578648789,
-      0.8947911294481692,
-      1.0
-    ],
-    "table_bbox": [
-      0.04873877725523728,
-      0.2577132486388385,
-      0.8777255237280889,
-      0.8009679370840895
-    ]
-  },
-  "stats": {
-    "row_count": 7,
-    "col_count": 11
-  }
-}