-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
33 lines (23 loc) · 984 Bytes
/
Copy pathmain.py
File metadata and controls
33 lines (23 loc) · 984 Bytes
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
"""Thin entrypoint for the modular activity recorder application.
Install the default runtime with:
uv sync
Install the optional Hugging Face detector backend with:
uv sync --extra huggingface
Run the application with:
uv run whozbin
Configuration placeholders and detector selection live in `presence_recorder/config.py`.
For a static camera on a MacBook M3 Pro, the default OpenCV motion backend is the most
reliable zero-download option for record-on-activity behavior. The HOG and Hugging Face
backends remain available if you specifically want person classification instead.
"""
from __future__ import annotations
from presence_recorder.app import ActivityRecorderApp
from presence_recorder.config import build_config
from presence_recorder.logging_utils import configure_logging
def main() -> None:
config = build_config()
configure_logging(config.telegram)
app = ActivityRecorderApp(config)
app.run()
if __name__ == "__main__":
main()