MCPcopy
hub / github.com/tensorflow/tfjs-models / getBinarySegmentation

Function getBinarySegmentation

shared/calculators/render_util_test.ts:59–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57const HEIGHT = 861;
58
59async function getBinarySegmentation() {
60 const image = await loadImage(
61 'shared/three_people_binary_segmentation.png', WIDTH, HEIGHT);
62 const imageData = await toImageDataLossy(image);
63
64 return [getSegmentation(imageData)];
65}
66
67async function getBinaryMask() {
68 const segmentation = await getBinarySegmentation();

Callers 2

getBinaryMaskFunction · 0.85

Calls 3

loadImageFunction · 0.90
toImageDataLossyFunction · 0.90
getSegmentationFunction · 0.70

Tested by

no test coverage detected