Added initial example docker-compose file for Tika Vision Services
diff --git a/docker-compose-tika-vision.yml b/docker-compose-tika-vision.yml
new file mode 100644
index 0000000..6fd3c32
--- /dev/null
+++ b/docker-compose-tika-vision.yml
@@ -0,0 +1,54 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+version: "3.8"
+services:
+
+ ## Apache Tika Server
+ tika:
+ image: apache/tika:latest-full
+ command: -c /tika-config.xml
+ restart: on-failure
+ ports:
+ - "9998:9998"
+
+ volumes:
+ # Replace the below with the configuration you want to use, or with your own custom one
+ # - ./sample-configs/inception-rest.xml:/tika-config.xml
+ # - ./sample-configs/inception-rest-video.xml:/tika-config.xml
+ - ./sample-configs/inception-rest-caption.xml:/tika-config.xml
+
+ depends_on:
+ # You can comment out any you don't need here and in the Vision Service section below
+ - inception-rest
+ - inception-caption
+ - inception-video
+
+ ## Vision Services
+ inception-rest:
+ build: https://raw.githubusercontent.com/dameikle/tika-dockers/patch-1/InceptionRestDockerfile
+ ports:
+ - "8764:8764"
+
+ inception-caption:
+ build: https://raw.githubusercontent.com/dameikle/tika-dockers/patch-1/Im2txtRestDockerfile
+ ports:
+ - "8765:8764"
+
+ inception-video:
+ build: https://raw.githubusercontent.com/dameikle/tika-dockers/patch-1/InceptionVideoRestDockerfile
+ ports:
+ - "8766:8764"
+
diff --git a/sample-configs/inception-rest-caption.xml b/sample-configs/inception-rest-caption.xml
new file mode 100644
index 0000000..c70c207
--- /dev/null
+++ b/sample-configs/inception-rest-caption.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one or more
+ ~ contributor license agreements. See the NOTICE file distributed with
+ ~ this work for additional information regarding copyright ownership.
+ ~ The ASF licenses this file to You under the Apache License, Version 2.0
+ ~ (the "License"); you may not use this file except in compliance with
+ ~ the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+<properties>
+ <parsers>
+ <parser class="org.apache.tika.parser.recognition.ObjectRecognitionParser">
+ <mime>image/jpeg</mime>
+ <mime>image/png</mime>
+ <mime>image/gif</mime>
+ <params>
+ <param name="apiBaseUri" type="uri">http://inception-caption:8764/inception/v3</param>
+ <param name="captions" type="int">5</param>
+ <param name="maxCaptionLength" type="int">15</param>
+ <param name="class" type="string">org.apache.tika.parser.captioning.tf.TensorflowRESTCaptioner</param>
+ </params>
+ </parser>
+ </parsers>
+</properties>
\ No newline at end of file
diff --git a/sample-configs/inception-rest-video.xml b/sample-configs/inception-rest-video.xml
new file mode 100644
index 0000000..f6a4e6a
--- /dev/null
+++ b/sample-configs/inception-rest-video.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one or more
+ ~ contributor license agreements. See the NOTICE file distributed with
+ ~ this work for additional information regarding copyright ownership.
+ ~ The ASF licenses this file to You under the Apache License, Version 2.0
+ ~ (the "License"); you may not use this file except in compliance with
+ ~ the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+<properties>
+ <parsers>
+ <parser class="org.apache.tika.parser.recognition.ObjectRecognitionParser">
+ <mime>video/mp4</mime>
+ <mime>video/quicktime</mime>
+ <params>
+ <param name="apiBaseUri" type="uri">http://inception-video:8764/inception/v4</param>
+ <param name="topN" type="int">4</param>
+ <param name="minConfidence" type="double">0.015</param>
+ <param name="mode" type="string">fixed</param>
+ <param name="class" type="string">org.apache.tika.parser.recognition.tf.TensorflowRESTVideoRecogniser</param>
+ </params>
+ </parser>
+ </parsers>
+</properties>
\ No newline at end of file
diff --git a/sample-configs/inception-rest.xml b/sample-configs/inception-rest.xml
new file mode 100644
index 0000000..caa6468
--- /dev/null
+++ b/sample-configs/inception-rest.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one or more
+ ~ contributor license agreements. See the NOTICE file distributed with
+ ~ this work for additional information regarding copyright ownership.
+ ~ The ASF licenses this file to You under the Apache License, Version 2.0
+ ~ (the "License"); you may not use this file except in compliance with
+ ~ the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+<properties>
+ <parsers>
+ <parser class="org.apache.tika.parser.recognition.ObjectRecognitionParser">
+ <mime>image/jpeg</mime>
+ <mime>image/png</mime>
+ <mime>image/gif</mime>
+ <params>
+ <param name="apiBaseUri" type="uri">http://inception-rest:8764/inception/v4</param>
+ <param name="topN" type="int">2</param>
+ <param name="minConfidence" type="double">0.015</param>
+ <param name="class" type="string">org.apache.tika.parser.recognition.tf.TensorflowRESTRecogniser</param>
+ </params>
+ </parser>
+ </parsers>
+</properties>