Skip to content

Commit 3ac509b

Browse files
authored
Expose and document NMS slider (#2028)
1 parent 0ea108e commit 3ac509b

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

docs/source/docs/objectDetection/about-object-detection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This model output means that while its fairly easy to say that "this rectangle p
1818

1919
## Tuning and Filtering
2020

21-
Compared to other pipelines, object detection exposes very few tuning handles. The Confidence slider changes the minimum confidence that the model needs to have in a given detection to consider it valid, as a number between 0 and 1 (with 0 meaning completely uncertain and 1 meaning maximally certain).
21+
Compared to other pipelines, object detection exposes very few tuning handles. The Confidence slider changes the minimum confidence that the model needs to have in a given detection to consider it valid, as a number between 0 and 1 (with 0 meaning completely uncertain and 1 meaning maximally certain). The Non-Maximum Suppresion (NMS) Threshold slider is used to filter out overlapping detections. Lower values mean more detections are allowed through, but may result in false positives. It's generally recommended that teams leave this set at the default, unless they find they're unable to get usable results with solely the Confidence slider.
2222

2323
```{raw} html
2424
<video width="85%" controls>

photon-client/src/components/dashboard/tabs/ObjectDetectionTab.vue

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,17 @@ const selectedModel = computed({
8585
(value) => useCameraSettingsStore().changeCurrentPipelineSetting({ confidence: value }, false)
8686
"
8787
/>
88+
<pv-slider
89+
v-model="currentPipelineSettings.nms"
90+
class="pt-2"
91+
:slider-cols="interactiveCols"
92+
label="NMS Threshold"
93+
tooltip="The Non-Maximum Suppression threshold used to filter out overlapping detections. Lower values mean more detections are allowed through, but may result in false positives."
94+
:min="0"
95+
:max="1"
96+
:step="0.01"
97+
@update:modelValue="(value) => useCameraSettingsStore().changeCurrentPipelineSetting({ nms: value }, false)"
98+
/>
8899
<pv-range-slider
89100
v-model="contourArea"
90101
label="Area"

0 commit comments

Comments
 (0)