Add ImageData output to GraphRunner
PiperOrigin-RevId: 517994561
This commit is contained in:
parent
54e4dfc853
commit
2651d30ebf
|
@ -10,10 +10,11 @@ type LibConstructor = new (...args: any[]) => GraphRunner;
|
||||||
|
|
||||||
/** An image returned from a MediaPipe graph. */
|
/** An image returned from a MediaPipe graph. */
|
||||||
export interface WasmImage {
|
export interface WasmImage {
|
||||||
data: Uint8Array|Float32Array;
|
data: Uint8Array|Uint8ClampedArray|Float32Array;
|
||||||
width: number;
|
width: number;
|
||||||
height: number;
|
height: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Declarations for Emscripten's WebAssembly Module behavior, so TS compiler
|
* Declarations for Emscripten's WebAssembly Module behavior, so TS compiler
|
||||||
* doesn't break our JS/C++ bridge.
|
* doesn't break our JS/C++ bridge.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user