🎨 Add OCR-related operations to the picture menu https://github.com/siyuan-note/siyuan/issues/7203

This commit is contained in:
Liang Ding 2023-04-14 20:31:41 +08:00
parent dfe0f4c40a
commit acffdeb803
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 138 additions and 51 deletions

View file

@ -6,7 +6,7 @@
"id": "20200924100744-br924ar",
"title": "Assets",
"type": "doc",
"updated": "20230414202515"
"updated": "20230414203046"
},
"Children": [
{
@ -981,11 +981,26 @@
]
},
{
"ID": "20230414202455-itauu1x",
"ID": "20230414202934-1h96or8",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20230414202934-1h96or8",
"updated": "20230414202934"
},
"Children": [
{
"Type": "NodeText",
"Data": "Manually adjust OCR results"
}
]
},
{
"ID": "20230414203027-6py4l9z",
"Type": "NodeParagraph",
"Properties": {
"id": "20230414202455-itauu1x",
"updated": "20230414202455"
"id": "20230414203027-6py4l9z",
"updated": "20230414203027"
},
"Children": [
{
@ -999,65 +1014,65 @@
},
{
"Type": "NodeText",
"Data": ", if you need to re-OCR or adjust the extraction results:"
"Data": ", and the OCR results can be adjusted in the following ways:"
}
]
},
{
"ID": "20230414202455-9vob8o4",
"ID": "20230414203027-ga8zni5",
"Type": "NodeList",
"ListData": {},
"Properties": {
"id": "20230414202455-9vob8o4",
"updated": "20230414202515"
"id": "20230414203027-ga8zni5",
"updated": "20230414203046"
},
"Children": [
{
"ID": "20230414202455-kcjywr7",
"ID": "20230414203027-n8cc4ra",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230414202455-kcjywr7",
"updated": "20230414202515"
"id": "20230414203027-n8cc4ra",
"updated": "20230414203036"
},
"Children": [
{
"ID": "20230414202455-bggjnen",
"ID": "20230414203027-epcrauz",
"Type": "NodeParagraph",
"Properties": {
"id": "20230414202455-bggjnen",
"updated": "20230414202515"
"id": "20230414203027-epcrauz",
"updated": "20230414203036"
},
"Children": [
{
"Type": "NodeText",
"Data": "You can delete or modify this file when SiYuan is closed, and manually rebuild the index after starting SiYuan"
"Data": "After exiting SiYuan, modify the file on the file system (please pay attention to the correctness of the JSON format)"
}
]
}
]
},
{
"ID": "20230414202455-67sj3rv",
"ID": "20230414203027-zdq3yuf",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230414202455-67sj3rv",
"updated": "20230414202502"
"id": "20230414203027-zdq3yuf",
"updated": "20230414203046"
},
"Children": [
{
"ID": "20230414202455-m58zpdi",
"ID": "20230414203027-ouvsa2g",
"Type": "NodeParagraph",
"Properties": {
"id": "20230414202455-m58zpdi",
"updated": "20230414202502"
"id": "20230414203027-ouvsa2g",
"updated": "20230414203046"
},
"Children": [
{
@ -1078,6 +1093,20 @@
]
}
]
},
{
"ID": "20230414203027-chylp3d",
"Type": "NodeParagraph",
"Properties": {
"id": "20230414203027-chylp3d",
"updated": "20230414203027"
},
"Children": [
{
"Type": "NodeText",
"Data": "After the adjustment, you need to manually rebuild the index."
}
]
}
]
}

View file

@ -6,7 +6,7 @@
"id": "20200915214115-42b8zma",
"title": "资源文件",
"type": "doc",
"updated": "20230414202309"
"updated": "20230414203014"
},
"Children": [
{
@ -1007,12 +1007,27 @@
}
]
},
{
"ID": "20230414202710-a51lo76",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20230414202710-a51lo76",
"updated": "20230414202726"
},
"Children": [
{
"Type": "NodeText",
"Data": "手动调整 OCR 结果"
}
]
},
{
"ID": "20230117003118-da7wjvx",
"Type": "NodeParagraph",
"Properties": {
"id": "20230117003118-da7wjvx",
"updated": "20230414202215"
"updated": "20230414202825"
},
"Children": [
{
@ -1026,7 +1041,7 @@
},
{
"Type": "NodeText",
"Data": " 中,如果需要重新 OCR 或者调整提取结果:"
"Data": " 中,可通过下面的方式调整 OCR 结果:"
}
]
},
@ -1036,7 +1051,7 @@
"ListData": {},
"Properties": {
"id": "20230414202215-wv6v759",
"updated": "20230414202309"
"updated": "20230414203014"
},
"Children": [
{
@ -1048,7 +1063,7 @@
},
"Properties": {
"id": "20230414202216-6ib46sp",
"updated": "20230414202216"
"updated": "20230414203014"
},
"Children": [
{
@ -1056,12 +1071,12 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20230414202216-7lh8lft",
"updated": "20230414202221"
"updated": "20230414203014"
},
"Children": [
{
"Type": "NodeText",
"Data": "可以在关闭思源的情况下删除或修改该文件,启动思源以后手动重建索引"
"Data": "退出思源后下在文件系统上修改该文件(请注意 JSON 格式的正确性)"
}
]
}
@ -1076,7 +1091,7 @@
},
"Properties": {
"id": "20230414202222-wbxjz0f",
"updated": "20230414202309"
"updated": "20230414202849"
},
"Children": [
{
@ -1084,7 +1099,7 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20230414202222-oelakfd",
"updated": "20230414202309"
"updated": "20230414202849"
},
"Children": [
{
@ -1105,6 +1120,20 @@
]
}
]
},
{
"ID": "20230414202749-qbcnypq",
"Type": "NodeParagraph",
"Properties": {
"id": "20230414202749-qbcnypq",
"updated": "20230414202900"
},
"Children": [
{
"Type": "NodeText",
"Data": "调整完以后需要手动重建索引。"
}
]
}
]
}

View file

@ -5,7 +5,7 @@
"Properties": {
"id": "20211226123038-4umgpxy",
"title": "資料文件",
"updated": "20230414202408"
"updated": "20230414203110"
},
"Children": [
{
@ -986,11 +986,26 @@
]
},
{
"ID": "20230414202351-u1zvtxx",
"ID": "20230414203058-foirrwk",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20230414203058-foirrwk",
"updated": "20230414203058"
},
"Children": [
{
"Type": "NodeText",
"Data": "手動調整 OCR 結果"
}
]
},
{
"ID": "20230414203058-td34ii9",
"Type": "NodeParagraph",
"Properties": {
"id": "20230414202351-u1zvtxx",
"updated": "20230414202351"
"id": "20230414203058-td34ii9",
"updated": "20230414203058"
},
"Children": [
{
@ -1004,65 +1019,65 @@
},
{
"Type": "NodeText",
"Data": " 中,如果需要重新 OCR 或者調整提取結果:"
"Data": " 中,可通過下面的方式調整 OCR 結果:"
}
]
},
{
"ID": "20230414202351-ri59se5",
"ID": "20230414203058-twp0v1x",
"Type": "NodeList",
"ListData": {},
"Properties": {
"id": "20230414202351-ri59se5",
"updated": "20230414202408"
"id": "20230414203058-twp0v1x",
"updated": "20230414203110"
},
"Children": [
{
"ID": "20230414202351-q7nz7nx",
"ID": "20230414203058-bof05ob",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230414202351-q7nz7nx",
"updated": "20230414202351"
"id": "20230414203058-bof05ob",
"updated": "20230414203058"
},
"Children": [
{
"ID": "20230414202351-das1wrr",
"ID": "20230414203058-4t9mxdd",
"Type": "NodeParagraph",
"Properties": {
"id": "20230414202351-das1wrr",
"updated": "20230414202351"
"id": "20230414203058-4t9mxdd",
"updated": "20230414203058"
},
"Children": [
{
"Type": "NodeText",
"Data": "可以在關閉思源的情況下刪除或修改該文件,啟動思源以後手動重建索引"
"Data": "退出思源後下在文件系統上修改該文件(請注意 JSON 格式的正確性)"
}
]
}
]
},
{
"ID": "20230414202351-tpwayz5",
"ID": "20230414203058-hwxlrkd",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230414202351-tpwayz5",
"updated": "20230414202408"
"id": "20230414203058-hwxlrkd",
"updated": "20230414203110"
},
"Children": [
{
"ID": "20230414202351-mxla3bm",
"ID": "20230414203058-dn0g8im",
"Type": "NodeParagraph",
"Properties": {
"id": "20230414202351-mxla3bm",
"updated": "20230414202408"
"id": "20230414203058-dn0g8im",
"updated": "20230414203110"
},
"Children": [
{
@ -1083,6 +1098,20 @@
]
}
]
},
{
"ID": "20230414203058-pvk5pnz",
"Type": "NodeParagraph",
"Properties": {
"id": "20230414203058-pvk5pnz",
"updated": "20230414203058"
},
"Children": [
{
"Type": "NodeText",
"Data": "調整完以後需要手動重建索引。"
}
]
}
]
}