{ImageData} - composed of: Uint8ClampedArray, width. height - uses known pixel format RGBA
Optional
options: TensorFromImageOptionsOptional - Interface describing input image & output tensor - Input Defaults: RGBA, 3 channels, 0-255, NHWC - Output Defaults: same as input parameters
create a tensor from image object - HTMLImageElement, ImageData, ImageBitmap, URL
A promise that resolves to a tensor object
{HTMLImageElement} - since the data is stored as ImageData no need for format parameter
Optional
options: TensorFromImageOptionsOptional - Interface describing input image & output tensor - Input Defaults: RGBA, 3 channels, 0-255, NHWC - Output Defaults: same as input parameters
create a tensor from image object - HTMLImageElement, ImageData, ImageBitmap, URL
A promise that resolves to a tensor object
{string} - Assuming the string is a URL to an image
Optional
options: TensorFromImageOptionsOptional - Interface describing input image & output tensor - Input Defaults: RGBA, 3 channels, 0-255, NHWC - Output Defaults: same as input parameters
create a tensor from image object - HTMLImageElement, ImageData, ImageBitmap, URL
A promise that resolves to a tensor object
NOT Optional - Interface describing input image & output tensor - Output Defaults: same as input parameters
Generated using TypeDoc
create a tensor from image object - HTMLImageElement, ImageData, ImageBitmap, URL
Returns
A promise that resolves to a tensor object