You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/CPP-Streaming-Component-API.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -177,7 +177,7 @@ Process a single video frame for the current segment.
177
177
178
178
Must return true when the component begins generating the first track for the current segment. After it returns true, the Component Executable will ignore the return value until the component begins processing the next segment.
179
179
180
-
If the `job_properties` map contained in the `MPFStreamingVideoJob` struct passed to the component constructor contains a `QUALITY_SELECTION_THRESHOLD` entry, then this function should only return true for a detection with a quality value that meets or exceeds that threshold. Refer to the [Quality Selection Guide](Quality-Selection-Guide/index.html). After the Component Executable invokes `EndSegment()` to retrieve the segment tracks, it will discard detections that are below the threshold. If all the detections in a track are below the threshold, then the entire track will be discarded.
180
+
If the `job_properties` map contained in the `MPFStreamingVideoJob` struct passed to the component constructor contains a `CONFIDENCE_THRESHOLD` entry, then this function should only return true for a detection with a quality value that meets or exceeds that threshold. After the Component Executable invokes `EndSegment()` to retrieve the segment tracks, it will discard detections that are below the threshold. If all the detections in a track are below the threshold, then the entire track will be discarded.[NOTE: In the future the C++ Streaming Component API may be updated to support `QUALITY_SELECTION_THRESHOLD` instead of `CONFIDENCE_THRESHOLD`.]
181
181
182
182
Note that this function may not be invoked for every frame in the current segment. For example, if `FRAME_INTERVAL = 2`, then this function will only be invoked for every other frame since those are the only ones that need to be processed.
<p>Process a single video frame for the current segment.</p>
451
451
<p>Must return true when the component begins generating the first track for the current segment. After it returns true, the Component Executable will ignore the return value until the component begins processing the next segment.</p>
452
-
<p>If the <code>job_properties</code> map contained in the <code>MPFStreamingVideoJob</code> struct passed to the component constructor contains a <code>QUALITY_SELECTION_THRESHOLD</code> entry, then this function should only return true for a detection with a quality value that meets or exceeds that threshold. Refer to the <ahref="../Quality-Selection-Guide/index.html">Quality Selection Guide</a>. After the Component Executable invokes <code>EndSegment()</code> to retrieve the segment tracks, it will discard detections that are below the threshold. If all the detections in a track are below the threshold, then the entire track will be discarded.</p>
452
+
<p>If the <code>job_properties</code> map contained in the <code>MPFStreamingVideoJob</code> struct passed to the component constructor contains a <code>CONFIDENCE_THRESHOLD</code> entry, then this function should only return true for a detection with a quality value that meets or exceeds that threshold. After the Component Executable invokes <code>EndSegment()</code> to retrieve the segment tracks, it will discard detections that are below the threshold. If all the detections in a track are below the threshold, then the entire track will be discarded. [NOTE: In the future the C++ Streaming Component API may be updated to support <code>QUALITY_SELECTION_THRESHOLD</code> instead of <code>CONFIDENCE_THRESHOLD</code>.]</p>
453
453
<p>Note that this function may not be invoked for every frame in the current segment. For example, if <code>FRAME_INTERVAL = 2</code>, then this function will only be invoked for every other frame since those are the only ones that need to be processed.</p>
454
454
<p>Also, it may not be invoked for the first nor last frame in the segment. For example, if <code>FRAME_INTERVAL = 3</code> and the segment size is 10, then it will be invoked for frames {0, 3, 6, 9} for the first segment, and frames {12, 15, 18} for the second segment.</p>
0 commit comments