以图搜图服务

sun-pc 959cd6afc2 fix 1 week ago
milvus 773fbbbe6f update 1 year ago
src 959cd6afc2 fix 1 week ago
.gitignore 8b6dbce649 update 1 year ago
Dockerfile fcb13b1506 fix 1 week ago
build.sh 41394fda3f fix v1.0.2 1 week ago
docker-compose.yml f7c1d9abda fix 1 week ago
readme.md 00648d9e34 update 1 year ago
tmp.md 773fbbbe6f update 1 year ago

readme.md

以图搜图

安装milvus

milvus/docker-compose.yml

search-image服务

  1. 根据业务需求编写src/*
  2. 生成服务镜像sh build.sh
    1. 因为国内网络原因,在外网服务器上构建运行
    2. 使用docker commit把运行中容器做成镜像
    3. 提交到镜像仓库
  3. 在对应应用服务docker-compose.yml中使用该镜像

主要api:

# query:im_hash,prouduc_id,url,table_name
# url || image 参数必传
@app.post('/img/upload')

# query:url,limit,table_name
# image参数必传
@app.post('/img/search')

# query:im_hash,table_name
# image参数必传
@app.post('/delete/record')

# table_name
@app.post('/img/count')

# table_name
@app.post('/img/drop')