Android 到mediapipe中节点的两个输入流

Android 到mediapipe中节点的两个输入流,android,computer-vision,Android,Computer Vision,我试图通过向DetectionLabelIdToText节点添加第二个输入流来修改Google Mediapipe示例ObjectDetection。我想向计算器发送一些额外的数据(例如,标签名称而不是从文件加载) 我修改了object\u detection\u mobile\u gpu.pbtxt input_stream: "second_input" ... node { calculator: "DetectionLabelIdToTextCalculator" input_s

我试图通过向DetectionLabelIdToText节点添加第二个输入流来修改Google Mediapipe示例ObjectDetection。我想向计算器发送一些额外的数据(例如,标签名称而不是从文件加载)

我修改了object\u detection\u mobile\u gpu.pbtxt

input_stream: "second_input"
...
node {
  calculator: "DetectionLabelIdToTextCalculator"
  input_stream: "filtered_detections"
  input_stream: "SECOND:second_input"
  output_stream: "output_detections"
  node_options: {
    [type.googleapis.com/mediapipe.DetectionLabelIdToTextCalculatorOptions] {
      label_map_path: "mediapipe/models/ssdlite_object_detection_labelmap.txt"
    }
  }
}
...

cc->Inputs().Get("SECOND", 0).Set<int>();
cc->Inputs().Get(“SECOND”,0.Set();
要检测\u label\u id\u到\u text\u calculator.cc

我预计不会有任何变化,应用程序也会像未经修改一样工作,但在向节点计算器的方法进程添加第二个输入流之后,根本不会调用该进程

我做错了什么?类似的情况将作为示例计算器解释到文档中

链接:

检测LabelidTotextCalculator计算器可能不设计为接受两个输入。可以查看DetectionLabelIdToTextCalculator的子图定义

我有一个类似的情况,在输入到MediaPipe之前,将两个输入源合并为一个OpenCV矩阵对我来说是可行的