Loading repository data…
Loading repository data…
iamgooold / repository
Computer vision-based face safety detection system for monitoring, recognition, and real-time security analysis.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
╔═══════════════════════════════════════════════════════════╗
║ ║
║ ██████╗ ███████╗████████╗███████╗ ██████╗████████╗ ║
║ ██╔══██╗██╔════╝╚══██╔══╝██╔════╝██╔════╝╚══██╔══╝ ║
║ ██║ ██║█████╗ ██║ █████╗ ██║ ██║ ║
║ ██║ ██║██╔══╝ ██║ ██╔══╝ ██║ ██║ ║
║ ██████╔╝███████╗ ██║ ███████╗╚██████╗ ██║ ║
║ ╚═════╝ ╚══════╝ ╚═╝ ╚══════╝ ╚═════╝ ╚═╝ ║
║ ║
║ AI Face Safety Detection System v1.0.0 ║
╚═══════════════════════════════════════════════════════════╝
Real-time sobriety & hazard detection — production-ready.
A microservice-based AI classification system that detects sobriety and safety hazards in real time using computer vision. Feed it a webcam stream or a static image — it returns a classified label and a confidence score.
Built for deployment. No fluff.
| Feature | Description |
|---|---|
| Live Webcam Inference | Real-time video stream classification |
| Image Upload | Static image analysis endpoint |
| Confidence Scoring | Per-prediction reliability metrics |
| Microservice Architecture |
| Decoupled API, model, and frontend layers |
| Fully Dockerized | One command to deploy anywhere |
┌─────────────────────────────────────────────────────────┐
│ LAYER TECHNOLOGY │
├─────────────────────────────────────────────────────────┤
│ Backend FastAPI (Python) │
│ AI Model TensorFlow / Keras CNN │
│ Processing OpenCV · PIL · NumPy │
│ Frontend Vanilla JS — Glassmorphism UI │
│ Deployment Docker │
└─────────────────────────────────────────────────────────┘
ai-face-safety-detection/
│
├── app/ # FastAPI routes & endpoint logic
├── model/ # Inference class + .h5 model storage
├── frontend/ # HTML / CSS / JS — Glassmorphism UI
├── utils/ # Preprocessing pipelines & model scripts
├── main.py # Application entry point
├── requirements.txt
└── Dockerfile
pip install -r requirements.txt
.h5)python utils/generate_dummy_model.py
python main.py
UI available at
http://localhost:8000
# Build image
docker build -t ai-safety-system .
# Run container
docker run -p 8000:8000 ai-safety-system
| Method | Endpoint | Description |
|---|---|---|
GET | / | Serve frontend UI |
POST | /predict/image | Upload image for classification |
GET | /predict/stream | Live webcam inference stream |
GET | /health | Service health check |
Sample response:
{
"label": "NORMAL",
"confidence": 0.9741,
"inference_time_ms": 38.2
}
Copyright 2026 Au Amores
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Built by Au Amores · v1.0.0 · Production Ready