Skip to content

Commit 5f39bc9

Browse files
Merge pull request #2 from FlyingFathead/webserver-waitress
v0.1621 **Web server updates:** - Switched to use `waitress` (`pip install -U waitress` or use the `requirements.txt`) - `waitress` = better threading and multitasking with `Flask` - MJPEG preview quality in webUI previews now configurable from `config.ini` => under `[webserver]` => `mjpeg_quality` - webui improvements: detections are now categorized under date headers for improved readability
2 parents 83df70c + eac18dc commit 5f39bc9

File tree

7 files changed

+1751
-52
lines changed

7 files changed

+1751
-52
lines changed

.catgitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LICENSE
55
yolo_detections/**
66
old/
77
old/**
8-
#utils/
9-
#utils/**
8+
utils/
9+
utils/**
1010
examples/
1111
examples/**

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,13 @@ Use `utils/batch_humdet_yolo8_opencv2.py` to run YOLOv8 batch detection on direc
284284
- Add hooks for sending detections to web servers or APIs
285285
286286
## Changelog
287+
- **v0.1621**
288+
**Web server updates:**
289+
- Switched to use `waitress` (`pip install -U waitress` or use the `requirements.txt`)
290+
- `waitress` = better threading and multitasking with `Flask`
291+
- MJPEG preview quality in webUI previews now configurable from `config.ini`
292+
=> under `[webserver]` => `mjpeg_quality`
293+
- webui improvements: detections are now categorized under date headers for improved readability
287294
- **v0.1620**
288295
- Disabled telemetry in Ultralytics modules by default
289296
- Added a printout on startup to display Ultralytics settings

config.ini

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ headless = False
1010
# default_conf_threshold = 0.7
1111
default_conf_threshold = 0.5
1212
# Default model variant to use
13-
# for yolov8
13+
# (for yolov8 \/)
1414
# default_model_variant = yolov8m
15-
# we're using YOLOv11 atm; you can roll back to v8 if needed
15+
# (we're using YOLOv11 atm; you can roll back to v8 if needed \/)
1616
default_model_variant = yolo11m
1717

1818
[hardware]
@@ -130,14 +130,17 @@ webserver_port = 5000
130130
# Note that especially on higher resolutions, high FPS's may introduce
131131
# computational overhead where the stream starts to lag.
132132
# the max fps applies to mjpeg only
133-
webserver_max_fps = 5
133+
webserver_max_fps = 1
134134
# interval checking for webUI connections true/false
135135
interval_checks = true
136136
# check interval in seconds for active connections
137137
check_interval = 15
138138
# NEW setting to pick preview type (default: mjpeg)
139139
# available types: mjpeg, hls
140140
preview_method = mjpeg
141+
# Quality for MJPEG stream (1-100, lower means less bandwidth but lower quality)
142+
# This ONLY affects the /video_feed MJPEG stream, not saved images or source.
143+
mjpeg_quality = 25
141144

142145
[hls]
143146
# these are for HLS streams if you choose HLS as your preview type

0 commit comments

Comments
 (0)