In this project, I have integrated ML with Django web application. It will take an image as an input and will return detailed information about given image using VGG 16 model and wikipedia API
Optical Search image is an application that takes an image file as an input and returns results related to the image. In this we used Python language for backend and for designing purpose we used HTML, CSS, JQuery, JavaScripts and Bootstrap.
In this VGG16 model is used for detection and classification. VGG16 is a convolution neural Network model for Large-scale Image Recognition. The model achieves 92.7% top-5 test accuracy in ImageNet, which is a dataset of over 14 million images belonging to 1000 classes. The CNN Model predict the class label / category of the image.
After prediction it checks for Wikipedia whether there is any Wikipedia related to image or not. When there is Wikipedia related to image it shows the result that available on Wikipedia. When there is no Wikipedia details related to image this respond to user couldn’t find Wikipedia details.
By using Optical search we can learn more about an image in few second. It helps in reducing the amount of time taken to find similar images and information related image.
Software used :
- Visual Studio Code
- Jupyter Notebook
Backend :
- Python
- Django
- Tensorflow
- Keras – Deep Learning
- VGG16 – (DL model)
- Imagenet – Dataset
- No. of classes - 1000
- Wikipedia API (To get detailed information about predicted model)
Frontend :
- HML
- CSS
- JS
- JQuery
- Bootstrap
Database : SQLite
Front End of the projectThis is the front end of the project. Here user can search an image.
When user select an ImageThis looks like this when user search any image from the files.
Image During The Scanning ProcessAfter selecting image firstly it will scan the image then goes to database
Image After The ScanningAfter scanning the search result of image store in database and Wikipedia gives the information about the image i.e the name of the searched object and images related to the particular object.
The related images of the searched flower.
All information about the searched image is like as
Previous Search ResultsAll the previous search results are store in database which is also shown in this website
Database Snapshots:
- Download the code from github
- Download all above mentioned software dependencies
- Open downloaded folder inside terminal.
- Run following commands:
conda create --name envName django
conda activate envName
pip install tensorflow
pip install wikipedia
python manage.py makemigrations
python manage.py migrate
python manage.py runserver
Note: There is no VGG16 (mymodel.h5) file inside repository. You are expected to download weights by your own.
VISIT MY YOUTUBE CHANNEL FOR MORE DETAILS: https://youtu.be/D2t-P3zEeSk