public class ImageRecognitionAugmenter extends Object implements BiFunction<byte[],List<RecognitionResponse>,byte[]>
Modifier and Type | Field and Description |
---|---|
static String |
IMAGE_FORMAT
IMAGE_FORMAT.
|
Constructor and Description |
---|
ImageRecognitionAugmenter() |
Modifier and Type | Method and Description |
---|---|
byte[] |
apply(byte[] imageBytes,
List<RecognitionResponse> result)
Augment the input image by adding the recognized classes.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
andThen
public static final String IMAGE_FORMAT
public byte[] apply(byte[] imageBytes, List<RecognitionResponse> result)
apply
in interface BiFunction<byte[],List<RecognitionResponse>,byte[]>
imageBytes
- input image as byte arrayresult
- computed recognition labelsCopyright © 2022. All rights reserved.