- You run simple http server with basic auth on the machine where your local storage is.
pip install sauth # sauth - simple http file server with auth
sauth admin 12345 -d /path/to/storage
- Now you can have access to images from your storage this way:
<http://localhost:8333/image.jpg> # image is stored as /path/to/storage/image.jpg
- Let’s assume your storage server has an IP address 192.168.1.42, so the file name will be
<http://192.168.1.42/image.jpg>
-
LSE server has API in the same network, let it be
192.168.1.77
. So, files from storage192.168.77.42
will be accessible from LSE192.168.1.77
. -
Let’s expose your storage files to annotators by enabling the basic auth proxy on LSE side:
-
Now we can prepare LS tasks for import:
{
"image":"<http://192.168.1.42/image.jpg>",
"meta": {
"info": "test_image"
"text": "some text"
}
}
- LSE will download this image and return to annotators it using its own proxy by this url:
<https://app.heartex.com/api/projects/><project-id>/file-proxy/?url=http%3A//192.168.1.42/image.jpg