윤영준 윤영준 05-22
working with postprocessing module
@d9ad2adf7eeea016005dc11d60cf5ed7d506f666
 
.gitignore (added)
+++ .gitignore
@@ -0,0 +1,1 @@
+/hls_streaming/captured_frame_/
inference_endpoint.py
--- inference_endpoint.py
+++ inference_endpoint.py
@@ -135,4 +135,4 @@
 
 
 if __name__ == '__main__':
-    app.run(debug=True, port=12345)
+    app.run(debug=False, port=12345)
postprocess_draft_pingpong.py
--- postprocess_draft_pingpong.py
+++ postprocess_draft_pingpong.py
@@ -1,4 +1,6 @@
 from flask import Flask, request, jsonify
+import psycopg2
+
 
 app = Flask(__name__)
 
@@ -30,6 +32,12 @@
 }
 
 
+def check_thres():
+    # call database
+    # check threshold
+    # return resulting value
+    pass
+
 # Function to check if there are 5 consecutive failures
 def check_consecutive_failures(source, status_list):
     if len(status_list) >= 5 and status_list[-5:] == ['FAIL'] * 5:
Add a comment
List