Don't assume camera sizes

This commit is contained in:
Nicolas Mowen 2025-06-11 12:55:52 -06:00
parent 3aeb6b8440
commit 16ad0e5477
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ class CameraMaintainer(threading.Thread):
# leave room for 2 cameras that are added dynamically, if a user wants to add more cameras they may need to increase the SHM size and restart after adding them.
cam_total_frame_size += 2 * round(
(camera.detect.width * camera.detect.height * 1.5 + 270480) / 1048576,
(1280 * 720 * 1.5 + 270480) / 1048576,
1,
)

View File

@ -93,7 +93,7 @@ class AudioProcessor(util.Process):
if any(
[
conf.audio_transcription.enabled_in_config
conf.audio_transcription.enabled_in_config == True
for conf in config.cameras.values()
]
):