Add WebGLTexture output for ImageSegmenter

PiperOrigin-RevId: 518886135
This commit is contained in:
Sebastian Schmidt
2023-03-23 09:47:35 -07:00
committed by Copybara-Service
parent 1c9e6894f3
commit 8e5eadbd4e
3 changed files with 7 additions and 13 deletions
@@ -10,7 +10,7 @@ type LibConstructor = new (...args: any[]) => GraphRunner;
/** An image returned from a MediaPipe graph. */
export interface WasmImage {
data: Uint8ClampedArray|Float32Array;
data: Uint8ClampedArray|Float32Array|WebGLTexture;
width: number;
height: number;
}