-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtesseract.xml
161 lines (160 loc) · 7.65 KB
/
tesseract.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<?xml version="1.0" encoding="UTF-8"?>
<toolspec model="0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../src/main/resources/toolspec.xsd">
<id>tesseract</id>
<name>Tesseract OCR</name>
<homepage>http://code.google.com/p/tesseract-ocr/</homepage>
<version>3-0-2</version>
<installation>
<os type="linux">
Available under most distributions via package management.
</os>
<os type="windows">
Binaries for Windows are available from the project homepage. THE FULL PATH TO THE EXECUTABLE MUST NOT CONTAIN WHITESPACES!
</os>
</installation>
<services>
<service sid="1" name="Tesseract" type="migrate" servicepackage="eu.impact_project.iif.service" contextpathprefix="/impactservices">
<description>Services for text recognition using Tesseract</description>
<operations>
<operation oid="1" name="tesseract">
<description>Perform text recognition on image file</description>
<!--
Usage:
tesseract[.exe] <input> <output> -l <lang> [+hocr]
Where:
<input> Input image file in TIF format
<output> OCR result file in TXT format
<lang> Language model used for recognition
[+hocr] Optional: write hOCR output file (with coordinates)
-->
<command>tesseract ${input} ${output} -l ${langmod}</command>
<inputs>
<input name="input">
<Datatype>xsd:anyURI</Datatype>
<Required>true</Required>
<CliMapping>input</CliMapping>
<Documentation>URL reference to input file</Documentation>
<Default>http://github.com/impactcentre/iif-testfiles/raw/master/testfiles/image.bw.tif</Default>
</input>
<input name="langmod">
<Datatype>xsd:string</Datatype>
<Required>true</Required>
<CliMapping>langmod</CliMapping>
<Documentation>Language module used by Tesseract</Documentation>
<Default>deu-frak</Default>
<Restriction>
<Value>afr</Value>
<Value>ara</Value>
<Value>aze</Value>
<Value>bel</Value>
<Value>ben</Value>
<Value>bul</Value>
<Value>cat</Value>
<Value>ces</Value>
<Value>chi_sim</Value>
<Value>chi_tra</Value>
<Value>chr</Value>
<Value>dan</Value>
<Value>dan-frak</Value>
<Value>deu</Value>
<Value>deu-frak</Value>
<Value>ell</Value>
<Value>eng</Value>
<Value>enm</Value>
<Value>epo</Value>
<Value>equ</Value>
<Value>est</Value>
<Value>eus</Value>
<Value>fin</Value>
<Value>fra</Value>
<Value>frk</Value>
<Value>frm</Value>
<Value>glg</Value>
<Value>grc</Value>
<Value>heb</Value>
<Value>hin</Value>
<Value>hrv</Value>
<Value>hun</Value>
<Value>ind</Value>
<Value>isl</Value>
<Value>ita</Value>
<Value>ita-old</Value>
<Value>jpn</Value>
<Value>kan</Value>
<Value>kor</Value>
<Value>lat-lid</Value>
<Value>lav</Value>
<Value>lit</Value>
<Value>mal</Value>
<Value>mkd</Value>
<Value>mlt</Value>
<Value>msa</Value>
<Value>nld</Value>
<Value>nor</Value>
<Value>osd</Value>
<Value>pol</Value>
<Value>por</Value>
<Value>ron</Value>
<Value>rus</Value>
<Value>slk</Value>
<Value>slk-frak</Value>
<Value>slv</Value>
<Value>spa</Value>
<Value>spa-old</Value>
<Value>srp</Value>
<Value>swe</Value>
<Value>swe-frak</Value>
<Value>tha</Value>
<Value>tgl</Value>
<Value>tur</Value>
<Value>ukr</Value>
<Value>vie</Value>
</Restriction>
</input>
</inputs>
<outputs>
<output name="output">
<Datatype>xsd:anyURI</Datatype>
<Required>false</Required>
<CliMapping>output</CliMapping>
<Documentation>URL reference to output file</Documentation>
<Extension>txt</Extension>
<AutoExtension>true</AutoExtension>
</output>
</outputs>
</operation>
</operations>
<deployto>
<deployref default="true" ref="local"/>
</deployto>
</service>
</services>
<deployments>
<deployment id="local">
<identifier>http://localhost:8080/impact/instances/tomcat1</identifier>
<host>localhost</host>
<ports>
<port type="http">8080</port>
<port type="https">8043</port>
</ports>
<manager>
<user>tomcat</user>
<password>tomcat</password>
<path>manager</path>
</manager>
<!--
Full path to the directory where the tool has been installed.
THE PATH MUST NOT CONTAIN WHITESPACES!
If you want to use backslashes (\) then you must repeat them twice,
e.g. c:\\foo\\bar
or you can use just slashes,
e.g. c:/foo/bar
-->
<toolsbasedir>C:\\TESSOCR\\</toolsbasedir>
<dataexchange>
<accessdir>../webapps/ROOT/impact/tmp/</accessdir>
<accessurl>http://localhost:8080/impact/tmp/</accessurl>
</dataexchange>
</deployment>
</deployments>
</toolspec>