尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證EdgeSentry: Edge Computer Vision Workplace Safety & Restricted Hazard Monitor — An industrial edge computer vision safety monitoring pipeline built for the OpenCV AI Competition 2026 (powered by AWS) that analyzes RTSP camera feeds at 30+ FPS to detect restricted danger-zone intrusions and PPE compliance violations.
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗Built for the OpenCV AI Competition 2026, powered by AWS, and entered for the Agentic Vision Award.
EdgeSentry watches the camera over an industrial robot cell and decides what to do about every person who steps inside the hazard zone: stop the robot, ask a supervisor, or keep monitoring. OpenCV 5 does the seeing. A tool-using agent on Amazon Bedrock does the deciding. Code guardrails veto any unsafe or unproven action. Evidence goes to S3, alerts go to SNS, and a supervisor closes the loop from the browser.
Live demo: https://jzyv7mljhphuteckul2lxqe77u0xbqev.lambda-url.us-east-1.on.aws/ (AWS Lambda, us-east-1; capped daily usage) Technical report: docs/TECHNICAL_REPORT.md · Evaluation data: docs/EVALUATION.json · Live agent trace: docs/TRACE_EXAMPLE.json
python scripts/evaluate.py)| What | Result |
|---|---|
| Bedrock agent, 10 live trials on the reference clip | 10/10 runs fully correct, 0 false stops, 0 missed stops, 0 fallbacks; median 8.7 s per decision run |
| Guardrails and controller in those trials | 4 unsafe actions blocked (logging a verified intrusion); 9/10 runs needed a nudge to resolve a skipped worker |
| Robustness sweep: noise, lighting ±30/+80, camera shift 3–8 px, 1° rotation, 2 fps, grouped/kneeling workers | 16 of 17 variants fully correct. The 1 failure is a vest at 8% brightness, which fails safe (an unneeded stop, never a missed one) |
| Ablation: no close-up re-inspection | 0.75 accuracy with 1 false stop on the reference clip |
| Ablation: no registration / lighting / group splitting | Misses a stop under lighting +30, camera shift 8 px, +80 lighting, grouped workers and rotation |
| Deployed Lambda (2048 MB), 5 warm runs per mode | OpenCV perception ~49 fps at 1280×720; fixed policy 0.2 s, Bedrock agent 7.3 s median; 4 evidence frames + 3 alerts per run |
The clip is synthetic, so ground truth is exact. That makes the evaluation reproducible, but it says nothing about real-world accuracy. See Limitations.
flowchart LR
U[Browser] -->|HTTPS| URL[Lambda Function URL]
URL --> L[AWS Lambda · Python 3.12<br/>OpenCV 5 perception + safety agent]
L -->|Converse API, tool use| BR[Amazon Bedrock<br/>Amazon Nova Pro]
L --> S3[(S3 evidence<br/>private · encrypted · 30-day expiry)]
L --> SNS[SNS alert topic<br/>KMS-encrypted]
L --> DDB[(DynamoDB<br/>daily usage cap)]
L --> CW[CloudWatch logs, EMF metrics,<br/>alarms, dashboard · X-Ray]
flowchart TD
R[get_scene_report<br/>OpenCV 5 tracks, dwell, coarse PPE] --> A{Bedrock agent}
A -->|inspect_worker| I[OpenCV close-up re-inspection<br/>2x upscale · HSV · morphology]
I -->|vest found / not found| A
A -->|stop · approval · log| G{Code guardrails}
G -->|allowed| X[S3 evidence + SNS alert]
G -->|blocked, with reason| A
A -->|stopped with workers unresolved| N[Controller nudge]
N --> A
X --> H[Supervisor: approve entry / stop robot]
A -.->|model unavailable, or it decided nothing| P[Fixed policy<br/>same tools, same guardrails]
A -.->|model left some tracks open| Q[Fixed policy finishes only those tracks]
Python 3.11+.
pip install -r requirements-dev.txt && pip install -e .
pytest -q # 54 tests, real OpenCV on synthetic frames
python scripts/serve_local.py # the web app at http://localhost:8080 (offline, fixed policy)
python scripts/evaluate.py # robustness sweep + ablations -> docs/EVALUATION.json
python scripts/evaluate.py --bedrock 10 # + live Bedrock agent trials (needs AWS credentials)
Deploy to your own AWS account (AWS CLI v2 and Python; no Docker, SAM or CDK needed):
AWS_REGION=us-east-1 ./infra/deploy.sh # builds the Linux package, deploys infra/template.yaml
AWS_REGION=us-east-1 [email protected] ./infra/deploy.sh # optional: email alerts
python scripts/live_check.py <AppUrl> --runs 5 # measure the deployed endpoint
AWS_REGION=us-east-1 ./infra/teardown.sh # delete everything
Amazon Bedrock model access for Amazon Nova Pro must be enabled in the account. Without it, the app still works: the fixed policy decides, and the page says so.
| Path | What it is |
|---|---|
edgesentry/detector.py | Clean-plate detector: phase correlation + ECC registration, lighting compensation, envelope differencing, Otsu, morphology, connected components, head-profile group splitting, close-up PPE inspection |
edgesentry/agent.py | Perception summary, agent tools, guardrails, Bedrock Converse loop with controller, fixed policy, evaluation |
edgesentry/service.py, lambda_function.py | Cloud service: S3/SNS delivery, CloudWatch EMF metrics, HTTP API, usage caps, supervisor decisions |
edgesentry/web/index.html | The web app (light/dark, no build step) |
edgesentry/synthetic.py | Industrial-cell scene renderer with exact ground truth |
infra/ | CloudFormation template, deploy and teardown scripts |
scripts/evaluate.py, scripts/live_check.py | Reproducible evaluation and live-endpoint measurement |
legacy-js/ | Earlier Node.js prototype, kept for history. Not part of this submission |
EdgeSentry is a decision-support and alerting layer. It is not a certified safety function and does not replace guards, light curtains, or safety PLCs (ISO 10218 / ISO 13849). It never fabricates a stop: every stop needs a verified intrusion plus a close-up confirmation. It never silently drops presence: unrecognised shapes are treated as people. Faces are not identified, and evidence frames expire after 30 days. More in the technical report.
MIT