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 Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
RAW_IMAGE
Make checkstyle happy.- See Also:
-
NORMALIZED_IMAGE
Make checkstyle happy.- See Also:
-
CHANNELS
public static final long CHANNELSMake checkstyle happy.- See Also:
-
-
Constructor Details
-
ObjectDetectionInputAdapter
public ObjectDetectionInputAdapter()
-
-
Method Details