small changes and fixes
This commit is contained in:
parent
76a01e4cd9
commit
6c579bb5fb
6 changed files with 21 additions and 16 deletions
|
@ -2,7 +2,7 @@ import os
|
|||
import cv2
|
||||
import logging
|
||||
import threading
|
||||
import LogstashLogging
|
||||
from compLib.LogstashLogging import Logging
|
||||
|
||||
from flask import Flask, Response
|
||||
|
||||
|
@ -51,7 +51,7 @@ class __Streaming:
|
|||
# self.__camera_stream = cv2.VideoCapture(0)
|
||||
self.__newest_frame = None
|
||||
self.__lock = threading.Lock()
|
||||
logging.info("Initialized vision")
|
||||
Logging.get_logger().info("Initialized vision")
|
||||
|
||||
def get_frame(self):
|
||||
"""
|
||||
|
@ -104,7 +104,7 @@ Streaming = None
|
|||
if BUILDING_DOCS == "false":
|
||||
# instantiate private class __Streaming
|
||||
Streaming = __Streaming()
|
||||
logging.info("created instance of streaming class")
|
||||
Logging.get_logger().info("created instance of streaming class")
|
||||
|
||||
|
||||
@app.route("/live")
|
||||
|
@ -134,7 +134,7 @@ def __start_flask():
|
|||
|
||||
:return:
|
||||
"""
|
||||
logging.info("starting flask server")
|
||||
Logging.get_logger().info("starting flask server")
|
||||
app.run(host="0.0.0.0", port=9898, debug=True, threaded=True, use_reloader=False)
|
||||
|
||||
|
||||
|
|
Reference in a new issue