
# Environment variable PYTHONPATH must be set to this directory - "./" - "export PYTHONPATH=$(pwd)"

# -----
FOLDERS:
./bin       - binary files of compiled resources
./src       - source files of compiled resources
./resources - other source files than code, configuration etc.
./tmp       - directory for temporary data storage
./server    - main server code, and debugging scripts
./frames    - storage of processed images and videos
./__debug   - debugging tools and scripts

# -----
README - this file

# -----
SETTINGS:
./__base.py - system paths and algorithms configuration
./__pgsql.py - connection to PostgreSQL database

# -----
SCRIPTS:
./__clear_all.py  - clear database and remove all temporary files
./seg_to_pols.py  - convert bitmap segments to polygons
./detection.py    - object detection (Boost detector)

./image_daemon.py   - retrieve images queued for processing and process them
./video_daemon.py   - retrieve videos queued for processing and process them

process_video.py - process video (split video to frames, and schedule them for processing)
process_image.py - process image (object detection, and segmentation)
process_query.py - process server queries

./init_db.sql   - database initialization script

# -----

image: PUT,GET,DELETE

video: PUT,GET,DELETE
parameters: 
   - frame_step: count of skipped frames between images

query: GET
   - q: type of query
      - getResourceList
      - getResourceState
      - getSegments
      - getObjects
      - isObjectInSegment
      - isSegmentAdjacent
   - resource_uri: uri of queried resource
   - segment_type,segment_type1,segment_type2
   - object_type


