您的位置:首页 > 运维架构

开源图像检索项目PicSearch is now an open source project

2016-03-11 13:01 716 查看


Brief introduction

PicSearch is an image search engine based on Convolutional Neural Network (CNN) feature. It's a very simple demo and it just
showes the performance of CNN for image retrieval. The demo site can access todemo.
点击查看演示视频


Download the code and dataset

The PicSearch is running on Caltech256 image dataset, which contains 29780 images with 256 categories. Before running the project, you must download the following code and dataset:
PicSearch code.
The features extract by CNN on Caltech256 256feat2048Norml.mat.
The thumbnails of Caltech256. The thumbnails
are just for showing the search result, you can replace it by the original image dataset.
Note: to test it on other dataset, you must extract the features first. You can use CNN-for-Image-Retrievalto
extract features on other dataset.


How to run the code

The code is written by Python, and the web server is cherrypy, so It's very easy to understand the code and to run the code. The structure of PicSearch is
as follows:

├── 256feat2048Norml.mat
├── bootstrap
├── favicon.ico
├── searchEnginePython.py
├── service-server.conf
├── service.conf
├── style.css
└── thumbnails


To run the code successfully, You are suggested to following the below steps:
set the setting in 
service.conf
:

[global]
server.socket_host = "127.0.0.1"
server.socket_port = 8080
server.thread_pool = 10
tools.sessions.on = True

[/]
tools.staticdir.root = "I:\PicSearch"

[/]
tools.staticdir.on = True
tools.staticdir.dir = ''


Changes the path of 
tools.staticdir.root
 to
your path.
run the server:

python searchEnginePython.py


Then open your browse and put the site: 127.0.0.1.
That's all. Enjoy yourself! If you have problem, you can open an issue on CNN-Web-Demo-for-Image-Retrieval.

from: http://yongyuan.name/blog/picsearch-is-now-an-open-source-project.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息