Retry borderline AI Port face detections on the paired source frame

Open
#237 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

This issue has not been assessed yet.

Description

What problem would this solve?

AI Port searches for faces on the analysis JPEG even when it has a larger snapshot of the same frame. On one recorded pass, YuNet found a 32.94 px face at confidence 0.882 on the 1600 px input. On the paired 1920 px image it measured 40.16 px, clearing the configured 40 px minimum. Paired sampler outputs

Proposed change

Keep the ordinary scan. When a candidate has one clear person owner and passes confidence and pose but fails only size or sharpness, check whether its enclosing rectangle on the paired source has enough pixels. Retry at most one eligible head region per scheduled scan. Require the usual quality checks, overlap with the original candidate and the same owner.

Evidence
Recorded passages Verified linked faces, stock → retry YuNet calls, stock → retry
10, including the pass that prompted the rule 1 → 2 107 → 108
24 separate passages from five cameras, rule frozen 2 → 2 294 → 294

The added face agreed with an independent detector at IoU 0.873. All 13 person tracks and 12 person events in the first cohort were preserved. The second cohort had no eligible size/blur failure. Simply increasing the analysis width to 1920 gained one face and lost another on an eight-clip comparison.

On Open Images validation photo 90191d5d074c6692, the face measures 33.86 px at analysis width 854 (score 0.926). One head-region check on the original 1024 px JPEG yields 40.68 px (0.927) and a linked face. Open Images

Frigate also searches the tracked person's region on the current frame. Double Take limits repeated attempts. The source-pixel check comes from the Keystone replay. Frigate · Double Take

Tested with the Intel image at a5f27f1, YuNet/SFace and 2 fps. Draft #238 is running on our home installation while we evaluate this approach. Gallery matching and dedup thresholds are tracked in #193.

Dominant language
Python
Stars
1k
Forks
114
Avg merge
1h 8m
Merged PRs (30d)
147

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from seeARMS/keystone

All issues in seeARMS/keystone

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.