human/types/config.d.ts

121 lines
2.8 KiB
TypeScript
Raw Normal View History

2021-03-17 23:57:00 +01:00
/**
* Configuration interface definition for **Human** library
*
* Contains all configurable parameters
*/
export interface Config {
2021-03-18 01:16:40 +01:00
backend: string;
wasmPath: string;
debug: boolean;
async: boolean;
profile: boolean;
deallocate: boolean;
scoped: boolean;
videoOptimized: boolean;
warmup: string;
2021-03-17 23:57:00 +01:00
filter: {
2021-03-18 01:16:40 +01:00
enabled: boolean;
width: number;
height: number;
return: boolean;
brightness: number;
contrast: number;
sharpness: number;
blur: number;
saturation: number;
hue: number;
negative: boolean;
sepia: boolean;
vintage: boolean;
kodachrome: boolean;
technicolor: boolean;
polaroid: boolean;
pixelate: number;
2021-03-17 23:57:00 +01:00
};
gesture: {
2021-03-18 01:16:40 +01:00
enabled: boolean;
2021-03-17 23:57:00 +01:00
};
face: {
2021-03-18 01:16:40 +01:00
enabled: boolean;
2021-03-17 23:57:00 +01:00
detector: {
2021-03-18 01:16:40 +01:00
modelPath: string;
rotation: boolean;
maxFaces: number;
skipFrames: number;
skipInitial: boolean;
minConfidence: number;
iouThreshold: number;
scoreThreshold: number;
return: boolean;
2021-03-17 23:57:00 +01:00
};
mesh: {
2021-03-18 01:16:40 +01:00
enabled: boolean;
modelPath: string;
2021-03-17 23:57:00 +01:00
};
iris: {
2021-03-18 01:16:40 +01:00
enabled: boolean;
modelPath: string;
2021-03-17 23:57:00 +01:00
};
2021-03-21 19:18:51 +01:00
description: {
enabled: boolean;
modelPath: string;
skipFrames: number;
};
2021-03-17 23:57:00 +01:00
age: {
2021-03-18 01:16:40 +01:00
enabled: boolean;
modelPath: string;
skipFrames: number;
2021-03-17 23:57:00 +01:00
};
gender: {
2021-03-18 01:16:40 +01:00
enabled: boolean;
minConfidence: number;
modelPath: string;
skipFrames: number;
2021-03-17 23:57:00 +01:00
};
emotion: {
2021-03-18 01:16:40 +01:00
enabled: boolean;
minConfidence: number;
skipFrames: number;
modelPath: string;
2021-03-17 23:57:00 +01:00
};
embedding: {
2021-03-18 01:16:40 +01:00
enabled: boolean;
modelPath: string;
2021-03-17 23:57:00 +01:00
};
};
body: {
2021-03-18 01:16:40 +01:00
enabled: boolean;
modelPath: string;
maxDetections: number;
scoreThreshold: number;
nmsRadius: number;
2021-03-17 23:57:00 +01:00
};
hand: {
2021-03-18 01:16:40 +01:00
enabled: boolean;
rotation: boolean;
skipFrames: number;
skipInitial: boolean;
minConfidence: number;
iouThreshold: number;
scoreThreshold: number;
maxHands: number;
landmarks: boolean;
2021-03-17 23:57:00 +01:00
detector: {
2021-03-18 01:16:40 +01:00
modelPath: string;
2021-03-17 23:57:00 +01:00
};
skeleton: {
2021-03-18 01:16:40 +01:00
modelPath: string;
2021-03-17 23:57:00 +01:00
};
};
object: {
2021-03-18 01:16:40 +01:00
enabled: boolean;
modelPath: string;
minConfidence: number;
iouThreshold: number;
maxResults: number;
skipFrames: number;
2021-03-17 23:57:00 +01:00
};
}
declare const config: Config;
export { config as defaults };