image: { cropAndResize: ((image,
boxes,
boxInd,
cropSize,
method?,
extrapolationValue?) => Tensor4D); flipLeftRight: ((image) => Tensor4D); grayscaleToRGB: (<T>(image) => T); nonMaxSuppression: ((boxes,
scores,
maxOutputSize,
iouThreshold?,
scoreThreshold?) => Tensor1D); nonMaxSuppressionAsync: ((boxes,
scores,
maxOutputSize,
iouThreshold?,
scoreThreshold?) => Promise<Tensor1D>); nonMaxSuppressionPadded: ((boxes,
scores,
maxOutputSize,
iouThreshold?,
scoreThreshold?,
padToMaxOutputSize?) => NamedTensorMap); nonMaxSuppressionPaddedAsync: ((boxes,
scores,
maxOutputSize,
iouThreshold?,
scoreThreshold?,
padToMaxOutputSize?) => Promise<NamedTensorMap>); nonMaxSuppressionWithScore: ((boxes,
scores,
maxOutputSize,
iouThreshold?,
scoreThreshold?,
softNmsSigma?) => NamedTensorMap); nonMaxSuppressionWithScoreAsync: ((boxes,
scores,
maxOutputSize,
iouThreshold?,
scoreThreshold?,
softNmsSigma?) => Promise<NamedTensorMap>); resizeBilinear: (<T_2>(images,
size,
alignCorners?,
halfPixelCenters?) => T_2); resizeNearestNeighbor: (<T_1>(images,
size,
alignCorners?,
halfPixelCenters?) => T_1); rgbToGrayscale: (<T_3>(image) => T_3); rotateWithOffset: ((image,
radians,
fillValue?,
center?) => Tensor4D); threshold: ((image,
method?,
inverted?,
threshValue?) => Tensor3D); transform: ((image,
transforms,
interpolation?,
fillMode?,
fillValue?,
outputShape?) => Tensor4D); } Type declaration
cropAndResize: ((image, boxes, boxInd, cropSize, method?, extrapolationValue?) => Tensor4D)
- (image, boxes, boxInd, cropSize, method?, extrapolationValue?): Tensor4D
Parameters
image: TensorLike | Tensor4D
boxes: TensorLike | Tensor2D
boxInd: TensorLike | Tensor1D
cropSize: [number, number]
Optional
method: "bilinear" | "nearest"
Optional
extrapolationValue: number
Returns Tensor4D
flipLeftRight: ((image) => Tensor4D)
- (image): Tensor4D
Parameters
image: TensorLike | Tensor4D
Returns Tensor4D
grayscaleToRGB: (<T>(image) => T)
- <T>(image): T
Type Parameters
T extends Tensor2D | Tensor3D | Tensor4D | Tensor5D | Tensor6D
Returns T
nonMaxSuppression: ((boxes, scores, maxOutputSize, iouThreshold?, scoreThreshold?) => Tensor1D)
- (boxes, scores, maxOutputSize, iouThreshold?, scoreThreshold?): Tensor1D
Parameters
boxes: TensorLike | Tensor2D
scores: TensorLike | Tensor1D
maxOutputSize: number
Optional
iouThreshold: number
Optional
scoreThreshold: number
Returns Tensor1D
nonMaxSuppressionAsync: ((boxes, scores, maxOutputSize, iouThreshold?, scoreThreshold?) => Promise<Tensor1D>)
- (boxes, scores, maxOutputSize, iouThreshold?, scoreThreshold?): Promise<Tensor1D>
Parameters
boxes: TensorLike | Tensor2D
scores: TensorLike | Tensor1D
maxOutputSize: number
Optional
iouThreshold: number
Optional
scoreThreshold: number
Returns Promise<Tensor1D>
nonMaxSuppressionPadded: ((boxes, scores, maxOutputSize, iouThreshold?, scoreThreshold?, padToMaxOutputSize?) => NamedTensorMap)
- (boxes, scores, maxOutputSize, iouThreshold?, scoreThreshold?, padToMaxOutputSize?): NamedTensorMap
Parameters
boxes: TensorLike | Tensor2D
scores: TensorLike | Tensor1D
maxOutputSize: number
Optional
iouThreshold: number
Optional
scoreThreshold: number
Optional
padToMaxOutputSize: boolean
Returns NamedTensorMap
nonMaxSuppressionPaddedAsync: ((boxes, scores, maxOutputSize, iouThreshold?, scoreThreshold?, padToMaxOutputSize?) => Promise<NamedTensorMap>)
- (boxes, scores, maxOutputSize, iouThreshold?, scoreThreshold?, padToMaxOutputSize?): Promise<NamedTensorMap>
Parameters
boxes: TensorLike | Tensor2D
scores: TensorLike | Tensor1D
maxOutputSize: number
Optional
iouThreshold: number
Optional
scoreThreshold: number
Optional
padToMaxOutputSize: boolean
Returns Promise<NamedTensorMap>
nonMaxSuppressionWithScore: ((boxes, scores, maxOutputSize, iouThreshold?, scoreThreshold?, softNmsSigma?) => NamedTensorMap)
- (boxes, scores, maxOutputSize, iouThreshold?, scoreThreshold?, softNmsSigma?): NamedTensorMap
Parameters
boxes: TensorLike | Tensor2D
scores: TensorLike | Tensor1D
maxOutputSize: number
Optional
iouThreshold: number
Optional
scoreThreshold: number
Optional
softNmsSigma: number
Returns NamedTensorMap
nonMaxSuppressionWithScoreAsync: ((boxes, scores, maxOutputSize, iouThreshold?, scoreThreshold?, softNmsSigma?) => Promise<NamedTensorMap>)
- (boxes, scores, maxOutputSize, iouThreshold?, scoreThreshold?, softNmsSigma?): Promise<NamedTensorMap>
Parameters
boxes: TensorLike | Tensor2D
scores: TensorLike | Tensor1D
maxOutputSize: number
Optional
iouThreshold: number
Optional
scoreThreshold: number
Optional
softNmsSigma: number
Returns Promise<NamedTensorMap>
resizeBilinear: (<T_2>(images, size, alignCorners?, halfPixelCenters?) => T_2)
- <T_2>(images, size, alignCorners?, halfPixelCenters?): T_2
Type Parameters
T_2 extends Tensor3D | Tensor4D
Parameters
images: TensorLike | T_2
size: [number, number]
Optional
alignCorners: boolean
Optional
halfPixelCenters: boolean
Returns T_2
resizeNearestNeighbor: (<T_1>(images, size, alignCorners?, halfPixelCenters?) => T_1)
- <T_1>(images, size, alignCorners?, halfPixelCenters?): T_1
Type Parameters
T_1 extends Tensor3D | Tensor4D
Parameters
images: TensorLike | T_1
size: [number, number]
Optional
alignCorners: boolean
Optional
halfPixelCenters: boolean
Returns T_1
rgbToGrayscale: (<T_3>(image) => T_3)
- <T_3>(image): T_3
Type Parameters
T_3 extends Tensor2D | Tensor3D | Tensor4D | Tensor5D | Tensor6D
Returns T_3
rotateWithOffset: ((image, radians, fillValue?, center?) => Tensor4D)
- (image, radians, fillValue?, center?): Tensor4D
Parameters
image: TensorLike | Tensor4D
radians: number
Optional
fillValue: number | [number, number, number]
Optional
center: number | [number, number]
Returns Tensor4D
threshold: ((image, method?, inverted?, threshValue?) => Tensor3D)
- (image, method?, inverted?, threshValue?): Tensor3D
Parameters
image: TensorLike | Tensor3D
Optional
method: string
Optional
inverted: boolean
Optional
threshValue: number
Returns Tensor3D
transform: ((image, transforms, interpolation?, fillMode?, fillValue?, outputShape?) => Tensor4D)
- (image, transforms, interpolation?, fillMode?, fillValue?, outputShape?): Tensor4D
Parameters
image: TensorLike | Tensor4D
transforms: TensorLike | Tensor2D
Optional
interpolation: "bilinear" | "nearest"
Optional
fillMode: "reflect" | "nearest" | "constant" | "wrap"
Optional
fillValue: number
Optional
outputShape: [number, number]
Returns Tensor4D