mirror of https://github.com/vladmandic/human
update tslib
parent
dc078b6a81
commit
dba040c662
|
@ -9,8 +9,10 @@ Repository: **<git+https://github.com/vladmandic/human.git>**
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
### **HEAD -> main** 2021/04/05 mandic00@live.com
|
### **HEAD -> main** 2021/04/06 mandic00@live.com
|
||||||
|
|
||||||
|
- add dynamic viewport and fix web worker
|
||||||
|
- add cdn links
|
||||||
|
|
||||||
### **1.3.4** 2021/04/04 mandic00@live.com
|
### **1.3.4** 2021/04/04 mandic00@live.com
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -51,7 +51,6 @@
|
||||||
"tensorflow"
|
"tensorflow"
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/api-extractor": "^7.13.2",
|
|
||||||
"@tensorflow/tfjs": "^3.3.0",
|
"@tensorflow/tfjs": "^3.3.0",
|
||||||
"@tensorflow/tfjs-backend-cpu": "^3.3.0",
|
"@tensorflow/tfjs-backend-cpu": "^3.3.0",
|
||||||
"@tensorflow/tfjs-backend-wasm": "^3.3.0",
|
"@tensorflow/tfjs-backend-wasm": "^3.3.0",
|
||||||
|
@ -63,8 +62,8 @@
|
||||||
"@tensorflow/tfjs-node": "^3.3.0",
|
"@tensorflow/tfjs-node": "^3.3.0",
|
||||||
"@tensorflow/tfjs-node-gpu": "^3.3.0",
|
"@tensorflow/tfjs-node-gpu": "^3.3.0",
|
||||||
"@types/node": "^14.14.37",
|
"@types/node": "^14.14.37",
|
||||||
"@typescript-eslint/eslint-plugin": "^4.20.0",
|
"@typescript-eslint/eslint-plugin": "^4.21.0",
|
||||||
"@typescript-eslint/parser": "^4.20.0",
|
"@typescript-eslint/parser": "^4.21.0",
|
||||||
"@vladmandic/pilogger": "^0.2.15",
|
"@vladmandic/pilogger": "^0.2.15",
|
||||||
"chokidar": "^3.5.1",
|
"chokidar": "^3.5.1",
|
||||||
"dayjs": "^1.10.4",
|
"dayjs": "^1.10.4",
|
||||||
|
@ -78,7 +77,7 @@
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"seedrandom": "^3.0.5",
|
"seedrandom": "^3.0.5",
|
||||||
"simple-git": "^2.37.0",
|
"simple-git": "^2.37.0",
|
||||||
"tslib": "^2.1.0",
|
"tslib": "^2.2.0",
|
||||||
"typedoc": "^0.20.35",
|
"typedoc": "^0.20.35",
|
||||||
"typescript": "^4.2.3"
|
"typescript": "^4.2.3"
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,8 @@ export type Tensor = typeof tf.Tensor;
|
||||||
export type { Config } from './config';
|
export type { Config } from './config';
|
||||||
export type { Result } from './result';
|
export type { Result } from './result';
|
||||||
/** Defines all possible input types for **Human** detection */
|
/** Defines all possible input types for **Human** detection */
|
||||||
export type Input = Tensor | ImageData | ImageBitmap | HTMLImageElement | HTMLVideoElement | HTMLCanvasElement | OffscreenCanvas;
|
export type Input = Tensor | typeof Image | ImageData | ImageBitmap | HTMLImageElement | HTMLMediaElement | HTMLVideoElement | HTMLCanvasElement | OffscreenCanvas;
|
||||||
|
|
||||||
/** Error message */
|
/** Error message */
|
||||||
export type Error = { error: string };
|
export type Error = { error: string };
|
||||||
/** Instance of TensorFlow/JS */
|
/** Instance of TensorFlow/JS */
|
||||||
|
|
|
@ -22,6 +22,7 @@ export function process(input, config): { tensor: tf.Tensor, canvas: OffscreenCa
|
||||||
&& !(typeof ImageData !== 'undefined' && input instanceof ImageData)
|
&& !(typeof ImageData !== 'undefined' && input instanceof ImageData)
|
||||||
&& !(typeof ImageBitmap !== 'undefined' && input instanceof ImageBitmap)
|
&& !(typeof ImageBitmap !== 'undefined' && input instanceof ImageBitmap)
|
||||||
&& !(typeof HTMLImageElement !== 'undefined' && input instanceof HTMLImageElement)
|
&& !(typeof HTMLImageElement !== 'undefined' && input instanceof HTMLImageElement)
|
||||||
|
&& !(typeof HTMLMediaElement !== 'undefined' && input instanceof HTMLMediaElement)
|
||||||
&& !(typeof HTMLVideoElement !== 'undefined' && input instanceof HTMLVideoElement)
|
&& !(typeof HTMLVideoElement !== 'undefined' && input instanceof HTMLVideoElement)
|
||||||
&& !(typeof HTMLCanvasElement !== 'undefined' && input instanceof HTMLCanvasElement)
|
&& !(typeof HTMLCanvasElement !== 'undefined' && input instanceof HTMLCanvasElement)
|
||||||
&& !(typeof OffscreenCanvas !== 'undefined' && input instanceof OffscreenCanvas)
|
&& !(typeof OffscreenCanvas !== 'undefined' && input instanceof OffscreenCanvas)
|
||||||
|
|
|
@ -16,7 +16,7 @@ export declare type Tensor = typeof tf.Tensor;
|
||||||
export type { Config } from './config';
|
export type { Config } from './config';
|
||||||
export type { Result } from './result';
|
export type { Result } from './result';
|
||||||
/** Defines all possible input types for **Human** detection */
|
/** Defines all possible input types for **Human** detection */
|
||||||
export declare type Input = Tensor | ImageData | ImageBitmap | HTMLImageElement | HTMLVideoElement | HTMLCanvasElement | OffscreenCanvas;
|
export declare type Input = Tensor | typeof Image | ImageData | ImageBitmap | HTMLImageElement | HTMLMediaElement | HTMLVideoElement | HTMLCanvasElement | OffscreenCanvas;
|
||||||
/** Error message */
|
/** Error message */
|
||||||
export declare type Error = {
|
export declare type Error = {
|
||||||
error: string;
|
error: string;
|
||||||
|
|
Loading…
Reference in New Issue