To be compiled, Pastec requires OpenCV
. On Ubuntu 14.10
, those package can be installed using the following command:
sudo apt-get install libopencv-dev libmicrohttpd-dev libjsoncpp-dev
If you are using another distribution or operating system, you may have to compile them yourself.
Pastec uses cmake as build system. You also need Git to get the source code.
On Ubuntu, they can be installed using the following command:
sudo apt-get install cmake git
To compile Pastec, first get the sources with the following command:
git clone https://github.com/Visu4link/pastec.git
Then create a compilation folder:
Go to this subdirectory and run cmake:
Finally, run make to compile Pastec:
To start Pastec, just run the pastec executable. It takes as mandatory argument the path to a file containing a list of ORB visual words. For now, please use this file visualWordsORB.dat. Next Pastec releases will contain tools that will allow you to generate your own list of visual words.
The default port pastec listens for the REST API is 4212
. You can set an other port with the -p
You can also give a path to an index file to load with the -i