Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ksdkamesh99/reverse-image-search
It is a replication of google image search engine for finding similar images in our database using artificial intelligence. It is a project which uses cosine distance or finding the similarity which is an amazing application of cosine similarity.
https://github.com/ksdkamesh99/reverse-image-search
ajax cosine-distance cosine-similarity deep-learning flask image-search-engine jquery vgg16
Last synced: 3 months ago
JSON representation
It is a replication of google image search engine for finding similar images in our database using artificial intelligence. It is a project which uses cosine distance or finding the similarity which is an amazing application of cosine similarity.
- Host: GitHub
- URL: https://github.com/ksdkamesh99/reverse-image-search
- Owner: ksdkamesh99
- License: mit
- Created: 2020-06-28T18:03:39.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-30T03:25:30.000Z (over 4 years ago)
- Last Synced: 2024-11-02T12:33:58.532Z (3 months ago)
- Topics: ajax, cosine-distance, cosine-similarity, deep-learning, flask, image-search-engine, jquery, vgg16
- Language: Jupyter Notebook
- Homepage:
- Size: 15.9 MB
- Stars: 18
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# π Reverse-Image-Searchπ
[![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://forthebadge.com)
[![forthebadge](https://forthebadge.com/images/badges/made-with-python.svg)](https://forthebadge.com)[![forthebadge](https://forthebadge.com/images/badges/its-not-a-lie-if-you-believe-it.svg)](https://forthebadge.com)
[![forthebadge](https://forthebadge.com/images/badges/built-by-developers.svg)](https://forthebadge.com)
## Table of Content
* [Demo](#demo)
* [Overview](#overview)
* [Motivation](#motivation)
* [Technical Aspect](#technical-aspect)
* [Installation](#installation)
* [To Do](#to-do-in-future-)
* [Bug / Feature Request](#bug---feature-request)
* [Technologies Used](#technologies-used)
* [License](#license)
* [Contact](#contact-)## Demo
![](demos.gif)## Overview
It is a replication of google image search engine for finding similar images in our database using artificial intelligence. It is a project which uses cosine distance or finding the similarity which is an amazing application of cosine similarity.
## Motivation
When we are searching some thing in google there is a option in right of search bar i.e image search. When I noticed it I started thinking of its working and researched and started a project similar to it using deep learning.
## Technical Aspect
1. Firstly I collected images of 6 types of fruits.Dataset contains arount 1157 images.I am providing the link of the dataset [here](https://drive.google.com/drive/folders/1RFnObzTjFsrGVOzpw6q_WYQQJoehglA2?usp=sharing).
2. Now I used pretrained VGG16 model and excluding the last output layer and collected the feature vectors of all the images.
3. Then we need to take a query image and collect the feature vector similarly as said in step 2.
4. Now I calculated the the cosine distance from query features to collected feature vector and sorted it.
5. According to cosine similarity, lesser the distance more the similarity.
6. Then using ajax and flask deployed it to the development server.
## Installation
1. If you like my project do ππ my repository.2. Clone my repository by using following command in terminal/Command Prompt.
```sh
https://github.com/ksdkamesh99/Reverse-Image-Search.git
```3. Install the Packages:
```sh
pip install -r requirements.txt
```4. At last, push in the command:
```sh
python app.py
```5. Go to ` http://127.0.0.1:5000/` and enjoy the application.
## To Do in future:-
1. UI of website need to be improved.2. Need to add some more images in the dataset so as to improve the accuracy.
## Bug / Feature Request
If you find a bug (gave undesired results), kindly open an issue [here](https://github.com/ksdkamesh99/Reverse-Image-Search/issues/new/) by including your search query and the expected result.If you'd like to request a new function, feel free to do so by opening an issue [here](https://github.com/ksdkamesh99/Reverse-Image-Search/issues/new/). Please include sample queries and their corresponding results.
## Technologies Used
[](https://keras.io/api/applications/) [](https://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.distance.cosine.html)
[](https://flask.palletsprojects.com/en/1.1.x/)
## License
MIT License
Copyright (c) 2020 Kota Sai Durga Kamesh
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.## π§Contact:-
For any kind of suggesstions/ help in code Please mail me at [email protected].