## 上传图片
```rest
method: post
url: /api/start
content-type: application/json
body: {
path string,
preprocessMethod string, // "1-A"
featureExtractionMethod string, //"2-A"
similarityCalculationMethod string //"3-A"
}
response: {
status: 200/error code
}
```
- path是一个绝对路径,它是用户上传的本地图片路径
- 三个Method分别是预处理、特征提取、相似计算的算法名
- 我现在不知道这仨我们实现了啥算法叫啥名,需要算法大佬给个反馈
- 返回一个status,成功就200,失败就其他
检索处理完毕后,在 C:\Users\username\AppData\Local\Temp\SimpleCBIR\ 里输出一个result.json文件。
在写文件之前,在该目录放一个文件名为result.json.busy的文件,代表正在写文件。
写完后删除该.busy文件,代表解锁。
## result.json
```rest
{
rawImage: string, // the raw path
recallRatio: string, // "92.5%" 查全率
precision: string, // "87.5%" 查准率
position: string, // path of the target marked image
features: {
color: string, // path of the generated image
texture: string, // path of the generated image
shape: string // path of the generated image
position: string // path of the target marked image
},
results: {
one: {
similarity: string, //"99.9%"
path: string //path of the most similar image,
features: {
color: string, // path of the generated image
texture: string, // path of the generated image
shape: string // path of the generated image
}
},
two: {
similarity: string, //"76.2%"
path: string, //path of the second similar image
features: {
color: string, // path of the generated image
texture: string, // path of the generated image
shape: string // path of the generated image
}
},
three: {
similarity: string, //"64.1%"
path: string, //path of the third similar image
features: {
color: string, // path of the generated image
texture: string, // path of the generated image
shape: string // path of the generated image
}
}
}
}
```
## 获得图片
```rest
method: get
url: /api/image
query: ?i=path
response: {
status: 200/error code
}
```
- path是result.json中获得的各个图片的path
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
【资源说明】 1、该资源包括项目的全部源码,下载可以直接使用! 2、本项目适合作为计算机、数学、电子信息等专业的课程设计、期末大作业和毕设项目,作为参考资料学习借鉴。 3、本资源作为“参考资料”如果需要实现其他功能,需要能看懂代码,并且热爱钻研,自行调试。 目标检测、CNNCBIR源码(数字图像处理课程项目).zip目标检测、CNNCBIR源码(数字图像处理课程项目).zip目标检测、CNNCBIR源码(数字图像处理课程项目).zip目标检测、CNNCBIR源码(数字图像处理课程项目).zip目标检测、CNNCBIR源码(数字图像处理课程项目).zip目标检测、CNNCBIR源码(数字图像处理课程项目).zip目标检测、CNNCBIR源码(数字图像处理课程项目).zip目标检测、CNNCBIR源码(数字图像处理课程项目).zip目标检测、CNNCBIR源码(数字图像处理课程项目).zip目标检测、CNNCBIR源码(数字图像处理课程项目).zip目标检测、CNNCBIR源码(数字图像处理课程项目).zip目标检测、CNNCBIR源码(数字图像处理课程项目).zip
资源推荐
资源详情
资源评论
收起资源包目录
目标检测、CNNCBIR源码(数字图像处理课程项目).zip (19个子文件)
code_20105
modules
__init__.py 0B
ImageFeatureVector
ImageFeatureExtract
CBIRDataset
ColourDifference
CNNCBIR
ObjectDetection
PatternDifference
SimpleCBIR
__init__.py 0B
wsgi.py 413B
urls.py 823B
settings.py 3KB
manage.py 557B
.gitmodules 863B
.gitignore 2KB
main
__init__.py 0B
tests.py 63B
admin.py 66B
apps.py 88B
upload_pic.py 5KB
models.py 60B
makecache.py 974B
urls.py 281B
get_pic.py 609B
README.md 3KB
views.py 179B
共 19 条
- 1
资源评论
土豆片片
- 粉丝: 1571
- 资源: 5636
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功