Skip to content
/ vtapi Public

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.

Notifications You must be signed in to change notification settings

fit-uifs/vtapi

Repository files navigation

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
  1. compile interfaces
./compile_interfaces.sh
  1. a) compile for development (into install/)
./build_debug.sh

OR 3. b) compile for release (into /usr/local)

./build_release.sh
  1. 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']})

About

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.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •