public class ObjectDetectionImageAugmenter extends Object implements BiFunction<byte[],List<ObjectDetection>,byte[]>
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_IMAGE_FORMAT
Make checkstyle happy.
|
Constructor and Description |
---|
ObjectDetectionImageAugmenter() |
ObjectDetectionImageAugmenter(boolean withMask) |
Modifier and Type | Method and Description |
---|---|
byte[] |
apply(byte[] imageBytes,
List<ObjectDetection> objectDetections) |
String |
getImageFormat() |
boolean |
isAgnosticColors() |
void |
setAgnosticColors(boolean agnosticColors) |
void |
setImageFormat(String imageFormat) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
andThen
public static final String DEFAULT_IMAGE_FORMAT
public ObjectDetectionImageAugmenter()
public ObjectDetectionImageAugmenter(boolean withMask)
public boolean isAgnosticColors()
public void setAgnosticColors(boolean agnosticColors)
public String getImageFormat()
public void setImageFormat(String imageFormat)
public byte[] apply(byte[] imageBytes, List<ObjectDetection> objectDetections)
apply
in interface BiFunction<byte[],List<ObjectDetection>,byte[]>
Copyright © 2020. All rights reserved.