Skip to content

Commit 0381e19

Browse files
check in latest build
1 parent 5fefdcd commit 0381e19

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+968
-556
lines changed

build/BoundingBox.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Rect } from './Rect';
2+
import { Dimensions } from './types';
23
export declare class BoundingBox {
34
private _left;
45
private _top;
@@ -11,6 +12,7 @@ export declare class BoundingBox {
1112
readonly bottom: number;
1213
readonly width: number;
1314
readonly height: number;
15+
readonly area: number;
1416
toSquare(): BoundingBox;
1517
round(): BoundingBox;
1618
padAtBorders(imageHeight: number, imageWidth: number): {
@@ -26,5 +28,6 @@ export declare class BoundingBox {
2628
h: number;
2729
};
2830
calibrate(region: BoundingBox): BoundingBox;
31+
rescale(s: Dimensions | number): BoundingBox;
2932
toRect(): Rect;
3033
}

build/BoundingBox.js

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/BoundingBox.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/NetInput.d.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import * as tf from '@tensorflow/tfjs-core';
22
import { Point } from './Point';
3-
import { TResolvedNetInput } from './types';
3+
import { TResolvedNetInput, Dimensions } from './types';
44
export declare class NetInput {
55
private _inputs;
66
private _canvases;
77
private _isManaged;
88
private _isBatchInput;
99
private _inputDimensions;
1010
private _paddings;
11+
private _inputSize;
1112
constructor(inputs: tf.Tensor4D | Array<TResolvedNetInput>, isBatchInput?: boolean, keepCanvases?: boolean);
1213
readonly inputs: tf.Tensor3D[];
1314
readonly canvases: HTMLCanvasElement[];
@@ -16,13 +17,18 @@ export declare class NetInput {
1617
readonly batchSize: number;
1718
readonly inputDimensions: number[][];
1819
readonly paddings: Point[];
20+
readonly inputSize: number;
21+
readonly relativePaddings: Point[];
22+
readonly reshapedInputDimensions: Dimensions[];
1923
getInputDimensions(batchIdx: number): number[];
2024
getInputHeight(batchIdx: number): number;
2125
getInputWidth(batchIdx: number): number;
2226
getPaddings(batchIdx: number): Point;
27+
getRelativePaddings(batchIdx: number): Point;
28+
getReshapedInputDimensions(batchIdx: number): Dimensions;
2329
toBatchTensor(inputSize: number, isCenterInputs?: boolean): tf.Tensor4D;
2430
/**
25-
* By setting the isManaged flag, all newly created tensors will be automatically
31+
* By setting the isManaged flag, all newly created tensors will be
2632
* automatically disposed after the batch tensor has been created
2733
*/
2834
managed(): this;

build/NetInput.js

Lines changed: 37 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)