-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.ini
62 lines (55 loc) · 1.94 KB
/
config.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[general]
# Default confidence threshold (above which to alert)
default_conf_threshold = 0.7
# Default model variant to use
default_model_variant = yolov8m
[input]
use_webcam = false
webcam_index = 0
[stream]
# Stream URL to read the detection from
# (Default RTMP stream URL)
stream_url = rtmp://127.0.0.1:1935/live/stream
[detection]
# Draw rectangles around detection areas (True/False)
draw_rectangles = True
# Save detections as images (True/False)
save_detections = True
# Image format if saving to images enabled
# Options: 'jpg', 'png'
image_format = jpg
# Directory to save detections to
# Set this to True to use the environment-specified save directory
use_env_save_dir = True
# Name of the environment variable, if set to `true`
env_save_dir_var = YOLO_SAVE_DIR
# Directory to save detection images if we're not using an env var
default_save_dir = ./yolo_detections/
# Directory to use as a fallback if the environment-specified directory isn't available
fallback_save_dir = ./yolo_detections/
# Create date-based sub-directories (detections_directory/year/month/day/)
create_date_subdirs = True
# Retry delay if stream cannot be connected
# Delay in seconds before retrying to connect to the stream
retry_delay = 2
# Maximum number of retries to connect to the stream
max_retries = 10
# Rescale the input frames (True/False)
rescale_input = False
# Target height for rescaling the frames if RESCALE_INPUT is enabled
target_height = 1080
# Toggle denoising on/off (True/False)
denoise = False
# Use a custom processing FPS (i.e., drop the frame rate for the inbound material)
use_process_fps = False
# If custom processing FPS is enabled, processing frames per second
process_fps = 15
# Timeout in seconds, increase for handling larger bitrate streams
timeout = 60
# Cooldown period for TTS announcements in seconds
tts_cooldown = 2
[logging]
enable_detection_logging_to_file = True
log_directory = ./logs
log_file = logging.log
detection_log_file = detections.log