Urgent.News

What's breaking now, across thousands of outlets.

Tech

A Detector That Never Fires Scores Perfect on False Positives

Originally published on hexisteme notes . Two rework incidents this week had the identical shape: a label chip rendered on top of the exact thing the episode was about. In one episode, chile , a ruler's label chip covered the ruler's own body and tick marks — the episode's conclusion rested on comparing the length of two rulers, and the horizontal one wasn't visible anywhere in the frame. In…

Two incidents earlier this week featured identical shapes: a label chip on top of the subject matter and a tick mark covering the ruler itself. In the first case, the horizontal ruler was not visible in the frame. In the second, a narrow corridor in Indian territory was severed by a scene label chip, which was the focus of the episode.

Despite thorough testing, the third attempt at an automatic detection system failed, just like the previous three. The source material reports that this detector, unlike the others, succeeded in passing schema validation, compliance gates, and regression tests. The issue was not a malfunctioning check but a lack of a test to determine if the check was working.

Three previous detectors were discarded due to the same underlying problem. The first detector checked a safe area at the four edge extremes of the frame, but since both defects were centered, the extremes never changed. The second detector counted a focus-color run around the label, but all six definitions failed to identify the defect correctly.

The third detector isolated the amber-colored label blob and checked its glyph, flagging 91% of frames as false positives. The issue was identified as a missing receipt of the renderer's output. The renderer knew precisely where it had drawn each element, but this information was discarded when the pixels were saved to disk. The fix involved making the renderer log its own output, which allowed for accurate overlap detection based on bounding box intersections.

The repository had a rule to measure retroactive false positives before implementing any fixes, which was successfully applied to this situation.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Error Handling Patterns That Actually Scale

Start With the Problem Error handling is one of those things that seems trivial until it bites you. Early in my career, I wrote code that checked for errors at every step but handled them…

More from Wednesday 9 September →