public class ObjectDetectionOutputMessageBuilder
extends org.springframework.cloud.stream.app.tensorflow.processor.DefaultOutputMessageBuilder
DefaultOutputMessageBuilder
with ability to augment the input image with detected object
bounding boxes.
If the drawBoundingBox
is set the input image is augmented with bounding boxers around each detected object.Modifier and Type | Field and Description |
---|---|
static String |
IMAGE_FORMAT |
Constructor and Description |
---|
ObjectDetectionOutputMessageBuilder(boolean drawBoundingBox,
boolean drawMask,
boolean agnosticColors,
org.springframework.cloud.stream.app.tensorflow.processor.TensorflowCommonProcessorProperties properties) |
Modifier and Type | Method and Description |
---|---|
org.springframework.integration.support.MessageBuilder<?> |
createOutputMessageBuilder(org.springframework.messaging.Message<?> inputMessage,
Object computedScore) |
public static final String IMAGE_FORMAT
public ObjectDetectionOutputMessageBuilder(boolean drawBoundingBox, boolean drawMask, boolean agnosticColors, org.springframework.cloud.stream.app.tensorflow.processor.TensorflowCommonProcessorProperties properties)
public org.springframework.integration.support.MessageBuilder<?> createOutputMessageBuilder(org.springframework.messaging.Message<?> inputMessage, Object computedScore)
createOutputMessageBuilder
in interface org.springframework.cloud.stream.app.tensorflow.processor.OutputMessageBuilder
createOutputMessageBuilder
in class org.springframework.cloud.stream.app.tensorflow.processor.DefaultOutputMessageBuilder
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.