/
layoutevaluation.xml
137 lines (136 loc) · 8.11 KB
/
layoutevaluation.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
<?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>layoutevaluation</id>
<name>USAL Layout Evaluation</name>
<homepage>http://www.digitisation.eu/tools/browse/evaluation/evaluation-tool-for-segmentation/</homepage>
<version>1-2-33</version>
<installation>
<os type="linux">
Not currently supported.
</os>
<os type="windows">
Requires installation of the USAL Layout Evaluation Tool. THE FULL PATH TO THE EXECUTABLE MUST NOT CONTAIN WHITESPACES!
</os>
</installation>
<services>
<service sid="1" name="LayoutEvaluation" type="migrate" servicepackage="eu.impact_project.iif.service" contextpathprefix="/impactservices">
<description>Service for evaluating document layout detection against ground truth in PAGE format
</description>
<operations>
<operation oid="1" name="evalLayout">
<description>Evaluation of layout detection using profiles</description>
<!--
Usage:
layoutevalcmd-1-2-33.exe <ground-truth> <seg> <image> <profile> <output file> [<opts>]
Where:
<ground-truth> Full path to the ground-truth document layout XML file (in PAGE format)
<seg> Full path to the document layout XML file to be evaluated (segmentation result) (in PAGE format)
<image> Full path to the document black-and-white image (.tif)
<profile> Full path to the .evx file containing the evaluation profile (weights and settings)
<output file> Full path to the evaluation result file (.evx)
<opts> Combination of following characters (optional)
(Note: No spaces between options! E.g.: OW)
'O' - to overwrite existing result files
'P' - print warnings and messages
'V' - to output the evaluation results as comma separated values (CSV)
'H' - to output the column headers for the comma separated values
Structure levels (in none specified, all available will be used)
'B' - evaluate blocks (regions)
'L' - evaluate text lines
'W' - evaluate words
'G' - evaluate glyphs
-->
<command>layoutevalcmd-1-2-33.exe ${groundTruthXmlFileUrl} ${segXmlFileUrl} ${bwImageFileUrl} ${profileEvxFileUrl} ${outfile} ${opts}
</command>
<inputs>
<input name="groundTruthXmlFileUrl">
<Datatype>xsd:anyURI</Datatype>
<Required>true</Required>
<CliMapping>groundTruthXmlFileUrl</CliMapping>
<Documentation>URL to the ground-truth document layout XML file (in PAGE format)
</Documentation>
<Default>http://github.com/impactcentre/iif-testfiles/raw/master/testfiles/groundtruth.xml</Default>
</input>
<input name="segXmlFileUrl">
<Datatype>xsd:anyURI</Datatype>
<Required>true</Required>
<CliMapping>segXmlFileUrl</CliMapping>
<Documentation>URL to the document layout XML file to be evaluated (segmentation result) in PAGE format
</Documentation>
<Default>http://localhost:8080/impact/testfiles/words.xml</Default>
</input>
<input name="bwImageFileUrl">
<Datatype>xsd:anyURI</Datatype>
<Required>true</Required>
<CliMapping>bwImageFileUrl</CliMapping>
<Documentation>URL to the document black-and-white image (.tif)</Documentation>
<Default>http://github.com/impactcentre/iif-testfiles/raw/master/testfiles/image.bw.tif</Default>
</input>
<input name="profileEvxFileUrl">
<Datatype>xsd:anyURI</Datatype>
<Required>true</Required>
<CliMapping>profileEvxFileUrl</CliMapping>
<Documentation>Full path to the .evx file containing the evaluation profile (weights and settings)
</Documentation>
<Default>http://github.com/impactcentre/iif-testfiles/raw/master/testfiles/profile.evx</Default>
</input>
<input name="opts">
<Datatype>xsd:string</Datatype>
<Required>false</Required>
<CliMapping>opts</CliMapping>
<Documentation>Combination of following characters (optional) (Note: No spaces between options! E.g. OW) 'O' - to overwrite existing result files, 'P' - print warnings and messages, 'V' - to output the evaluation results as comma separated values (CSV), 'H' - to output the column headers for the comma separated values (Note The values are written to std::out and not to a file. If necessary, the output can be redirected to a CSV file.) Structure levels (in none specified, all available will be used), 'B' - evaluate blocks (regions), 'L' - evaluate text lines, 'W' - evaluate words, 'G' - evaluate glyphs</Documentation>
<Default>OP</Default>
</input>
<input name="evaluationId">
<Datatype>xsd:string</Datatype>
<Required>false</Required>
<CliMapping></CliMapping>
<Documentation>Evaluation ID</Documentation>
<Default>Default_Evaluation_ID</Default>
</input>
</inputs>
<outputs>
<output name="outfile">
<Datatype>xsd:anyURI</Datatype>
<Required>false</Required>
<CliMapping>outfile</CliMapping>
<Documentation>URL reference to output file</Documentation>
<Extension>evx</Extension>
</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:\\SEGEVAL\\</toolsbasedir>
<dataexchange>
<accessdir>../webapps/ROOT/impact/tmp/</accessdir>
<accessurl>http://localhost:8080/impact/tmp/</accessurl>
</dataexchange>
</deployment>
</deployments>
</toolspec>