From 2651d30ebfc4b85018e3ddd1a9bacbc8d53df575 Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Mon, 20 Mar 2023 09:43:53 -0700 Subject: [PATCH] Add ImageData output to GraphRunner PiperOrigin-RevId: 517994561 --- mediapipe/web/graph_runner/graph_runner_image_lib.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mediapipe/web/graph_runner/graph_runner_image_lib.ts b/mediapipe/web/graph_runner/graph_runner_image_lib.ts index 72d5ad965..a048c434a 100644 --- a/mediapipe/web/graph_runner/graph_runner_image_lib.ts +++ b/mediapipe/web/graph_runner/graph_runner_image_lib.ts @@ -10,10 +10,11 @@ type LibConstructor = new (...args: any[]) => GraphRunner; /** An image returned from a MediaPipe graph. */ export interface WasmImage { - data: Uint8Array|Float32Array; + data: Uint8Array|Uint8ClampedArray|Float32Array; width: number; height: number; } + /** * Declarations for Emscripten's WebAssembly Module behavior, so TS compiler * doesn't break our JS/C++ bridge.