Android app using WebView of Flask WebApp
Screenrecorder-2022-09-05-21-01-23-540.mp4
Desktop.2022.09.05.-.21.49.52.03.mp4
- Clone The Repo and open
website
directory - download and extract zip file at (https://drive.google.com/file/d/1-P5NVywbdFcT5XCCxSS1RsDtGiZflblF/view?usp=sharing)
- place features.pkl , image_caption_RNN_LSTM_model.h5 , vgg16_feature_extractor.h5 into
working
folder insidewebsite
directory - Install Python requirements
pip install -r requirements.txt
- Start the server for development
python app.py
orpython3 app.py
- Clone The Repo and open Android Studio inside the
android
folder - Android Studio will sync the gradle
- Make Sure to run the flask WebApp (
python app.py
) - change variable
URL
inMainActivity
from "http://192.168.1.2:5000/" to the generated URL and then run the app on Emulator
- We Have used a Combination of pretrained CNN model (VGG-16) With only its feature extraction dense layers while removing the classification layer
- And We Have used a Custom RNN (LSTM) Model to generate image captions
- This Dataset was used in generation of RNN(LSTM) model for this project(https://www.kaggle.com/datasets/adityajn105/flickr8k)
- CNN (VGG-16) Model extracts features from images
- RNN (LSTM) Model gives final caption output based on features
- The training jupyter notebook and model files can be downloaded from (https://drive.google.com/file/d/1-P5NVywbdFcT5XCCxSS1RsDtGiZflblF/view?usp=sharing)
- Custom RNN(LSTM) Model Visualized
- Pretrained (VGG-16) Model with last 2 layers removed Visualized