How yxshee/realtime-face-attendance works
Main Components
a) Input Layer:
• Camera Interface Module (represented by img_capture.py)
• Real-time Video Stream Handler
b) Processing Layer:
• Face Detection Module (using Haarcascade)
• Face Recognition Engine
• Image Processing Pipeline
• Training Module (shown by training.py and retrain.py)
c) Data Management Layer:
• Database System (indicated by init_db.sql)
• Image Organization System (organizeImages.py)
• Authentication System (admin_credentials.json)
d) System Core:
• Main Application Logic (system.py)
• Logging System (app.log)
┌─────────────────────────────────────────┐
• Input Layer │
• ┘
• ↓
┌─────────────────────────────────────────┐
• Face Detection Pipeline │
• ┌─────────┐ ┌─────────┐ │
• Haar │ → │OpenCV │ │
• Cascade │ │Processing│ │
• ┘ └─────────┘ │
• ┘
• ↓
┌─────────────────────────────────────────┐
• Recognition & Training │
• ┌─────────┐ ┌─────────┐ │
• Model │ → │Feature │ │
• Training │ │Extraction│ │
• ┘ └─────────┘ │
• ┘
• ↓
┌─────────────────────────────────────────┐
• Data Management Layer │
• ┘
Connection Types
• Double lines (═): Data persistence operations
Component Details
For each major component, include:
• Input/Output formats
• Key dependencies
• Processing steps
• Storage requirements
Performance Indicators
Annotations for:
• Expected processing times
• System requirements
• Scalability limits
• Resource usage
Integration Points
Clearly mark:
• External system interfaces
• API endpoints
• Database connections
• File system interactions