internal change.
PiperOrigin-RevId: 529181374
This commit is contained in:
parent
606b83ac65
commit
e428bdb7e8
|
@ -77,11 +77,13 @@ public class BaseVisionTaskApi implements AutoCloseable {
|
||||||
}
|
}
|
||||||
Map<String, Packet> inputPackets = new HashMap<>();
|
Map<String, Packet> inputPackets = new HashMap<>();
|
||||||
inputPackets.put(imageStreamName, runner.getPacketCreator().createImage(image));
|
inputPackets.put(imageStreamName, runner.getPacketCreator().createImage(image));
|
||||||
inputPackets.put(
|
if (!normRectStreamName.isEmpty()) {
|
||||||
normRectStreamName,
|
inputPackets.put(
|
||||||
runner
|
normRectStreamName,
|
||||||
.getPacketCreator()
|
runner
|
||||||
.createProto(convertToNormalizedRect(imageProcessingOptions, image)));
|
.getPacketCreator()
|
||||||
|
.createProto(convertToNormalizedRect(imageProcessingOptions, image)));
|
||||||
|
}
|
||||||
return runner.process(inputPackets);
|
return runner.process(inputPackets);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -105,11 +107,13 @@ public class BaseVisionTaskApi implements AutoCloseable {
|
||||||
}
|
}
|
||||||
Map<String, Packet> inputPackets = new HashMap<>();
|
Map<String, Packet> inputPackets = new HashMap<>();
|
||||||
inputPackets.put(imageStreamName, runner.getPacketCreator().createImage(image));
|
inputPackets.put(imageStreamName, runner.getPacketCreator().createImage(image));
|
||||||
inputPackets.put(
|
if (!normRectStreamName.isEmpty()) {
|
||||||
normRectStreamName,
|
inputPackets.put(
|
||||||
runner
|
normRectStreamName,
|
||||||
.getPacketCreator()
|
runner
|
||||||
.createProto(convertToNormalizedRect(imageProcessingOptions, image)));
|
.getPacketCreator()
|
||||||
|
.createProto(convertToNormalizedRect(imageProcessingOptions, image)));
|
||||||
|
}
|
||||||
return runner.process(inputPackets, timestampMs * MICROSECONDS_PER_MILLISECOND);
|
return runner.process(inputPackets, timestampMs * MICROSECONDS_PER_MILLISECOND);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -133,11 +137,13 @@ public class BaseVisionTaskApi implements AutoCloseable {
|
||||||
}
|
}
|
||||||
Map<String, Packet> inputPackets = new HashMap<>();
|
Map<String, Packet> inputPackets = new HashMap<>();
|
||||||
inputPackets.put(imageStreamName, runner.getPacketCreator().createImage(image));
|
inputPackets.put(imageStreamName, runner.getPacketCreator().createImage(image));
|
||||||
inputPackets.put(
|
if (!normRectStreamName.isEmpty()) {
|
||||||
normRectStreamName,
|
inputPackets.put(
|
||||||
runner
|
normRectStreamName,
|
||||||
.getPacketCreator()
|
runner
|
||||||
.createProto(convertToNormalizedRect(imageProcessingOptions, image)));
|
.getPacketCreator()
|
||||||
|
.createProto(convertToNormalizedRect(imageProcessingOptions, image)));
|
||||||
|
}
|
||||||
runner.send(inputPackets, timestampMs * MICROSECONDS_PER_MILLISECOND);
|
runner.send(inputPackets, timestampMs * MICROSECONDS_PER_MILLISECOND);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user