DESCRIPTION:
The server enables upload of images and video sequences, which will be analysed consecutively. Videos will be decomposed into sequence of images first, which will processed. The image processing is divided into several modular phases (segmentation, segment classification, object detection), which can be added or modified as needed. It is possible to query the analysed data, e.g. in following ways:

 * Does the image/video contain given type of object, e.g. car, pedestrian, traffic sign etc?
 * Does the image/video contain given type of area, e.g. grass, asphalt, sky, fire etc?
 * Are predefined relations between objects and areas in the image/video valid? E.g. adjacency, presence etc.

The system also allows to define so-called "tags" in the form of predefined queries and logical combinations of them. An image/video is tagged if it satisfies defined query.

Services provided by the server are useful in e.g. crisis management, when it is useful to sort images and videos according to predefined (crisis) scenarios.

DIRECTORY STRUCTURE (only important files/directories):
* java-interface/ - java envelope of all server services including tests. Build on Maven framework. Type "mvn test" in this directory to run tests of the server using the Java envelope.
** src/main/java/eu/weknowit/media/imgproc/IImageProcessingService.java - java interface of the server
** src/test/java/eu/weknowit/media/imgproc/ImageProcessingServiceTest.java - java class implementing TestNG tests of server services
* server/
** engine/ - the server engine itself
*** init_db.sql - initialization script for PostgreSQL database
*** README - description of the server structure
** engine_description/ - description of the server implementation in Python
** server_communications/ - helper scripts for querying server directly via HTTP protocol
* Imgproc-services.cz.html - description of services and queries provided by the server
* README - this file

REQUIREMENTS:
* Python
* Twisted framework
* PostgreSQL + PostGIS
* Maven
* TestNG
* Abon detection framework

SETUP:
1. copy files onto your machine
2. install PostgreSQL database and PostGIS spatial extension
 a) create your DB
 b) execute server/engine/init_db.sql script on created DB to initialize it
3. install Abon detection framework
 a) download it from http://www.fit.vutbr.cz/research/view_product.php.en?id=43
 b) place it into server/engine/src/detection/abon/ folder
 c) check list of files in /engine/src/detection/abon/README
4. configure imgproc server
 a) set DB connection properties, paths etc. at the beginning of server/engine/__base.py
 b) copy server/engine/dtd/ folder with DTDs into your public www/ folder (the DTDs must be accessible from internet)
5. run the server by using server/engine/engine.sh script (available parameters are "start", "stop", "restart") 

