How to use our model?
You can simply access our project website here.
After visiting there, you can hover your mouse over the “Project” section to see our project.
You can choose any particular project you want to visit and explore:)
All the steps to use are completely user-friendly so it isn’t difficult at all.
Now, if you want to test the models locally in your computer you can follow the upcoming steps.
For Air Quality Index Model
You can download the model directly from here.
Once you install it, please install a few libraries (make sure to have an internet connection), to do so , you may run these following commands in your command prompt:
Python
pip install numpy pip install joblib |
Once, you’re done, create a new python file and run this following code:
Python
import numpy import joblib #The inputs ( Please change these inputs to get your results) yr = 2023 hr = 16 mnth = 9 day = 1 inpArray = numpy.array([[hr,day,yr,mnth]]) # You may change the model directory if you want model = joblib.load( "airQualityModel.pkl" ) print (model.predict(inpArray)) |
make sure to keep airQualityModel.pkl near your python script, else you can even mention your custom path.
Hope you like our model:)
For Satellite Image Classification
You can download the model from here.
Once you install it, please install a few libraries (make sure to have an internet connection), to do so , you may run these following commands in your command prompt:
Python
pip install tensorflow pip install numpy |
Once, you’re done, create a new python file and run this following code:
Python
import numpy from tensorflow.keras.models import load_model from tensorflow.keras.preprocessing import image model = load_model( "SuperImpModel.h5" ) img = image.load_img( "ChangeThisToYourImgPath" , target_size = ( 224 , 224 )) x = image.img_to_array(img) x = numpy.expand_dims(x, axis = 0 ) x = x / 255.0 preds = model.predict(x) print (preds) #the outputs are in this following order #agriculture ,mine,empty,blooming ,blow,clear,cloudy,convolutionary Mine,cultivation,deforestation,haze,partlyCloudy,primary,road,logging,pollution,water # For example the first element in this list is the probability of agriculture |
make sure to keep SuperImpModel.h5 near your python script, else you can even mention your custom directory.
Hope you like our model:)
EcoSight : An Ecotech Geek-A-Thon project, One step towards sustainability
Introducing the EcoSight Analytics by our team for the w3wiki EcoTech Hackathon. Our project combines a carbon footprint calculator, emission reduction tips, satellite image classification, and air quality index analysis empowering users to make informed decisions for a sustainable future. With interactive visualizations and a technology stack including Python, Django, and HTML, CSS, JavaScript for our project, it promotes greener lifestyles and fosters global environmental awareness. You can test it here.
Table of Content
- Problem Statement
- Overall Steps
- Carbon Footprint Calculator
- Satellite Image Classification:
Air Quality Index of India- Key Findings
- How to use our model?