Class ObjectDetectionInputAdapter

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

public class ObjectDetectionInputAdapter extends Object implements Function<byte[],Map<String,org.tensorflow.Tensor<?>>>, AutoCloseable
Converts byte array image into a input Tensor for the Object Detection API.
Author:
Christian Tzolov
  • Field Details

  • Constructor Details

    • ObjectDetectionInputAdapter

      public ObjectDetectionInputAdapter()
  • Method Details

    • apply

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

      public void close()
      Specified by:
      close in interface AutoCloseable