7xz

work / zone-alert

Context-Aware Zone Alert

Alerts on a zone intrusion only when a person is present alongside the target, cutting the false alarms that animals and the environment cause.

Year
2025
Category
tools
Stack
Python 3.11 · YOLOv8 · OpenCV · PyTorch/CUDA
Status
shipped

Something I made in 2 hours for a school assignment.

An alert built on single-object detection fires easily on animals, lighting changes, and shadows. Watch a zone overnight and the alert goes off dozens of times, so eventually no one looks.

The judgment it needs is not “something entered the zone” but “a person is in a position to touch the object in this zone.”

How it works

The alert triggers only when a target (a phone, a bottle, a cup) and a person are detected in the same frame at the same time. Either one alone is ignored. The zone is drawn by dragging with the mouse while it runs, and an auto-latch (3 seconds by default) keeps the alert up if the target briefly leaves the frame. It uses CUDA when a GPU is present and falls back to CPU otherwise.

Adding a person class to a single-class baseline that had many night-time false positives, and gating the two detections with AND, cut the false positives noticeably. A privacy-blur mode and automatic GPU/CPU fallback are in as well.

Where it stands

The co-presence gate alone cut environmental false positives (animals, lighting, shadows) substantially. No quantitative benchmark was run. It runs in real time on a 1080p webcam and works without a GPU. Control while it runs is by keyboard: drag to set the zone, S to start, R to reset, P for privacy, Q to quit.

esc
  • Pages

    • Home page
    • Work page
    • Log page
    • About page
    • Now page
    • Colophon page
    • Search page
    • lab · live neural network page
  • Work

    • 7xz Lab 2026 · live work
    • Neural network foundational theory 2026 · research work
    • Context-Aware Zone Alert 2025 · shipped work
    • FORA 2026 · shipped work
    • Discord Components V2 Reference 2026 · reference work
    • News Credibility Auditor 2025 · archived work
  • Log

    • AI 딥보이스 탐지 대회 참가 기록, DACON 2026.09.29 · research log
    • 이론적 아름다움과 유체역학으로 가지치기를 시도, NavierFlow 2026.05.18 · research log
    • AI STT앱 개발 시도기, Project L mate 2026.03.04 · project log
    • 포트폴리오 사이트 구축기 2025.11.30 · project log
  • Actions

    • Toggle theme action
    • Toggle content language (KR / EN) action
    • Search everything action