How rishabhshenoy03/eventlogger works
EventLogger is an Raspberry Pi presence-event application. Its main runtime captures camera frames, detects and matches faces, tracks presence changes, then queues events for formatting, file logging, and Telegram notification; a separate polling thread handles the bot. The headers also indicate subscriber management and persistence. The README is brief, and implementation excerpts are limited, so uncertain integration details are omitted or shown as unverified.
Main entry points: main.cpp Runtime coordinator · Event.hpp Event records · PresenceTracker.cpp Presence tracking · FaceProcessor.cpp Face processing
Components 15
Face recognition
- Camera capture
src/CameraCapture.cpp - Face processing
src/FaceProcessor.cpp - Face models
models/face_detection_yunet_2023mar.onnx - Face registry
src/FaceRegistry.cpp
Presence events
- Person types
src/person_types.cpp - Presence tracking
src/PresenceTracker.cpp - Event records
include/Event.hpp - Archived fake sensor
archive/fake_sensor.cpp
Event delivery
- Event queue
src/EventQueue.cpp - Event logger
src/Logger.cpp - Event log file
Telegram bot
- Telegram notifier
src/TeleNotifier.cpp
Other components
- Runtime coordinator
src/main.cpp - Camera
- Telegram service
Connections 17
- Runtime coordinator → Camera capture: captures frames
src/main.cpp - Camera → Camera capture: provides frames
- Runtime coordinator → Face processing: detects and extracts
src/main.cpp - Face processing → Face models: uses models
- Runtime coordinator → Face registry: matches faces
src/main.cpp - Face registry → Face processing: uses processor
- Runtime coordinator → Presence tracking: updates presence
src/main.cpp - Presence tracking → Person types: uses matches
- Presence tracking → Event records: creates events
- Runtime coordinator → Event queue: queues events
src/main.cpp - Event queue → Event records: stores events
- Runtime coordinator → Event logger: formats and logs
src/main.cpp - Event logger → Event records: formats events
- Runtime coordinator → Event log file: opens log
src/main.cpp - Runtime coordinator → Telegram notifier: sends notifications
src/main.cpp - Telegram notifier → Telegram service: polls and notifies
- Archived fake sensor → Event records: produces events