diff --git a/alpr_api.py b/alpr_api.py index 4818f42..8a07908 100644 --- a/alpr_api.py +++ b/alpr_api.py @@ -6,7 +6,7 @@ from time import sleep import ultimateAlprSdk from PIL import Image -from flask import Flask, request, jsonify +from flask import Flask, request, jsonify, render_template counter = 0 @@ -141,6 +141,10 @@ def create_rest_server_flask(): else: return jsonify({'error': 'Endpoint not implemented'}), 404 + @app.route('/') + def index(): + return render_template('index.html') + return app diff --git a/static/logo.webp b/static/logo.webp new file mode 100644 index 0000000..00c2116 Binary files /dev/null and b/static/logo.webp differ diff --git a/static/styles.css b/static/styles.css new file mode 100644 index 0000000..686cd2c --- /dev/null +++ b/static/styles.css @@ -0,0 +1,25 @@ +body { + font-family: 'Arial', sans-serif; + background-color: #f4f4f9; + margin: 0; + padding: 0; +} + +.container { + background: #fff; + padding: 20px; + border-radius: 10px; + box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); + max-width: 600px; + margin: auto; +} + +h1, h2 { + color: #333; +} + +pre { + background-color: #f8f9fa; + border: 1px solid #ddd; + border-radius: 5px; +} diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..926f7ab --- /dev/null +++ b/templates/index.html @@ -0,0 +1,93 @@ + + +
+ + +