MCPcopy Index your code
hub / github.com/tensorflow/tfjs / getUint8ArrayFromImage

Function getUint8ArrayFromImage

tfjs-node/src/image_test.ts:410–414  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

408});
409
410async function getUint8ArrayFromImage(path: string) {
411 const image = await readFile(path);
412 const buf = Buffer.from(image);
413 return new Uint8Array(buf);
414}

Callers 1

image_test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…