REST API server for image processing by neural networks. Use with neural network realsr-ncnn-vulkan (Docker Image with this NN)
docker run -p 127.0.0.1:5000:5000 --env PASS_NN="pass" --device /dev/dri:/dev/dri forez/server_nn-api:latest
# check status
curl -H 'X-PASSWORD: pass' http://localhost:5000/info/all_updated
# set task
curl -X POST 'http://localhost:5000/content/dir001?realsr=-x%20-s%204&output_name=out001.png' -H 'X-PASSWORD: pass' -F 'picture=@"/tmp/testdir/in001.png"'
{"status": "Picture was uploaded", "output_filename": "Updated_dir001/in001.png"}
# get list pictures
curl -H 'X-PASSWORD: pass' http://localhost:5000/content/Updated_dir001
# download result. After processing
curl -H 'X-PASSWORD: pass' http://localhost:5000/content/Updated_dir001/in001.png -o /tmp/testdir/out001.png
# cleanup result
curl -X DELETE -H 'X-PASSWORD: pass' http://localhost:5000/content/Updated_dir001/in001.png
Content type
Image
Digest
Size
846.9 MB
Last updated
over 4 years ago
docker pull forez/server_nn-api