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

来源:互联网 发布:税务申报软件 编辑:程序博客网 时间:2024/05/22 07:09

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:

  1. PicSearch code.
  2. The features extract by CNN on Caltech256 256feat2048Norml.mat.
  3. 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 = 8080server.thread_pool = 10tools.sessions.on = True[/]tools.staticdir.root = "I:\PicSearch"[/]tools.staticdir.on = Truetools.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
0 0
原创粉丝点击