From a8463c551f2bd3663f4da95640e7ed781cf2e583 Mon Sep 17 00:00:00 2001
From: He MingYang <hemingyang@uniontech.com>
Date: Wed, 30 Jun 2021 17:13:19 +0800
Subject: [PATCH] =?UTF-8?q?fix(ocr=E6=96=87=E5=AD=97=E8=AF=86=E5=88=AB):?=
 =?UTF-8?q?=20docker=E6=A0=8F=E4=B8=8A=E7=9A=84=E5=BA=94=E7=94=A8=E5=90=8D?=
 =?UTF-8?q?=E7=A7=B0=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

no

Log: bug: https://pms.uniontech.com/zentao/bug-view-85707.html
Change-Id: Id366ffea05f0f0b57f6add8b8698607270106c73
---
 assets/deepin-ocr.svg | 119 ++++++++++++++++++++++++++++++++++++++++++
 deepin-ocr.desktop    |  24 +++++++++
 deepin-ocr.pro        |   9 +++-
 3 files changed, 151 insertions(+), 1 deletion(-)
 create mode 100644 assets/deepin-ocr.svg
 create mode 100644 deepin-ocr.desktop

diff --git a/assets/deepin-ocr.svg b/assets/deepin-ocr.svg
new file mode 100644
index 0000000..adc6c3b
--- /dev/null
+++ b/assets/deepin-ocr.svg
@@ -0,0 +1,119 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="32px" height="32px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <title>识图</title>
+    <defs>
+        <filter x="-12.5%" y="-12.5%" width="125.0%" height="125.0%" filterUnits="objectBoundingBox" id="filter-1">
+            <feOffset dx="0" dy="1" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
+            <feGaussianBlur stdDeviation="0.5" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
+            <feColorMatrix values="0 0 0 0 0   0 0 0 0 0   0 0 0 0 0  0 0 0 0.15 0" type="matrix" in="shadowBlurOuter1" result="shadowMatrixOuter1"></feColorMatrix>
+            <feMerge>
+                <feMergeNode in="shadowMatrixOuter1"></feMergeNode>
+                <feMergeNode in="SourceGraphic"></feMergeNode>
+            </feMerge>
+        </filter>
+        <linearGradient x1="50%" y1="-9.36523438%" x2="50%" y2="100%" id="linearGradient-2">
+            <stop stop-color="#EBEBEB" offset="0%"></stop>
+            <stop stop-color="#B5B5B5" offset="93.9280293%"></stop>
+            <stop stop-color="#CFCFCF" offset="100%"></stop>
+        </linearGradient>
+        <path d="M25.5454545,1 C28.5579168,1 31,3.44208318 31,6.45454545 L31,25.5454545 C31,28.5579168 28.5579168,31 25.5454545,31 L6.45454545,31 C3.44208318,31 1,28.5579168 1,25.5454545 L1,6.45454545 C1,3.44208318 3.44208318,1 6.45454545,1 L25.5454545,1 Z" id="path-3"></path>
+        <filter x="-1.7%" y="-1.7%" width="103.3%" height="103.3%" filterUnits="objectBoundingBox" id="filter-4">
+            <feOffset dx="0" dy="-1" in="SourceAlpha" result="shadowOffsetInner1"></feOffset>
+            <feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
+            <feColorMatrix values="0 0 0 0 0   0 0 0 0 0   0 0 0 0 0  0 0 0 0.2 0" type="matrix" in="shadowInnerInner1" result="shadowMatrixInner1"></feColorMatrix>
+            <feOffset dx="0" dy="1" in="SourceAlpha" result="shadowOffsetInner2"></feOffset>
+            <feComposite in="shadowOffsetInner2" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner2"></feComposite>
+            <feColorMatrix values="0 0 0 0 0.993263134   0 0 0 0 0.980733786   0 0 0 0 0.980733786  0 0 0 0.5 0" type="matrix" in="shadowInnerInner2" result="shadowMatrixInner2"></feColorMatrix>
+            <feMerge>
+                <feMergeNode in="shadowMatrixInner1"></feMergeNode>
+                <feMergeNode in="shadowMatrixInner2"></feMergeNode>
+            </feMerge>
+        </filter>
+        <linearGradient x1="24.8901367%" y1="0%" x2="63.1795247%" y2="103.312174%" id="linearGradient-5">
+            <stop stop-color="#5F5F5F" offset="0%"></stop>
+            <stop stop-color="#000000" stop-opacity="0.768930288" offset="100%"></stop>
+        </linearGradient>
+        <linearGradient x1="18.536377%" y1="0%" x2="66.7195638%" y2="103.965251%" id="linearGradient-6">
+            <stop stop-color="#575757" offset="0%"></stop>
+            <stop stop-color="#090909" stop-opacity="0.852737107" offset="100%"></stop>
+        </linearGradient>
+        <path d="M12.4547635,21.3567246 L13.3578792,18.9915966 L13.3578792,18.9915966 L18.6421208,18.9915966 L19.5452365,21.3567246 C19.6931539,21.7440985 20.0647919,22 20.4794461,22 L20.8954345,22 C21.3076584,22 21.641832,21.6658264 21.641832,21.2536025 C21.641832,21.1582002 21.6235425,21.0636826 21.5879537,20.9751669 L17.4273347,10.6269608 C17.2750389,10.2481736 16.9077761,10 16.4995192,10 L15.5004808,10 C15.0922239,10 14.7249611,10.2481736 14.5726653,10.6269608 L10.4120463,20.9751669 C10.2582706,21.3576347 10.4436622,21.792346 10.82613,21.9461217 C10.9146456,21.9817105 11.0091633,22 11.1045655,22 L11.5205539,22 C11.9352081,22 12.3068461,21.7440985 12.4547635,21.3567246 Z M18,17 L14,17 L15.9737991,12 L16.0436681,12 L18,17 Z" id="path-7"></path>
+        <filter x="-17.9%" y="-12.5%" width="135.4%" height="141.7%" filterUnits="objectBoundingBox" id="filter-8">
+            <feMorphology radius="0.5" operator="dilate" in="SourceAlpha" result="shadowSpreadOuter1"></feMorphology>
+            <feOffset dx="0" dy="1" in="shadowSpreadOuter1" result="shadowOffsetOuter1"></feOffset>
+            <feGaussianBlur stdDeviation="0.5" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
+            <feComposite in="shadowBlurOuter1" in2="SourceAlpha" operator="out" result="shadowBlurOuter1"></feComposite>
+            <feColorMatrix values="0 0 0 0 0   0 0 0 0 0   0 0 0 0 0  0 0 0 0.1 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
+        </filter>
+        <linearGradient x1="68.3268229%" y1="-18.0867513%" x2="76.2898763%" y2="168.660482%" id="linearGradient-9">
+            <stop stop-color="#696969" offset="0%"></stop>
+            <stop stop-color="#010101" offset="100%"></stop>
+        </linearGradient>
+        <path d="M9.5,5 C9.77614237,5 10,5.22385763 10,5.5 C10,5.77614237 9.77614237,6 9.5,6 L6,6 L6,9.5 C6,9.77614237 5.77614237,10 5.5,10 C5.22385763,10 5,9.77614237 5,9.5 L5,6 C5,5.44771525 5.44771525,5 6,5 L9.5,5 Z" id="path-10"></path>
+        <filter x="-5.0%" y="-5.0%" width="120.0%" height="120.0%" filterUnits="objectBoundingBox" id="filter-11">
+            <feOffset dx="0.5" dy="0.5" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
+            <feComposite in="shadowOffsetOuter1" in2="SourceAlpha" operator="out" result="shadowOffsetOuter1"></feComposite>
+            <feColorMatrix values="0 0 0 0 0   0 0 0 0 0   0 0 0 0 0  0 0 0 0.1 0" type="matrix" in="shadowOffsetOuter1"></feColorMatrix>
+        </filter>
+        <linearGradient x1="-31.3110352%" y1="41.2353516%" x2="148.433431%" y2="35.0504557%" id="linearGradient-12">
+            <stop stop-color="#696969" offset="0%"></stop>
+            <stop stop-color="#010101" offset="100%"></stop>
+        </linearGradient>
+        <path d="M26.5,5 C26.7761424,5 27,5.22385763 27,5.5 C27,5.77614237 26.7761424,6 26.5,6 L23,6 L23,9.5 C23,9.77614237 22.7761424,10 22.5,10 C22.2238576,10 22,9.77614237 22,9.5 L22,6 C22,5.44771525 22.4477153,5 23,5 L26.5,5 Z" id="path-13"></path>
+        <filter x="-5.0%" y="-5.0%" width="120.0%" height="120.0%" filterUnits="objectBoundingBox" id="filter-14">
+            <feOffset dx="0.5" dy="0.5" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
+            <feComposite in="shadowOffsetOuter1" in2="SourceAlpha" operator="out" result="shadowOffsetOuter1"></feComposite>
+            <feColorMatrix values="0 0 0 0 0   0 0 0 0 0   0 0 0 0 0  0 0 0 0.1 0" type="matrix" in="shadowOffsetOuter1"></feColorMatrix>
+        </filter>
+        <linearGradient x1="34.769694%" y1="121.805827%" x2="50%" y2="-99.1357422%" id="linearGradient-15">
+            <stop stop-color="#696969" offset="0%"></stop>
+            <stop stop-color="#010101" offset="100%"></stop>
+        </linearGradient>
+        <path d="M9.5,21 C9.77614237,21 10,21.2238576 10,21.5 C10,21.7761424 9.77614237,22 9.5,22 L6,22 L6,25.5 C6,25.7761424 5.77614237,26 5.5,26 C5.22385763,26 5,25.7761424 5,25.5 L5,22 C5,21.4477153 5.44771525,21 6,21 L9.5,21 Z" id="path-16"></path>
+        <filter x="-5.0%" y="-15.0%" width="120.0%" height="120.0%" filterUnits="objectBoundingBox" id="filter-17">
+            <feOffset dx="0.5" dy="-0.5" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
+            <feComposite in="shadowOffsetOuter1" in2="SourceAlpha" operator="out" result="shadowOffsetOuter1"></feComposite>
+            <feColorMatrix values="0 0 0 0 0   0 0 0 0 0   0 0 0 0 0  0 0 0 0.1 0" type="matrix" in="shadowOffsetOuter1"></feColorMatrix>
+        </filter>
+        <linearGradient x1="114.76237%" y1="44.3684896%" x2="-58.0517578%" y2="44.3684896%" id="linearGradient-18">
+            <stop stop-color="#696969" offset="0%"></stop>
+            <stop stop-color="#010101" offset="100%"></stop>
+        </linearGradient>
+        <path d="M26.5,21 C26.7761424,21 27,21.2238576 27,21.5 C27,21.7761424 26.7761424,22 26.5,22 L23,22 L23,25.5 C23,25.7761424 22.7761424,26 22.5,26 C22.2238576,26 22,25.7761424 22,25.5 L22,22 C22,21.4477153 22.4477153,21 23,21 L26.5,21 Z" id="path-19"></path>
+        <filter x="-15.0%" y="-5.0%" width="120.0%" height="120.0%" filterUnits="objectBoundingBox" id="filter-20">
+            <feOffset dx="-0.5" dy="0.5" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
+            <feComposite in="shadowOffsetOuter1" in2="SourceAlpha" operator="out" result="shadowOffsetOuter1"></feComposite>
+            <feColorMatrix values="0 0 0 0 0   0 0 0 0 0   0 0 0 0 0  0 0 0 0.1 0" type="matrix" in="shadowOffsetOuter1"></feColorMatrix>
+        </filter>
+    </defs>
+    <g id="6.0" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+        <g id="OCR_2（一期）" transform="translate(-550.000000, -274.000000)">
+            <g id="识图" filter="url(#filter-1)" transform="translate(550.000000, 274.000000)">
+                <g id="路径">
+                    <use fill="url(#linearGradient-2)" fill-rule="evenodd" xlink:href="#path-3"></use>
+                    <use fill="black" fill-opacity="1" filter="url(#filter-4)" xlink:href="#path-3"></use>
+                </g>
+                <g id="A" fill-rule="nonzero">
+                    <use fill="black" fill-opacity="1" filter="url(#filter-8)" xlink:href="#path-7"></use>
+                    <path stroke="url(#linearGradient-6)" stroke-width="0.5" d="M16.4995192,9.75 C16.7546798,9.75 16.9970297,9.82755426 17.1993857,9.964294 C17.3612704,10.0736858 17.4975591,10.2209563 17.5943339,10.3967007 L17.6592886,10.5337009 L21.8324239,20.9130373 C21.9106103,21.5618345 21.771822,21.7863339 21.5999939,21.9581619 C21.4196814,22.1384744 21.170582,22.25 20.8954345,22.25 C20.1749765,22.25 19.9573039,22.1581411 19.7705322,22.0295344 C19.6073013,21.9171373 19.470744,21.7660028 19.3753168,21.5860852 L19.3116841,21.4459058 L18.4699765,19.2415966 L13.5300235,19.2415966 L12.6883159,21.4459058 C12.5958675,21.6880145 12.4335065,21.889038 12.2294678,22.0295344 C12.0254291,22.1700308 11.7797128,22.25 11.5205539,22.25 C10.3762036,22.0837486 10.2767767,21.8525571 10.188036,21.6444754 C10.1046751,21.4490084 10.0834543,21.2270405 10.1380949,21.0107458 L10.1800924,20.8819071 L14.3407114,10.5337009 C14.4358963,10.296959 14.5982584,10.1010337 14.8006143,9.964294 C14.9624991,9.85490221 15.14998,9.78338912 15.3491392,9.75915956 L15.5004808,9.75 L16.4995192,9.75 Z M15.97684,12.6731525 L14.3674644,16.75 L17.6289424,16.75 L15.97684,12.6731525 Z" fill="url(#linearGradient-5)" fill-rule="evenodd"></path>
+                </g>
+                <g id="形状结合" fill-rule="nonzero">
+                    <use fill="black" fill-opacity="1" filter="url(#filter-11)" xlink:href="#path-10"></use>
+                    <use fill="url(#linearGradient-9)" xlink:href="#path-10"></use>
+                </g>
+                <g id="形状结合" fill-rule="nonzero" transform="translate(24.500000, 7.500000) rotate(-270.000000) translate(-24.500000, -7.500000) ">
+                    <use fill="black" fill-opacity="1" filter="url(#filter-14)" xlink:href="#path-13"></use>
+                    <use fill="url(#linearGradient-12)" xlink:href="#path-13"></use>
+                </g>
+                <g id="形状结合" fill-rule="nonzero" transform="translate(7.500000, 23.500000) scale(1, -1) translate(-7.500000, -23.500000) ">
+                    <use fill="black" fill-opacity="1" filter="url(#filter-17)" xlink:href="#path-16"></use>
+                    <use fill="url(#linearGradient-15)" xlink:href="#path-16"></use>
+                </g>
+                <g id="形状结合" fill-rule="nonzero" transform="translate(24.500000, 23.500000) scale(1, -1) rotate(-270.000000) translate(-24.500000, -23.500000) ">
+                    <use fill="black" fill-opacity="1" filter="url(#filter-20)" xlink:href="#path-19"></use>
+                    <use fill="url(#linearGradient-18)" xlink:href="#path-19"></use>
+                </g>
+            </g>
+        </g>
+    </g>
+</svg>
\ No newline at end of file
diff --git a/deepin-ocr.desktop b/deepin-ocr.desktop
new file mode 100644
index 0000000..ef3dec6
--- /dev/null
+++ b/deepin-ocr.desktop
@@ -0,0 +1,24 @@
+[Desktop Entry]
+Categories=Ocr;
+Comment=Deepin ocr
+#Exec=/usr/bin/deepin-ocr %F
+GenericName=OCR Tool
+Icon=deepin-ocr
+Name=Deepin Ocr
+Type=Application
+X-Deepin-ManualID=deepin-ocr
+X-Deepin-Vendor=deepin
+X-Deepin-TurboType=dtkwidget
+
+# Translations:
+# Do not manually modify!
+Comment[zh_CN]=图文识别工具
+Comment[zh_HK]=圖文識別工具
+Comment[zh_TW]=圖文識別工具
+GenericName[zh_CN]=图文识别工具
+GenericName[zh_HK]=圖文識別工具
+GenericName[zh_TW]=圖文識別工具
+
+Name[zh_CN]=图文识别工具
+Name[zh_HK]=Deepin 圖文識別工具
+Name[zh_TW]=Deepin 圖文識別工具
\ No newline at end of file
diff --git a/deepin-ocr.pro b/deepin-ocr.pro
index a4eb28f..c99e4c6 100644
--- a/deepin-ocr.pro
+++ b/deepin-ocr.pro
@@ -81,7 +81,14 @@ dbus_service.files=./com.deepin.Ocr.service
 tesslangs.path=/usr/share/deepin-ocr/tesslangs
 tesslangs.files=./assets/tesslangs/chi_sim.traineddata ./assets/tesslangs/chi_tra.traineddata ./assets/tesslangs/eng.traineddata ./assets/tesslangs/chi_sim_vert.traineddata ./assets/tesslangs/chi_tra_vert.traineddata
 
-INSTALLS += target dbus_service translations tesslangs
+desktop.path=/usr/share/applications
+desktop.files=./deepin-ocr.desktop
+
+icon.path=/usr/share/icons/hicolor/scalable/apps
+icon.files=./assets/deepin-ocr.svg
+
+
+INSTALLS += target dbus_service translations icon desktop tesslangs
 
 CONFIG *= update_translations release_translations
 
