diff --git a/week5/__pycache__/app.cpython-310.pyc b/week5/__pycache__/app.cpython-310.pyc new file mode 100644 index 0000000..24d9df1 Binary files /dev/null and b/week5/__pycache__/app.cpython-310.pyc differ diff --git a/week5/app.py b/week5/app.py new file mode 100644 index 0000000..ec3f222 --- /dev/null +++ b/week5/app.py @@ -0,0 +1,15 @@ +# This is a flask application that overlaps uploaded images and text on top of images laid out in a grid on the browser. + +from flask import Flask +from flask import request +from flask import render_template +import glob + +app = Flask(__name__) + +@app.route("/") +def overlap(): + images = glob.glob('./static/img/*.png') + print(images) + + return render_template("mosaic.html", images=images) diff --git a/week5/static/img/output00.png b/week5/static/img/output00.png new file mode 100644 index 0000000..2201ef9 Binary files /dev/null and b/week5/static/img/output00.png differ diff --git a/week5/static/img/output01.png b/week5/static/img/output01.png new file mode 100644 index 0000000..51e80af Binary files /dev/null and b/week5/static/img/output01.png differ diff --git a/week5/static/img/output02.png b/week5/static/img/output02.png new file mode 100644 index 0000000..490349b Binary files /dev/null and b/week5/static/img/output02.png differ diff --git a/week5/static/img/output03.png b/week5/static/img/output03.png new file mode 100644 index 0000000..3e0f8fa Binary files /dev/null and b/week5/static/img/output03.png differ diff --git a/week5/static/img/output04.png b/week5/static/img/output04.png new file mode 100644 index 0000000..2ab8259 Binary files /dev/null and b/week5/static/img/output04.png differ diff --git a/week5/static/img/output05.png b/week5/static/img/output05.png new file mode 100644 index 0000000..ad57967 Binary files /dev/null and b/week5/static/img/output05.png differ diff --git a/week5/static/img/output06.png b/week5/static/img/output06.png new file mode 100644 index 0000000..2e960fd Binary files /dev/null and b/week5/static/img/output06.png differ diff --git a/week5/static/img/output07.png b/week5/static/img/output07.png new file mode 100644 index 0000000..31da81b Binary files /dev/null and b/week5/static/img/output07.png differ diff --git a/week5/static/img/output08.png b/week5/static/img/output08.png new file mode 100644 index 0000000..dba82dd Binary files /dev/null and b/week5/static/img/output08.png differ diff --git a/week5/static/img/output09.png b/week5/static/img/output09.png new file mode 100644 index 0000000..8009b22 Binary files /dev/null and b/week5/static/img/output09.png differ diff --git a/week5/static/img/output10.png b/week5/static/img/output10.png new file mode 100644 index 0000000..7219802 Binary files /dev/null and b/week5/static/img/output10.png differ diff --git a/week5/static/img/output11.png b/week5/static/img/output11.png new file mode 100644 index 0000000..2cd23b2 Binary files /dev/null and b/week5/static/img/output11.png differ diff --git a/week5/static/img/output12.png b/week5/static/img/output12.png new file mode 100644 index 0000000..8dd6ea8 Binary files /dev/null and b/week5/static/img/output12.png differ diff --git a/week5/static/img/output13.png b/week5/static/img/output13.png new file mode 100644 index 0000000..e7597de Binary files /dev/null and b/week5/static/img/output13.png differ diff --git a/week5/static/img/output14.png b/week5/static/img/output14.png new file mode 100644 index 0000000..a3dd563 Binary files /dev/null and b/week5/static/img/output14.png differ diff --git a/week5/static/img/output15.png b/week5/static/img/output15.png new file mode 100644 index 0000000..84e3ffd Binary files /dev/null and b/week5/static/img/output15.png differ diff --git a/week5/templates/mosaic.html b/week5/templates/mosaic.html new file mode 100644 index 0000000..530a09f --- /dev/null +++ b/week5/templates/mosaic.html @@ -0,0 +1,21 @@ + +
+ + + + {% for image in images %}{% endfor %} + + \ No newline at end of file