2188.html 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706
  1. <!DOCTYPE html>
  2. <html lang="en" data-default-color-scheme=auto>
  3. <head><!-- hexo injector head_begin start -->
  4. <script async src="https://analytics.umami.is/script.js" data-website-id="e59ec28a-c9a7-4104-9e62-a9f7eb3fac0b"></script>
  5. <!-- hexo injector head_begin end -->
  6. <meta charset="UTF-8">
  7. <link rel="apple-touch-icon" sizes="76x76" href="https://img.limour.top/2023/08/29/64ee07361815a.webp">
  8. <link rel="icon" href="https://img.limour.top/2023/08/29/64ee07361815a.webp">
  9. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, shrink-to-fit=no">
  10. <meta http-equiv="x-ua-compatible" content="ie=edge">
  11. <meta name="theme-color" content="#2f4154">
  12. <meta name="author" content="Limour">
  13. <meta name="keywords" content="">
  14. <meta name="description" content="PP-Structure是PaddleOCR团队自研的智能文档分析系统,旨在帮助开发者更好的完成版面分析、表格识别等文档理解相关任务。 PP-Structurev2的主要特性如下: 支持对图片&#x2F;pdf形式的文档进行版面分析,可以划分文字、标题、表格、图片、公式等区域; 支持通用的中英文表格检测任务; 支持表格区域进行结构化识别,最终结果输出Excel文件; 支持基于多模态的关键信息抽取">
  15. <meta property="og:type" content="article">
  16. <meta property="og:title" content="基于PaddleOCR的PDF转WORD">
  17. <meta property="og:url" content="https://b.limour.top/2188.html">
  18. <meta property="og:site_name" content="Limour&#39;s Blog">
  19. <meta property="og:description" content="PP-Structure是PaddleOCR团队自研的智能文档分析系统,旨在帮助开发者更好的完成版面分析、表格识别等文档理解相关任务。 PP-Structurev2的主要特性如下: 支持对图片&#x2F;pdf形式的文档进行版面分析,可以划分文字、标题、表格、图片、公式等区域; 支持通用的中英文表格检测任务; 支持表格区域进行结构化识别,最终结果输出Excel文件; 支持基于多模态的关键信息抽取">
  20. <meta property="og:locale" content="en_US">
  21. <meta property="og:image" content="https://img-cdn.limour.top/blog_wp/2021/12/image-1.png">
  22. <meta property="article:published_time" content="2023-04-11T05:57:30.000Z">
  23. <meta property="article:modified_time" content="2023-09-01T13:32:01.297Z">
  24. <meta property="article:author" content="Limour">
  25. <meta name="twitter:card" content="summary_large_image">
  26. <meta name="twitter:image" content="https://img-cdn.limour.top/blog_wp/2021/12/image-1.png">
  27. <title>基于PaddleOCR的PDF转WORD - Limour&#39;s Blog</title>
  28. <link rel="stylesheet" href="https://jscdn.limour.top/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css" />
  29. <link rel="stylesheet" href="https://jscdn.limour.top/npm/github-markdown-css@4.0.0/github-markdown.min.css" />
  30. <link rel="stylesheet" href="https://jscdn.limour.top/npm/hint.css@2.7.0/hint.min.css" />
  31. <link rel="stylesheet" href="https://lib.baomitu.com/fancybox/3.5.7/jquery.fancybox.min.css" />
  32. <!-- 主题依赖的图标库,不要自行修改 -->
  33. <!-- Do not modify the link that theme dependent icons -->
  34. <link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_hj8rtnfg7um.css">
  35. <link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_lbnruvf0jn.css">
  36. <link rel="stylesheet" href="/css/main.css" />
  37. <link id="highlight-css" rel="stylesheet" href="/css/highlight.css" />
  38. <link id="highlight-css-dark" rel="stylesheet" href="/css/highlight-dark.css" />
  39. <link rel="stylesheet" href="/theme-inject/custom.css">
  40. <script id="fluid-configs">
  41. var Fluid = window.Fluid || {};
  42. Fluid.ctx = Object.assign({}, Fluid.ctx)
  43. var CONFIG = {"hostname":"b.limour.top","root":"/","version":"1.9.5-a","typing":{"enable":true,"typeSpeed":70,"cursorChar":"_","loop":false,"scope":[]},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"left","visible":"hover","icon":"§"},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"code_language":{"enable":true,"default":"TEXT"},"copy_btn":true,"image_caption":{"enable":true},"image_zoom":{"enable":true,"img_url_replace":["",""]},"toc":{"enable":true,"placement":"right","headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":true,"loading_img":"https://jscdn.limour.top/gh/Limour-dev/Sakurairo_Vision/load_svg/inload.svg","onlypost":false,"offset_factor":2},"web_analytics":{"enable":false,"follow_dnt":true,"baidu":null,"google":{"measurement_id":null},"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":null,"app_key":null,"server_url":null,"path":"window.location.pathname","ignore_local":false}},"search_path":"/local-search.xml","include_content_in_search":true};
  44. if (CONFIG.web_analytics.follow_dnt) {
  45. var dntVal = navigator.doNotTrack || window.doNotTrack || navigator.msDoNotTrack;
  46. Fluid.ctx.dnt = dntVal && (dntVal.startsWith('1') || dntVal.startsWith('yes') || dntVal.startsWith('on'));
  47. }
  48. </script>
  49. <script src="/js/utils.js" ></script>
  50. <script src="/js/color-schema.js" ></script>
  51. <meta name="generator" content="Hexo 6.3.0"></head>
  52. <body>
  53. <header>
  54. <div class="header-inner" style="height: 70vh;">
  55. <nav id="navbar" class="navbar fixed-top navbar-expand-lg navbar-dark scrolling-navbar">
  56. <div class="container">
  57. <a class="navbar-brand" href="/">
  58. <strong>Limour&#39;s Blog</strong>
  59. </a>
  60. <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
  61. data-target="#navbarSupportedContent"
  62. aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
  63. <div class="animated-icon"><span></span><span></span><span></span></div>
  64. </button>
  65. <!-- Collapsible content -->
  66. <div class="collapse navbar-collapse" id="navbarSupportedContent">
  67. <ul class="navbar-nav ml-auto text-center">
  68. <li class="nav-item">
  69. <a class="nav-link" href="/">
  70. <i class="iconfont icon-home-fill"></i>
  71. <span>Home</span>
  72. </a>
  73. </li>
  74. <li class="nav-item">
  75. <a class="nav-link" href="/archives/">
  76. <i class="iconfont icon-archive-fill"></i>
  77. <span>Archives</span>
  78. </a>
  79. </li>
  80. <li class="nav-item" id="search-btn">
  81. <a class="nav-link" target="_self" href="javascript:;" data-toggle="modal" data-target="#modalSearch" aria-label="Search">
  82. <i class="iconfont icon-search"></i>
  83. </a>
  84. </li>
  85. <li class="nav-item" id="color-toggle-btn">
  86. <a class="nav-link" target="_self" href="javascript:;" aria-label="Color Toggle">
  87. <i class="iconfont icon-dark" id="color-toggle-icon"></i>
  88. </a>
  89. </li>
  90. </ul>
  91. </div>
  92. </div>
  93. </nav>
  94. <div id="banner" class="banner" parallax=true
  95. style="background: url('https://img.limour.top/2023/08/29/64ee08e108638.webp') no-repeat center center; background-size: cover;">
  96. <div class="full-bg-img">
  97. <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
  98. <div class="banner-text text-center fade-in-up">
  99. <div class="h2">
  100. <span id="subtitle" data-typed-text="基于PaddleOCR的PDF转WORD"></span>
  101. </div>
  102. <div class="mt-3">
  103. <span class="post-meta">
  104. <i class="iconfont icon-date-fill" aria-hidden="true"></i>
  105. <time datetime="2023-04-11 13:57" pubdate>
  106. April 11, 2023 pm
  107. </time>
  108. </span>
  109. </div>
  110. <div class="mt-1">
  111. <span class="post-meta mr-2">
  112. <i class="iconfont icon-chart"></i>
  113. 2k words
  114. </span>
  115. <span class="post-meta mr-2">
  116. <i class="iconfont icon-clock-fill"></i>
  117. 17 mins
  118. </span>
  119. </div>
  120. </div>
  121. </div>
  122. </div>
  123. </div>
  124. </div>
  125. </header>
  126. <main>
  127. <div class="container-fluid nopadding-x">
  128. <div class="row nomargin-x">
  129. <div class="side-col d-none d-lg-block col-lg-2">
  130. </div>
  131. <div class="col-lg-8 nopadding-x-md">
  132. <div class="container nopadding-x-md" id="board-ctn">
  133. <div id="board">
  134. <article class="post-content mx-auto">
  135. <h1 id="seo-header">基于PaddleOCR的PDF转WORD</h1>
  136. <div class="markdown-body">
  137. <p><a target="_blank" rel="noopener" href="https://github.com/PaddlePaddle/PaddleOCR">PP-Structure</a>是PaddleOCR团队自研的智能文档分析系统,旨在帮助开发者更好的完成版面分析、表格识别等文档理解相关任务。</p>
  138. <p>PP-Structurev2的主要特性如下:</p>
  139. <ul>
  140. <li>支持对图片&#x2F;pdf形式的文档进行版面分析,可以划分<strong>文字、标题、表格、图片、公式等</strong>区域;</li>
  141. <li>支持通用的中英文<strong>表格检测</strong>任务;</li>
  142. <li>支持表格区域进行结构化识别,最终结果输出<strong>Excel文件</strong>;</li>
  143. <li>支持基于多模态的关键信息抽取(Key Information Extraction,KIE)任务-<strong>语义实体识别</strong>(Semantic Entity Recognition,SER)和<strong>关系抽取</strong>(Relation Extraction,RE);</li>
  144. <li>支持<strong>版面复原</strong>,即恢复为与原始图像布局一致的word或者pdf格式的文件;</li>
  145. <li>支持自定义训练及python whl包调用等多种推理部署方式,简单易用;</li>
  146. <li>与半自动数据标注工具PPOCRLabel打通,支持版面分析、表格识别、SER三种任务的标注。</li>
  147. </ul>
  148. <h2 id="安装下载工具"><a href="#安装下载工具" class="headerlink" title="安装下载工具"></a>安装下载工具</h2><ul>
  149. <li><a target="_blank" rel="noopener" href="https://occdn.limour.top/2561.html">文件加速代下载服务</a>,<a target="_blank" rel="noopener" href="https://ghproxy.com/">GitHub Proxy</a></li>
  150. <li>安装<a target="_blank" rel="noopener" href="https://github.com/aria2/aria2/releases">aria2</a>,并添加到环境变量Path,</li>
  151. <li>安装 Aria2 Explorer <a target="_blank" rel="noopener" href="https://chrome.google.com/webstore/detail/aria2-explorer/mpkodccbngfoacfalldjimigbofkhgjn">chrome浏览器拓展</a></li>
  152. <li>可以 aria2c –enable-rpc 配合 Aria2 Explorer 进行下载</li>
  153. </ul>
  154. <h2 id="安装conda"><a href="#安装conda" class="headerlink" title="安装conda"></a>安装conda</h2><ul>
  155. <li>下载miniconda:<a target="_blank" rel="noopener" href="https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/">清华镜像</a></li>
  156. <li>conda config –set show_channel_urls yes</li>
  157. <li>notepad.exe $env:HOMEPATH.condarc 确保是 <a target="_blank" rel="noopener" href="https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/">清华镜像</a></li>
  158. </ul>
  159. <h2 id="安装cuda"><a href="#安装cuda" class="headerlink" title="安装cuda"></a>安装cuda</h2><ul>
  160. <li>下载或更新最新的 <a target="_blank" rel="noopener" href="https://www.nvidia.cn/geforce/geforce-experience/download/">GEFORCE EXPERIENCE</a></li>
  161. <li>桌面右键打开英伟达控制面板,点击帮助-&gt;系统信息-&gt;组件-&gt;NVCUDA.DLL 获取cuda版本</li>
  162. <li>下面的步骤可能不需要,因为conda可以自动安装,只是记录一下</li>
  163. <li>查看<a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/94220564?utm_source=wechat_session&ivk_sa=1024320u">cuda</a>版本:nvcc –version</li>
  164. <li><a target="_blank" rel="noopener" href="https://developer.nvidia.com/cuda-downloads?target_os=Windows&target_arch=x86_64&target_version=11&target_type=exe_local">CUDA Toolkit</a>,cuda安装时取消除cuda外的其他选项,并检查环境变量Path里是否有相应的路径</li>
  165. <li><a target="_blank" rel="noopener" href="https://developer.nvidia.com/rdp/cudnn-download">NVIDIA Developer Program</a>,下载cuDNN,解压cuDNN压缩包,可以看到bin、include、lib目录,将其拖拽到cuda目录下的相应版本的根目录,覆盖相应的bin、include、lib目录</li>
  166. <li>cd $env:CUDA_PATH\extras\demo_suite 执行 .\bandwidthTest.exe</li>
  167. </ul>
  168. <p><img src="https://img-cdn.limour.top/blog_wp/2021/12/image-1.png" srcset="https://jscdn.limour.top/gh/Limour-dev/Sakurairo_Vision/load_svg/inload.svg" lazyload></p>
  169. <h2 id="安装-PaddleOCR"><a href="#安装-PaddleOCR" class="headerlink" title="安装**PaddleOCR**"></a>安装**<a target="_blank" rel="noopener" href="https://github.com/PaddlePaddle/PaddleOCR">PaddleOCR</a>**</h2><ul>
  170. <li>conda create -n PP -c conda-forge python&#x3D;3.8</li>
  171. <li>conda activate PP</li>
  172. <li>conda info –env</li>
  173. <li>(二选一 GPU)conda install paddlepaddle-gpu&#x3D;&#x3D;2.4.2 cudatoolkit&#x3D;11.6 -c <a target="_blank" rel="noopener" href="https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/Paddle/">https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/Paddle/</a> -c conda-forge</li>
  174. <li>(二选一 CPU)python -m pip install paddlepaddle -i <a target="_blank" rel="noopener" href="https://mirror.baidu.com/pypi/simple">https://mirror.baidu.com/pypi/simple</a></li>
  175. <li>使用 <code>python</code> 进入 python 解释器,输入<code>import paddle</code> ,再输入<code>paddle.utils.run_check()</code></li>
  176. <li>python -m pip install “paddleocr&gt;&#x3D;2.6” -i <a target="_blank" rel="noopener" href="https://mirror.baidu.com/pypi/simple">https://mirror.baidu.com/pypi/simple</a></li>
  177. <li>Invoke-WebRequest -Uri “<a target="_blank" rel="noopener" href="https://ghproxy.com/https://raw.githubusercontent.com/PaddlePaddle/PaddleOCR/release/2.6/ppstructure/recovery/requirements.txt">https://ghproxy.com/https://raw.githubusercontent.com/PaddlePaddle/PaddleOCR/release/2.6/ppstructure/recovery/requirements.txt</a>“ -OutFile “requirements.txt”</li>
  178. <li>python -m pip install -r requirements.txt -i <a target="_blank" rel="noopener" href="https://mirror.baidu.com/pypi/simple">https://mirror.baidu.com/pypi/simple</a></li>
  179. <li>python -m pip install “PyMuPDF&#x3D;&#x3D;1.18.7” -i <a target="_blank" rel="noopener" href="https://mirror.baidu.com/pypi/simple">https://mirror.baidu.com/pypi/simple</a> (解决<a target="_blank" rel="noopener" href="https://github.com/pymupdf/PyMuPDF/issues/877">Issue#877</a>)</li>
  180. </ul>
  181. <h2 id="PDF转WORD"><a href="#PDF转WORD" class="headerlink" title="PDF转WORD"></a>PDF转WORD</h2><ul>
  182. <li>准备一份没有嵌字,纯扫描件的UnrealText.pdf</li>
  183. <li>paddleocr –image_dir&#x3D;UnrealText.pdf –type&#x3D;structure –recovery&#x3D;true</li>
  184. <li>效果比直接用Acrobat好一点</li>
  185. <li>如果是简短的一段文字,还是直接用<a target="_blank" rel="noopener" href="https://github.com/hiroi-sora/Umi-OCR/releases">Umi-OCR</a>识别图片方便一点(基于PaddleOCR)</li>
  186. <li>等Microsoft 365 Copilot正式出来后,对paddleocr重建的docx进行智能纠错和格式美化应该效果会好一点。</li>
  187. </ul>
  188. </div>
  189. <hr/>
  190. <div>
  191. <div class="post-metas my-3">
  192. <div class="post-meta mr-3 d-flex align-items-center">
  193. <i class="iconfont icon-category"></i>
  194. <span class="category-chains">
  195. <span class="category-chain">
  196. <a href="/categories/uncategorized/" class="category-chain-item">uncategorized</a>
  197. </span>
  198. </span>
  199. </div>
  200. </div>
  201. <div class="license-box my-3">
  202. <div class="license-title">
  203. <div>基于PaddleOCR的PDF转WORD</div>
  204. <div>https://b.limour.top/2188.html</div>
  205. </div>
  206. <div class="license-meta">
  207. <div class="license-meta-item">
  208. <div>Author</div>
  209. <div>Limour</div>
  210. </div>
  211. <div class="license-meta-item license-meta-date">
  212. <div>Posted on</div>
  213. <div>April 11, 2023</div>
  214. </div>
  215. <div class="license-meta-item">
  216. <div>Licensed under</div>
  217. <div>
  218. <a class="print-no-link" target="_blank" href="https://creativecommons.org/licenses/by-nc-sa/4.0/">
  219. <span class="hint--top hint--rounded" aria-label="BY - Attribution">
  220. <i class="iconfont icon-by"></i>
  221. </span>
  222. </a>
  223. <a class="print-no-link" target="_blank" href="https://creativecommons.org/licenses/by-nc-sa/4.0/">
  224. <span class="hint--top hint--rounded" aria-label="NC - Non-commercial">
  225. <i class="iconfont icon-nc"></i>
  226. </span>
  227. </a>
  228. <a class="print-no-link" target="_blank" href="https://creativecommons.org/licenses/by-nc-sa/4.0/">
  229. <span class="hint--top hint--rounded" aria-label="SA - Share-alike">
  230. <i class="iconfont icon-sa"></i>
  231. </span>
  232. </a>
  233. </div>
  234. </div>
  235. </div>
  236. <div class="license-icon iconfont"></div>
  237. </div>
  238. <div class="post-prevnext my-3">
  239. <article class="post-prev col-6">
  240. <a href="/2189.html" title="群星控制台召唤灰风老婆">
  241. <i class="iconfont icon-arrowleft"></i>
  242. <span class="hidden-mobile">群星控制台召唤灰风老婆</span>
  243. <span class="visible-mobile">Previous</span>
  244. </a>
  245. </article>
  246. <article class="post-next col-6">
  247. <a href="/2183.html" title="【杂感】生物质机器人怪谈">
  248. <span class="hidden-mobile">【杂感】生物质机器人怪谈</span>
  249. <span class="visible-mobile">Next</span>
  250. <i class="iconfont icon-arrowright"></i>
  251. </a>
  252. </article>
  253. </div>
  254. </div>
  255. <article id="comments" lazyload>
  256. <div id="waline"></div>
  257. <script type="text/javascript">
  258. Fluid.utils.loadComments('#waline', function() {
  259. Fluid.utils.createCssLink('https://cdn.staticfile.org/waline/2.15.5/waline.min.css')
  260. Fluid.utils.createScript('https://cdn.staticfile.org/waline/2.15.5/waline.min.js', function() {
  261. var options = Object.assign(
  262. {"serverURL":"https://comments.limour.top","path":"window.location.pathname","meta":["nick","mail","link"],"requiredMeta":["nick"],"lang":"zh-CN","emoji":["https://jscdn.limour.top/gh/walinejs/emojis/weibo"],"dark":"html[data-user-color-scheme=\"dark\"]","wordLimit":0,"pageSize":10},
  263. {
  264. el: '#waline',
  265. path: window.location.pathname
  266. }
  267. )
  268. Waline.init(options);
  269. Fluid.utils.waitElementVisible('#waline .vcontent', () => {
  270. var imgSelector = '#waline .vcontent img:not(.vemoji)';
  271. Fluid.plugins.imageCaption(imgSelector);
  272. Fluid.plugins.fancyBox(imgSelector);
  273. })
  274. });
  275. });
  276. </script>
  277. <noscript>Please enable JavaScript to view the comments</noscript>
  278. </article>
  279. </article>
  280. </div>
  281. </div>
  282. </div>
  283. <div class="side-col d-none d-lg-block col-lg-2">
  284. <aside class="sidebar" style="margin-left: -1rem">
  285. <div id="toc">
  286. <p class="toc-header">
  287. <i class="iconfont icon-list"></i>
  288. <span>Table of Contents</span>
  289. </p>
  290. <div class="toc-body" id="toc-body"></div>
  291. </div>
  292. </aside>
  293. </div>
  294. </div>
  295. </div>
  296. <a id="scroll-top-button" aria-label="TOP" href="#" role="button">
  297. <i class="iconfont icon-arrowup" aria-hidden="true"></i>
  298. </a>
  299. <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
  300. aria-hidden="true">
  301. <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
  302. <div class="modal-content">
  303. <div class="modal-header text-center">
  304. <h4 class="modal-title w-100 font-weight-bold">Search</h4>
  305. <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
  306. <span aria-hidden="true">&times;</span>
  307. </button>
  308. </div>
  309. <div class="modal-body mx-3">
  310. <div class="md-form mb-5">
  311. <input type="text" id="local-search-input" class="form-control validate">
  312. <label data-error="x" data-success="v" for="local-search-input">Keyword</label>
  313. </div>
  314. <div class="list-group" id="local-search-result"></div>
  315. </div>
  316. </div>
  317. </div>
  318. </div>
  319. </main>
  320. <footer>
  321. <div class="footer-inner">
  322. <div class="footer-content">
  323. <a target="_blank" rel="nofollow noopener" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=43130202000203"><img src="https://img.limour.top/2023/08/27/64eadeb81d6a0.webp" srcset="https://jscdn.limour.top/gh/Limour-dev/Sakurairo_Vision/load_svg/inload.svg" lazyload>湘公网安备 43130202000203号 </a> <a target="_blank" rel="nofollow noopener" href="https://beian.miit.gov.cn/">湘ICP备20008299号 </a> <a target="_blank" rel="nofollow noopener" href="https://icp.gov.moe/?keyword=20210128">萌ICP备20210128号</a> <br> <a href="https://www.foreverblog.cn/" target="_blank"> <img src="https://img.foreverblog.cn/logo_en_default.png" srcset="https://jscdn.limour.top/gh/Limour-dev/Sakurairo_Vision/load_svg/inload.svg" lazyload alt="" style="width:auto;height:24px"> </a> <br> <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a> <i class="iconfont icon-love"></i> <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener"><span>Fluid</span></a> <i class="iconfont icon-love"></i> <a href="https://github.com/limour-blog/archives-b" target="_blank" rel="nofollow noopener"><span>SRC</span></a>
  324. </div>
  325. </div>
  326. </footer>
  327. <!-- Scripts -->
  328. <script src="https://jscdn.limour.top/npm/nprogress@0.2.0/nprogress.min.js" ></script>
  329. <link rel="stylesheet" href="https://jscdn.limour.top/npm/nprogress@0.2.0/nprogress.min.css" />
  330. <script>
  331. NProgress.configure({"showSpinner":false,"trickleSpeed":100})
  332. NProgress.start()
  333. window.addEventListener('load', function() {
  334. NProgress.done();
  335. })
  336. </script>
  337. <script src="https://jscdn.limour.top/npm/jquery@3.6.4/dist/jquery.min.js" ></script>
  338. <script src="https://jscdn.limour.top/npm/bootstrap@4.6.1/dist/js/bootstrap.min.js" ></script>
  339. <script src="/js/events.js" ></script>
  340. <script src="/js/plugins.js" ></script>
  341. <script src="https://lib.baomitu.com/typed.js/2.0.12/typed.min.js" ></script>
  342. <script>
  343. (function (window, document) {
  344. var typing = Fluid.plugins.typing;
  345. var subtitle = document.getElementById('subtitle');
  346. if (!subtitle || !typing) {
  347. return;
  348. }
  349. var text = subtitle.getAttribute('data-typed-text');
  350. typing(text);
  351. })(window, document);
  352. </script>
  353. <script src="/js/img-lazyload.js" ></script>
  354. <script>
  355. Fluid.utils.createScript('https://jscdn.limour.top/npm/tocbot@4.20.1/dist/tocbot.min.js', function() {
  356. var toc = jQuery('#toc');
  357. if (toc.length === 0 || !window.tocbot) { return; }
  358. var boardCtn = jQuery('#board-ctn');
  359. var boardTop = boardCtn.offset().top;
  360. window.tocbot.init(Object.assign({
  361. tocSelector : '#toc-body',
  362. contentSelector : '.markdown-body',
  363. linkClass : 'tocbot-link',
  364. activeLinkClass : 'tocbot-active-link',
  365. listClass : 'tocbot-list',
  366. isCollapsedClass: 'tocbot-is-collapsed',
  367. collapsibleClass: 'tocbot-is-collapsible',
  368. scrollSmooth : true,
  369. includeTitleTags: true,
  370. headingsOffset : -boardTop,
  371. }, CONFIG.toc));
  372. if (toc.find('.toc-list-item').length > 0) {
  373. toc.css('visibility', 'visible');
  374. }
  375. Fluid.events.registerRefreshCallback(function() {
  376. if ('tocbot' in window) {
  377. tocbot.refresh();
  378. var toc = jQuery('#toc');
  379. if (toc.length === 0 || !tocbot) {
  380. return;
  381. }
  382. if (toc.find('.toc-list-item').length > 0) {
  383. toc.css('visibility', 'visible');
  384. }
  385. }
  386. });
  387. });
  388. </script>
  389. <script src=https://lib.baomitu.com/clipboard.js/2.0.11/clipboard.min.js></script>
  390. <script>Fluid.plugins.codeWidget();</script>
  391. <script>
  392. Fluid.utils.createScript('https://jscdn.limour.top/npm/anchor-js@4.3.1/anchor.min.js', function() {
  393. window.anchors.options = {
  394. placement: CONFIG.anchorjs.placement,
  395. visible : CONFIG.anchorjs.visible
  396. };
  397. if (CONFIG.anchorjs.icon) {
  398. window.anchors.options.icon = CONFIG.anchorjs.icon;
  399. }
  400. var el = (CONFIG.anchorjs.element || 'h1,h2,h3,h4,h5,h6').split(',');
  401. var res = [];
  402. for (var item of el) {
  403. res.push('.markdown-body > ' + item.trim());
  404. }
  405. if (CONFIG.anchorjs.placement === 'left') {
  406. window.anchors.options.class = 'anchorjs-link-left';
  407. }
  408. window.anchors.add(res.join(', '));
  409. Fluid.events.registerRefreshCallback(function() {
  410. if ('anchors' in window) {
  411. anchors.removeAll();
  412. var el = (CONFIG.anchorjs.element || 'h1,h2,h3,h4,h5,h6').split(',');
  413. var res = [];
  414. for (var item of el) {
  415. res.push('.markdown-body > ' + item.trim());
  416. }
  417. if (CONFIG.anchorjs.placement === 'left') {
  418. anchors.options.class = 'anchorjs-link-left';
  419. }
  420. anchors.add(res.join(', '));
  421. }
  422. });
  423. });
  424. </script>
  425. <script>
  426. Fluid.utils.createScript('https://lib.baomitu.com/fancybox/3.5.7/jquery.fancybox.min.js', function() {
  427. Fluid.plugins.fancyBox();
  428. });
  429. </script>
  430. <script>Fluid.plugins.imageCaption();</script>
  431. <script src="/js/local-search.js" ></script>
  432. <!-- 主题的启动项,将它保持在最底部 -->
  433. <!-- the boot of the theme, keep it at the bottom -->
  434. <script src="/js/boot.js" ></script>
  435. <noscript>
  436. <div class="noscript-warning">Blog works best with JavaScript enabled</div>
  437. </noscript>
  438. <!-- hexo injector body_end start -->
  439. <script defer src="/theme-inject/timeliness.js"></script>
  440. <!-- hexo injector body_end end --></body>
  441. </html>