Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ import time
|
|
3 |
from video_processing import process_video
|
4 |
from PIL import Image
|
5 |
import matplotlib
|
|
|
6 |
matplotlib.rcParams['figure.dpi'] = 500
|
7 |
matplotlib.rcParams['savefig.dpi'] = 500
|
8 |
|
@@ -14,7 +15,7 @@ def process_and_show_completion(video_input_path, anomaly_threshold_input, fps,
|
|
14 |
|
15 |
if isinstance(results[0], str) and results[0].startswith("Error"):
|
16 |
print(f"Error occurred: {results[0]}")
|
17 |
-
return [results[0]] + [None] *
|
18 |
|
19 |
exec_time, results_summary, df, mse_embeddings, mse_posture, \
|
20 |
mse_plot_embeddings, mse_histogram_embeddings, \
|
|
|
3 |
from video_processing import process_video
|
4 |
from PIL import Image
|
5 |
import matplotlib
|
6 |
+
import cv2
|
7 |
matplotlib.rcParams['figure.dpi'] = 500
|
8 |
matplotlib.rcParams['savefig.dpi'] = 500
|
9 |
|
|
|
15 |
|
16 |
if isinstance(results[0], str) and results[0].startswith("Error"):
|
17 |
print(f"Error occurred: {results[0]}")
|
18 |
+
return [results[0]] + [None] * 19
|
19 |
|
20 |
exec_time, results_summary, df, mse_embeddings, mse_posture, \
|
21 |
mse_plot_embeddings, mse_histogram_embeddings, \
|