Class ObjectDetectionInputConverter

java.lang.Object
org.springframework.cloud.fn.object.detection.ObjectDetectionInputConverter
All Implemented Interfaces:
Function<byte[][],Map<String,org.tensorflow.Tensor<?>>>

public class ObjectDetectionInputConverter extends Object implements Function<byte[][],Map<String,org.tensorflow.Tensor<?>>>
Converts byte array image into a input Tensor for the Object Detection API. The computed image tensors uses the 'image_tensor' model placeholder.
Author:
Christian Tzolov
  • Field Details

  • Constructor Details

    • ObjectDetectionInputConverter

      public ObjectDetectionInputConverter()
  • Method Details

    • apply

      public Map<String,org.tensorflow.Tensor<?>> apply(byte[][] input)
      Specified by:
      apply in interface Function<byte[][],Map<String,org.tensorflow.Tensor<?>>>