fit-uifs / vtapi

VTApi is a PostgreSQL database and OpenCV API for the VT project. The project is oriented towards processing of records containing image and video information - categorization, searching and comparison.
http://vidte.fit.vutbr.cz
3 stars 5 forks source link

DEPENDENCIES

HOW TO BUILD

  1. install dependencies from packages (see above)

  2. install rpcz

    cd 3rdparty/rpcz
    mkdir build
    cd build
    cmake ..
    make
    sudo make install
    cd ../python
    python setup.py install
  3. compile interfaces

    ./compile_interfaces.sh
  4. a) compile for development (into install/)

    ./build_debug.sh

    OR

  5. b) compile for release (into /usr/local)

    ./build_release.sh
  6. optionally install python VTServer client

    cd pyclient
    python setup.py install

HOW TO RUN

Development server:

  1. configure ./vtapi_debug.conf
  2. run vtserver: ./run_vtserver_debug.sh

Release server:

  1. create config file like ./vtapi_example.conf
  2. run vtserver: vtserver --config=/path/to/config.conf

Testing the server:

  1. install python VTServer client (see above)
  2. create testing python script, eg.:
    import vtclient.client as vtclient
    cl = vtclient.VTServerClient("tcp://127.0.0.1:8719")
    addDataset = cl.call('addDataset', {'name': 'test_dataset'})
    print cl.call('getDatasetList', {})
    cl.call('deleteDataset', {'dataset_id': addDataset['dataset_id']})