Fix ObjectDetector C++ flow limiter and improve documentation.
PiperOrigin-RevId: 481774191
This commit is contained in:
parent
b09c0e9938
commit
ba93bab286
|
@ -101,8 +101,8 @@ CalculatorGraphConfig CreateGraphConfig(
|
||||||
task_subgraph.Out(kImageTag).SetName(kImageOutStreamName) >>
|
task_subgraph.Out(kImageTag).SetName(kImageOutStreamName) >>
|
||||||
graph.Out(kImageTag);
|
graph.Out(kImageTag);
|
||||||
if (enable_flow_limiting) {
|
if (enable_flow_limiting) {
|
||||||
return tasks::core::AddFlowLimiterCalculator(graph, task_subgraph,
|
return tasks::core::AddFlowLimiterCalculator(
|
||||||
{kImageTag}, kDetectionsTag);
|
graph, task_subgraph, {kImageTag, kNormRectTag}, kDetectionsTag);
|
||||||
}
|
}
|
||||||
graph.In(kImageTag) >> task_subgraph.In(kImageTag);
|
graph.In(kImageTag) >> task_subgraph.In(kImageTag);
|
||||||
graph.In(kNormRectTag) >> task_subgraph.In(kNormRectTag);
|
graph.In(kNormRectTag) >> task_subgraph.In(kNormRectTag);
|
||||||
|
|
|
@ -460,7 +460,7 @@ void ConfigureTensorsToDetectionsCalculator(
|
||||||
// IMAGE - Image
|
// IMAGE - Image
|
||||||
// Image to perform detection on.
|
// Image to perform detection on.
|
||||||
// NORM_RECT - NormalizedRect @Optional
|
// NORM_RECT - NormalizedRect @Optional
|
||||||
// Describes image rotation and region of image to perform classification
|
// Describes image rotation and region of image to perform detection
|
||||||
// on.
|
// on.
|
||||||
// @Optional: rect covering the whole image is used if not specified.
|
// @Optional: rect covering the whole image is used if not specified.
|
||||||
//
|
//
|
||||||
|
@ -469,6 +469,8 @@ void ConfigureTensorsToDetectionsCalculator(
|
||||||
// Detected objects with bounding box in pixel units.
|
// Detected objects with bounding box in pixel units.
|
||||||
// IMAGE - mediapipe::Image
|
// IMAGE - mediapipe::Image
|
||||||
// The image that object detection runs on.
|
// The image that object detection runs on.
|
||||||
|
// All returned coordinates are in the unrotated and uncropped input image
|
||||||
|
// coordinates system.
|
||||||
//
|
//
|
||||||
// Example:
|
// Example:
|
||||||
// node {
|
// node {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user