Skip to content

SA-Tester/Martian-Poster-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Martian Poster Generator

A Project by Refused Warriors for NASA Space Apps 2022

Key Features

  1. Greyscale to coloured image conversion (Image Source: NASA Mars API)
  2. Informative poster generation based on user inputs(Data Sources: NASA Open Data catalogues, Wikipedia)

Deploying the Application in your local machine

1. Install latest python version from https://www.python.org/downloads/ 2. Install tensorflow, numpy, matplotlib, wordcloud, newspaper, PIL, skimage, mysql.connector and flask modules using pip

  • Intall Tnesorflow - pip install tensorflow
  • Install Numpy - pip install numpy
  • Install Matplotlib - pip install matplotlib
  • ... and so on
  1. Install mysql server using https://www.mysql.com/downloads/
  2. Restore the DB structure in DB folder to your machine
  • Enter to mysql console: mysql -u[username] -p[password]
  • Create a database named MarsImagery: create database MarsImagery;
  • Exit from the mysql console: quit
  • Restore the .sql file: mysql -u[username] -p[password] MarsImagery < [local path to backupfile]
  1. Open a command line and navigate to the folder where the file "marsapp.py" is in
  2. Run the command flask --app marsapp run
  3. In a browser enter the URL 127.0.0.1:5000 (usually) to view the content

NOTE: Make sure your run the mysql service allowing the app to connect with the database