Skip to main content

Sentinel Vision: YOLO Video Detector

This project includes a native desktop application for Windows. It runs video inference locally with a modern CustomTkinter interface and does not require a browser or a local web server.

This application supports exactly three processing modes:

  • Model 1: uses models/best1.pt | best_aug_cv_2.pt only.
  • Model 2: uses models/best2.pt | best_cv_5 only.
  • Ensemble: runs best1.pt and best2.pt on the same frame and combines their predictions with Weighted Box Fusion.

The ensemble is logic, not a third model file.

Dataset classes

The supplied data.yaml defines:

  • 0 = mask
  • 1 = spectacle
  • 2 = helmet
  • 3 = balaclava

These classes are allowed to overlap in the initial configuration. No global cross-class suppression is applied because, for example, a helmet and spectacle can legitimately appear in the same region.

Run the desktop application

  1. Put the trained weights in models/:
models/best1.pt
models/best2.pt
  1. Create a virtual environment and install packages:
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
  1. Start the desktop application:
python app.py

Select a video, choose Model 1, Model 2, or Ensemble, and press Analyze video. The result is previewed inside the application and saved in outputs/.

Run the legacy web application

The original browser interface remains available when needed:

python app.py --web

Then open http://127.0.0.1:5000.

On a Raspberry Pi, access it from another device using the Pi's LAN IP, for example:

http://192.168.1.50:5000

Raspberry Pi tuning

config.py contains the main tuning controls.

Start with:

FRAME_SKIP = 1

If inference is too slow on the Pi, try 2, 3, or 5. Skipped frames reuse the last detection result, so the output video remains annotated while the detector runs less frequently.

The current statistics count detection occurrences across analyzed frames, not unique physical objects. Unique-object counting requires an object tracker and should be added separately.

Metadata

Release files for shsk-suspiciousness 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shsk-suspiciousness 1.0.6
File Size Uploaded
shsk_suspiciousness-1.0.6.tar.gz 9.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for shsk-suspiciousness 1.0.6
File Interpreter ABI Platform
shsk_suspiciousness-1.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 19.2 MB

Release files / shsk_suspiciousness-1.0.6.tar.gz

Download URL shsk_suspiciousness-1.0.6.tar.gz
Size 9.6 MB
Tags Source
SHA-256 checksum
How to use checksums
50a32dab188f9bbb99220ed9beb61d9ea5ef3eb577fbb7454f5a8757ea7f2a4b
BLAKE2b-256 checksum
How to use checksums
97958110acc02b434c20f84da34095dc310a66fce38beccfe3bd11ef869af439
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / shsk_suspiciousness-1.0.6-py3-none-any.whl

Download URL shsk_suspiciousness-1.0.6-py3-none-any.whl
Size 9.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
744fc0c351c1f9ec10786f9a3b3373c8085c9edad0915dc99679080eceb0f88e
BLAKE2b-256 checksum
How to use checksums
ac3722191dc0c1f9a268826d9d614f86510965df5c3e0243f37f26fe68475291
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release history Release notifications | RSS feed

1.0.7

2 release files

This release

1.0.6 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page