You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
011_googlemeet-segmentation-worker-js example does not work from the box.
It has the next errors:
1. in old version of the lib, predict api was: predict: (targetCanvas: HTMLCanvasElement, params?: GoogleMeetSegmentationOperationParams) => Promise<number[][] | null>;
and in new one now: predict: (params: GoogleMeetSegmentationOperationParams | undefined, targetCanvas: HTMLCanvasElement) => Promise<Uint8ClampedArray | null>;
so parameters order was changed, but in the code predict call - was not updated.
2. Return value was Promise<number[][] | null>
and now it ls: Promise<Uint8ClampedArray | null>
Could plz share a link to docs, where a new params are explained?
i'm talking about api: generateDefaultGoogleMeetSegmentationParams, because in old build there was quite different params.
011_googlemeet-segmentation-worker-js example does not work from the box.
It has the next errors:
1. in old version of the lib, predict api was:
predict: (targetCanvas: HTMLCanvasElement, params?: GoogleMeetSegmentationOperationParams) => Promise<number[][] | null>;
and in new one now:
predict: (params: GoogleMeetSegmentationOperationParams | undefined, targetCanvas: HTMLCanvasElement) => Promise<Uint8ClampedArray | null>;
so parameters order was changed, but in the code predict call - was not updated.
2. Return value was
Promise<number[][] | null>
and now it ls:
Promise<Uint8ClampedArray | null>
but createForegroundImage needs number[][]
export declare const createForegroundImage: (srcCanvas: HTMLCanvasElement, prediction: number[][]) => ImageData;
plz do corresponding updates
The text was updated successfully, but these errors were encountered: