Giter Club home page Giter Club logo

siqa's Introduction

IMAGE QUALITY ASSESSMENT

License: MIT

Jupyter Notebook HTML5 CSS3 Python JavaScript

Introduction

This is the website for a group-project aimed at assessing the quality of images using the subjective (rating-based) approach.

Our website https://siqa.pythonanywhere.com is currently live and reachable.

all-devices-black


Be VERY CAREFUL when you push anything to this repo, as the WEBHOOK THAT AUTOMATICALLY REFRESHES THE SERVER may be active at any time.


Other

IMPORTANT NOTICE (about flask, please read it)

Flask is the Python web-framework currently being used to develop the back-end of this website. It's simple and easy to use if you know some basic Python.

(But if anyone has any better proposals for a web framework in Python or Java, please notify the rest).

Linking Resources:

Flask requires a special syntax to link static resources to html-templates.

All of the static resources are to be placed in the 'static' folder, and eventually in sub-folders.

Example (linking a css file in html):

<link href="{{url_for('static', filename='stylesheets/general.css')}}" rel="stylesheet" type="text/css">

(This will tell flask to fetch general.css in the specified location within the static folder).

Links (hrefs):

Relative links to any part of this website must be specified according to the names defined in the python decorators for the methods in app.py.

Examples:

# this gets called when the homepage (plain web-address) is requested.
@app.route("/")
def on_index():
  pass

# this gets called when: webaddress/take_test is requested.
@app.route("/take_test")
def on_take_test():
   pass

More about flask:

https://flask-restful.readthedocs.io/en/latest/quickstart.html

(or Stackoverflow).

That's all, thank you for taking the time to read this!

SETTING UP A LOCAL TESTING ENVIRONMENT

1) Clone this repo

...and navigate to its root directory.

2) Create a python virtual environment

...calling it '.my_env'

(For gitignore-related reasons).

$ python3 -m venv .my_env

(You'll be prompted to install the 'venv' module if you don't have it yet).

3) Activate the virtual environment:

$ source ./my_env/bin/activate

If this command doesn't work try with:

$ . .my_env/bin/activate

(You should notice that the console starts displaying the virtual environment's name before your username and the dollar-sign).

4) Install this app's dependencies

... on the virtual environment you just created:

(.my_env)$ pip install -r requirements.txt

5) Run the app on localhost!

(.my_env)$ python3 -m flask run

Sample output:

 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: off
 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)

Click on the link, and the homepage will be launched on your default browser.

TIPS

To avoid a lot of frustration while debugging this, please try to turn caching off on your favourite browser:

siqa's People

Contributors

amatofrancesco99 avatar aiman-al-masoud avatar daniele-murer avatar francescomarins avatar andreiblindu avatar davide-lotito avatar theblackoreo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.