shannon-server:一些 httpony 来计算图像的香农熵

时间:2021-07-10 12:51:25
【文件属性】:
文件名称:shannon-server:一些 httpony 来计算图像的香农熵
文件大小:5KB
文件格式:ZIP
更新时间:2021-07-10 12:51:25
Python 香农服务器 shannon-server 是一个符合 WSGI 的小型 httpony,用于计算给定图像的。 另请参阅:,它尚未使用 Heroku 之类的东西,但它在接受的类型(路径和文件名等)方面更加保守。 您可以使用 Gunicorn 在本地运行它 $ gunicorn shannon:application $ curl 'http://localhost:8000/json/?path=http://mysite.com/cat.jpg' | python -m json.tool { "shannon-entropy": 7.98169630470466, "stat": "ok" } 在 Heroku 上 在推送到之前,您可以使用 foreman 在本地运行它以进行测试 $ virtualenv venv --distribute $ source
【文件预览】:
shannon-server-master
----.gitignore(25B)
----requirements.txt(61B)
----init.d()
--------.gitignore(4B)
--------shannon-server.sh.example(2KB)
--------shannon-server.sh(2KB)
----README.md(1KB)
----Procfile(33B)
----shannon.py(3KB)

网友评论