Searched refs:TensorImage (Results 1 – 14 of 14) sorted by relevance
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/task/vision/segmenter/ |
D | OutputType.java | 26 import org.tensorflow.lite.support.image.TensorImage; 47 void assertMasksMatchColoredLabels(List<TensorImage> masks, List<ColoredLabel> coloredLabels) { in assertMasksMatchColoredLabels() 52 TensorImage mask = masks.get(0); in assertMasksMatchColoredLabels() 65 List<TensorImage> createMasksFromBuffer(List<ByteBuffer> buffers, int[] maskShape) { in createMasksFromBuffer() 70 List<TensorImage> masks = new ArrayList<>(); in createMasksFromBuffer() 73 TensorImage tensorImage = new TensorImage(UINT8); in createMasksFromBuffer() 94 void assertMasksMatchColoredLabels(List<TensorImage> masks, List<ColoredLabel> coloredLabels) { in assertMasksMatchColoredLabels() 102 for (TensorImage mask : masks) { in assertMasksMatchColoredLabels() 111 List<TensorImage> createMasksFromBuffer(List<ByteBuffer> buffers, int[] maskShape) { in createMasksFromBuffer() 112 List<TensorImage> masks = new ArrayList<>(); in createMasksFromBuffer() [all …]
|
D | Segmentation.java | 22 import org.tensorflow.lite.support.image.TensorImage; 64 OutputType outputType, List<TensorImage> masks, List<ColoredLabel> coloredLabels) { in create() 69 Collections.unmodifiableList(new ArrayList<TensorImage>(masks)), in create() 79 public abstract List<TensorImage> getMasks(); in getMasks()
|
D | ImageSegmenter.java | 31 import org.tensorflow.lite.support.image.TensorImage; 263 public List<Segmentation> segment(TensorImage image) { 280 public List<Segmentation> segment(TensorImage image, ImageProcessingOptions options) { 284 TensorImage imageUint8 = 287 : TensorImage.createFrom(image, DataType.UINT8);
|
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/image/ |
D | TensorImage.java | 49 public class TensorImage { class 60 public TensorImage() { in TensorImage() method in TensorImage 81 public TensorImage(DataType dataType) { in TensorImage() method in TensorImage 94 public static TensorImage fromBitmap(Bitmap bitmap) { in fromBitmap() 95 TensorImage image = new TensorImage(); in fromBitmap() 108 public static TensorImage createFrom(TensorImage src, DataType dataType) { in createFrom() 109 TensorImage dst = new TensorImage(dataType); in createFrom()
|
D | ImageOperator.java | 22 public interface ImageOperator extends Operator<TensorImage> { 25 TensorImage apply(TensorImage image); in apply()
|
D | ImageProcessor.java | 54 public class ImageProcessor extends SequentialProcessor<TensorImage> { 73 for (Operator<TensorImage> op : operatorList) { in inverseTransform() 82 ListIterator<Operator<TensorImage>> opIterator = operatorList.listIterator(operatorList.size()); in inverseTransform() 120 public static class Builder extends SequentialProcessor.Builder<TensorImage> {
|
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/image/ops/ |
D | TensorOperatorWrapper.java | 23 import org.tensorflow.lite.support.image.TensorImage; 51 public TensorImage apply(@NonNull TensorImage image) { in apply() 56 TensorImage resImage = new TensorImage(resBuffer.getDataType()); in apply()
|
D | ResizeOp.java | 22 import org.tensorflow.lite.support.image.TensorImage; 67 public TensorImage apply(@NonNull TensorImage image) { in apply()
|
D | Rot90Op.java | 23 import org.tensorflow.lite.support.image.TensorImage; 56 public TensorImage apply(@NonNull TensorImage image) { in apply()
|
D | ResizeWithCropOrPadOp.java | 25 import org.tensorflow.lite.support.image.TensorImage; 66 public TensorImage apply(@NonNull TensorImage image) { in apply()
|
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/task/vision/detector/ |
D | ObjectDetector.java | 29 import org.tensorflow.lite.support.image.TensorImage; 400 public List<Detection> detect(TensorImage image) { 413 public List<Detection> detect(TensorImage image, ImageProcessingOptions options) { 417 TensorImage imageUint8 = 420 : TensorImage.createFrom(image, DataType.UINT8);
|
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/task/vision/classifier/ |
D | ImageClassifier.java | 30 import org.tensorflow.lite.support.image.TensorImage; 380 public List<Classifications> classify(TensorImage image) { 399 public List<Classifications> classify(TensorImage image, ImageProcessingOptions options) { 403 TensorImage imageUint8 = 406 : TensorImage.createFrom(image, DataType.UINT8);
|
/external/tensorflow/tensorflow/lite/g3doc/inference_with_metadata/ |
D | lite_support.md | 52 required by the TensorFlow Lite interpreter, create a `TensorImage` to be used 57 import org.tensorflow.lite.support.image.TensorImage; 68 // Create a TensorImage object. This creates the tensor of the corresponding 70 TensorImage tImage = new TensorImage(DataType.UINT8); 218 When initiating input or output objects such as `TensorImage` or `TensorBuffer` 222 TensorImage tImage = new TensorImage(DataType.UINT8);
|
/external/tflite-support/tensorflow_lite_support/metadata/ |
D | metadata_schema.fbs | 187 // 1. Generates the method to load an image from a TensorImage. 191 // 1. Generates the method to return the output data to a TensorImage.
|