/
borderremoval.xml
104 lines (103 loc) · 5.06 KB
/
borderremoval.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
<?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>borderremoval</id>
<name>NCSR Border Removal</name>
<homepage>http://www.digitisation.eu/tools/browse/image-enhancement/border-detection-and-removal/</homepage>
<version>4</version>
<installation>
<os type="linux">
Not currently supported.
</os>
<os type="windows">
Requires installation of the NCSR Border Removal Tool. THE FULL PATH TO THE EXECUTABLE MUST NOT CONTAIN WHITESPACES!
</os>
</installation>
<services>
<service sid="1" name="BorderRemoval" type="migrate" servicepackage="eu.impact_project.iif.service" contextpathprefix="/impactservices">
<description>Services for removing noise and black borders from scanned document images</description>
<operations>
<operation oid="1" name="removeBorder">
<description>Remove the border from an input image file. Optionally, double-pages can be split.
</description>
<!--
Usage:
Border_Detection_v4.exe [<pagesplit>] <in> <out1> <out2>
Where:
<pagesplit> Indicate double pages to be split (true/false)
<in> Input image file in TIF format
<out1> Output image file with borders removed
<out2> Second output image file with borders removed (if pagesplit was set to true)
-->
<command>Border_Detection_v4.exe ${pagesplit} ${infile} ${outfile1} ${outfile2}</command>
<inputs>
<input name="infile">
<Datatype>xsd:anyURI</Datatype>
<Required>true</Required>
<CliMapping>infile</CliMapping>
<Documentation>URL reference to input file</Documentation>
<Default>http://github.com/impactcentre/iif-testfiles/raw/master/testfiles/image.double.bw.tif</Default>
</input>
<input name="pagesplit">
<Datatype>xsd:boolean</Datatype>
<Required>true</Required>
<CliMapping>pagesplit</CliMapping>
<Documentation>Indicates if a page should be split or not (if an image represents two book pages)</Documentation>
<Default>true</Default>
<Restriction>
<Value>true</Value>
<Value>false</Value>
</Restriction>
</input>
</inputs>
<outputs>
<output name="outfile1">
<Datatype>xsd:anyURI</Datatype>
<Required>false</Required>
<CliMapping>outfile1</CliMapping>
<Documentation>URL reference to output image</Documentation>
<Extension>tif</Extension>
</output>
<output name="outfile2">
<Datatype>xsd:anyURI</Datatype>
<Required>false</Required>
<CliMapping>outfile2</CliMapping>
<Documentation>URL reference to second output image if pagesplit was used</Documentation>
<Extension>tif</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:\\BORDREM\\</toolsbasedir>
<dataexchange>
<accessdir>../webapps/ROOT/impact/tmp/</accessdir>
<accessurl>http://localhost:8080/impact/tmp/</accessurl>
</dataexchange>
</deployment>
</deployments>
</toolspec>