-
Notifications
You must be signed in to change notification settings - Fork 3
Using the Legacy Wrapper
A legacy wrapper for the old Visor backend API used by the kencoken/visor repository is provided at pyclient/visor_legacy_wrap.py.
A working system using the wrapper (including web frontend) can be set up as follows:
-
Clone the old frontend repo
kencoken/visor -
Checkout the
bbc-demobranch -
Initialise submodules:
$ git submodule init $ git submodule update --recursive -
The backend code can be removed
rm -r backend/ -
Prepare frontend configuration files by following the instructions in the repo README – make a note of the backend port (
[visor]->backend_port) and the imsearchtool service port ([imsearchtools]->service_port) specified insite.cfgand change these ports so that your service uses unique ports on the system and does not interfere with existing server instances -
Run the imsearchtools service located in
frontend/src/libs/imsearch-tools/ensuring the service port is the same as specified insite.cfg -
Run the frontend server
frontend/server.py
-
Ensure the ports specified for
server_config->server_endpointandserver_config->notify_endpointinconfig.prototxtare not left at the defaults, but modified and unique to avoid interference with other server instances -
Set
server_config->page_sizeto around 1000, adding the value if it does not exist (or however many images you wish to be returned from the backend) -
Compile
cpuvisor-srvas usual, and complete pre-processing usingbin/cpuvisor_preproc(orbin/cpuvisor_preproc_sgein a cluster environment) -
Open
legacy_serve.pyand setSERVE_PORTto match the backend service port specified insite.cfgin Part 1 -
Run the legacy wrapper service
legacy_serve.py -
Run the cpuvisor backend service
bin/cpuvisor_service