Use Uint8ClampedArray for pixel output
PiperOrigin-RevId: 518362677
This commit is contained in:
committed by
Copybara-Service
parent
7d26daf723
commit
a5fc1d4baf
@@ -10,7 +10,7 @@ type LibConstructor = new (...args: any[]) => GraphRunner;
|
||||
|
||||
/** An image returned from a MediaPipe graph. */
|
||||
export interface WasmImage {
|
||||
data: Uint8Array|Uint8ClampedArray|Float32Array;
|
||||
data: Uint8ClampedArray|Float32Array;
|
||||
width: number;
|
||||
height: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user