diff --git a/examples/ratio_pyrometry_legend.py b/examples/ratio_pyrometry_legend.py
deleted file mode 100644
index 908621c..0000000
--- a/examples/ratio_pyrometry_legend.py
+++ /dev/null
@@ -1,7 +0,0 @@
-import ratio_pyrometry
-
-@jit(nopython=True)
-def normalization_func_customizable(i, I_Darkcurrent, ISO, f_stop, exposure_time):
- return (i - I_Darkcurrent) * (f_stop ** 2) / (ISO * exposure_time)
-
-
diff --git a/flask_frontend.py b/flask_frontend.py
index af7bcbc..7f85205 100644
--- a/flask_frontend.py
+++ b/flask_frontend.py
@@ -3,7 +3,6 @@ from werkzeug.utils import secure_filename
import numpy as np
from ratio_pyrometry import ratio_pyrometry_pipeline
import base64
-import random
import cv2 as cv
app = Flask(
@@ -12,9 +11,6 @@ app = Flask(
static_url_path='/s/'
)
-app.config['STATIC_FOLDER'] = './static'
-app.config['STATIC_URL_PATH'] = '/s'
-
@app.route('/', methods=['GET'])
def index():
return render_template('index.jinja2')
@@ -30,7 +26,9 @@ def ratio_pyro():
exposure_time=float(request.form['exposure_time']),
f_stop=float(request.form['f_stop']),
MAX_TEMP=float(request.form['max_temp']),
- MIN_TEMP=float(request.form['min_temp'])
+ MIN_TEMP=float(request.form['min_temp']),
+ smoothing_radius=int(request.form['smoothing_radius']),
+ key_entries=int(request.form['legend_entries'])
)
img_orig_b64 = base64.b64encode(cv.imencode('.png', img_orig)[1]).decode(encoding='utf-8')
diff --git a/ratio_pyrometry.py b/ratio_pyrometry.py
index 215d490..933a428 100644
--- a/ratio_pyrometry.py
+++ b/ratio_pyrometry.py
@@ -70,7 +70,9 @@ def ratio_pyrometry_pipeline(
ISO: float,
# pyrometry config
MAX_TEMP: float,
- MIN_TEMP: float
+ MIN_TEMP: float,
+ smoothing_radius: int,
+ key_entries: int
):
# read image & crop
diff --git a/templates/index.jinja2 b/templates/index.jinja2
index 3923677..54623f6 100644
--- a/templates/index.jinja2
+++ b/templates/index.jinja2
@@ -15,15 +15,15 @@
-
+
-
+
-
+
Color | -Temperature | +Color | +Temperature |
---|---|---|---|
+ | {{ temp }}°C |