Ubuntu1604下使用web.py创建webservice
首先安装web.py
sudo pip install web.py
打开一个文件位index.py,输入:
from PIL import Image
import imagehash
import glob
import numpy as np
import json
import web
#URL匹配
urls = (
'/dhash', 'Dhash'
)
class H
原创
2018-01-05 10:19:50 ·
619 阅读 ·
0 评论