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.ptonly. - Model 2: uses
models/best2.pt|best_cv_5only. - Ensemble: runs
best1.ptandbest2.pton 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
- Put the trained weights in
models/:
models/best1.pt
models/best2.pt
- Create a virtual environment and install packages:
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
- 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.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| shsk_suspiciousness-1.0.7.tar.gz | 9.6 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| shsk_suspiciousness-1.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.2 MB
Release files / shsk_suspiciousness-1.0.7.tar.gz
| Download URL | shsk_suspiciousness-1.0.7.tar.gz |
|---|---|
| Size | 9.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d740e5af67e02f5b526ea65e074a1563062e14525b8cd82e65123af7b20ef607
|
|
BLAKE2b-256 checksum How to use checksums |
7403655448380b958b2df4c46a70efdd443a5e40c8e25e20b61dfce97bed6737
|
| 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.7-py3-none-any.whl
| Download URL | shsk_suspiciousness-1.0.7-py3-none-any.whl |
|---|---|
| Size | 9.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d4115075321874180edf8b9bfc633c94bc6c22e4a12cede586650d4c42415b2
|
|
BLAKE2b-256 checksum How to use checksums |
a97661fdef24d2bb8e3763c3a537efab22f97a3e71a87f199f6045bd5af16059
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|