forked from Github/frigate
use a queue for logging
This commit is contained in:
@@ -5,6 +5,7 @@ import time
|
||||
import copy
|
||||
import cv2
|
||||
import threading
|
||||
import logging
|
||||
import queue
|
||||
import copy
|
||||
import numpy as np
|
||||
@@ -17,6 +18,8 @@ from frigate.config import CameraConfig
|
||||
from typing import Callable, Dict
|
||||
from statistics import mean, median
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
PATH_TO_LABELS = '/labelmap.txt'
|
||||
|
||||
LABELS = load_labels(PATH_TO_LABELS)
|
||||
@@ -366,7 +369,7 @@ class TrackedObjectProcessor(threading.Thread):
|
||||
def run(self):
|
||||
while True:
|
||||
if self.stop_event.is_set():
|
||||
print(f"Exiting object processor...")
|
||||
logger.info(f"Exiting object processor...")
|
||||
break
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user