edge-impulse-linux 1.16.1 → 1.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli/linux/linux.js +1 -0
- package/build/cli/linux/linux.js.map +1 -1
- package/build/cli/linux/runner-downloader.d.ts +1 -0
- package/build/cli/linux/runner-downloader.js +10 -0
- package/build/cli/linux/runner-downloader.js.map +1 -1
- package/build/cli/linux/runner-profiling.d.ts +10 -0
- package/build/cli/linux/runner-profiling.js +72 -0
- package/build/cli/linux/runner-profiling.js.map +1 -0
- package/build/cli/linux/runner-utils.js +10 -64
- package/build/cli/linux/runner-utils.js.map +1 -1
- package/build/cli/linux/runner.js +15 -1
- package/build/cli/linux/runner.js.map +1 -1
- package/build/cli/linux/webserver/public/inference-server.js +92 -83
- package/build/cli/linux/webserver/public/inference-server.js.map +1 -1
- package/build/cli-common/model-monitor.d.ts +1 -2
- package/build/cli-common/model-monitor.js +5 -5
- package/build/cli-common/model-monitor.js.map +1 -1
- package/build/cli-common/remote-mgmt-service.d.ts +1 -1
- package/build/library/async-pool.d.ts +1 -0
- package/build/library/async-pool.js +21 -0
- package/build/library/async-pool.js.map +1 -0
- package/build/library/classifier/image-classifier.d.ts +12 -2
- package/build/library/classifier/image-classifier.js +37 -7
- package/build/library/classifier/image-classifier.js.map +1 -1
- package/build/library/classifier/libcwrapper.d.ts +26 -0
- package/build/library/classifier/libcwrapper.js +37 -0
- package/build/library/classifier/libcwrapper.js.map +1 -0
- package/build/library/classifier/linux-impulse-runner-types.d.ts +177 -0
- package/build/library/classifier/linux-impulse-runner-types.js +28 -0
- package/build/library/classifier/linux-impulse-runner-types.js.map +1 -0
- package/build/library/classifier/linux-impulse-runner.d.ts +20 -120
- package/build/library/classifier/linux-impulse-runner.js +172 -47
- package/build/library/classifier/linux-impulse-runner.js.map +1 -1
- package/build/library/classifier/valgrind-suppression.d.ts +1 -0
- package/build/library/classifier/valgrind-suppression.js +64 -0
- package/build/library/classifier/valgrind-suppression.js.map +1 -0
- package/build/library/moving-average-filter.d.ts +1 -1
- package/build/library/sensors/gstreamer.d.ts +12 -5
- package/build/library/sensors/gstreamer.js +217 -66
- package/build/library/sensors/gstreamer.js.map +1 -1
- package/build/library/sensors/icamera.d.ts +3 -1
- package/build/library/sensors/imagesnap.d.ts +2 -0
- package/build/library/sensors/imagesnap.js +2 -0
- package/build/library/sensors/imagesnap.js.map +1 -1
- package/build/library/sensors/prophesee.d.ts +2 -0
- package/build/library/sensors/prophesee.js +1 -0
- package/build/library/sensors/prophesee.js.map +1 -1
- package/build/library/sensors/sensors-helper.d.ts +1 -0
- package/build/library/sensors/sensors-helper.js +1 -1
- package/build/library/sensors/sensors-helper.js.map +1 -1
- package/build/sdk/studio/sdk/api/classifyApi.d.ts +64 -0
- package/build/sdk/studio/sdk/api/classifyApi.js +128 -0
- package/build/sdk/studio/sdk/api/classifyApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/postProcessingApi.d.ts +5 -4
- package/build/sdk/studio/sdk/api/postProcessingApi.js +12 -12
- package/build/sdk/studio/sdk/api/postProcessingApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/testApi.d.ts +16 -0
- package/build/sdk/studio/sdk/api/testApi.js +90 -0
- package/build/sdk/studio/sdk/api/testApi.js.map +1 -1
- package/build/sdk/studio/sdk/model/models.d.ts +2 -0
- package/build/sdk/studio/sdk/model/models.js +6 -0
- package/build/sdk/studio/sdk/model/models.js.map +1 -1
- package/build/sdk/studio/sdk/model/permission.d.ts +1 -1
- package/build/sdk/studio/sdk/model/permission.js +1 -1
- package/build/sdk/studio/sdk/model/permission.js.map +1 -1
- package/build/sdk/studio/sdk/model/postProcessingFeaturesForSampleRequest.d.ts +28 -0
- package/build/sdk/studio/sdk/model/postProcessingFeaturesForSampleRequest.js +34 -0
- package/build/sdk/studio/sdk/model/postProcessingFeaturesForSampleRequest.js.map +1 -0
- package/build/sdk/studio/sdk/model/uploadVersionArchiveRequest.d.ts +34 -0
- package/build/sdk/studio/sdk/model/uploadVersionArchiveRequest.js +29 -0
- package/build/sdk/studio/sdk/model/uploadVersionArchiveRequest.js.map +1 -0
- package/build/shared/views/project/bounding-box-scaling.d.ts +66 -0
- package/build/shared/views/project/bounding-box-scaling.js +155 -0
- package/build/shared/views/project/bounding-box-scaling.js.map +1 -0
- package/cli/linux/webserver/public/assets/mobileclient.css +5 -0
- package/cli/linux/webserver/public/inference-server.js +100 -89
- package/examples/js/classify-camera.js +1 -3
- package/examples/ts/classify-camera.ts +1 -3
- package/package.json +2 -1
- package/test/gstreamer.test.ts +28 -23
- package/examples/ts/classify-custom-from-test.ts +0 -96
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-classifier.js","sourceRoot":"","sources":["../../../library/classifier/image-classifier.ts"],"names":[],"mappings":";;;;;;AAAA,+BAAoC;
|
|
1
|
+
{"version":3,"file":"image-classifier.js","sourceRoot":"","sources":["../../../library/classifier/image-classifier.ts"],"names":[],"mappings":";;;;;;AAAA,+BAAoC;AAOpC,kDAAuC;AAIvC,MAAM,MAAM,GAAG,sBAAsB,CAAC;AAEtC,YAAY;AACZ,MAAM,YAAY,GAAqC;IACnD,MAAM,EAAE,SAAS;IACjB,cAAc,EAAE,OAAO;IACvB,aAAa,EAAE,SAAS;IACxB,QAAQ,EAAE,MAAM;CACnB,CAAC;AAEF,aAAa;AACA,QAAA,kBAAkB,GAG3B;IACF,MAAM,EAAE,MAAM;IACd,cAAc,EAAE,WAAW;IAC3B,aAAa,EAAE,UAAU;IACzB,QAAQ,EAAE,QAAQ;CACnB,CAAC;AAEF,MAAa,eAAgB,SAAQ,mBAUnC;IAQE;;;;OAIG;IACH,YAAY,MAA0B,EAAE,MAAe,EAAE,IAExD;QACG,KAAK,EAAE,CAAC;QAbJ,aAAQ,GAAY,IAAI,CAAC;QACzB,sBAAiB,GAAG,KAAK,CAAC;QAc9B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,OAAO,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CAAC,CAAC;gBACvB,IAAI,CAAC,GAAG,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;gBACvB,sCAAsC;gBACtC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;aAC3C;SACJ;aACI;YACD,GAAG,GAAG,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;YAC/B,IAAI,MAAM,GAAG,MAAM,GAAG,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC;YAExC,KAAK,IAAI,CAAC,IAAI,MAAM,EAAE;gBAClB,sCAAsC;gBACtC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;aAC3C;SACJ;QAED,wEAAwE;QACxE,6GAA6G;QAE7G,OAAO;YACH,GAAG,EAAE,GAAG;YACR,QAAQ,EAAE,QAAQ;YAClB,aAAa,EAAE,QAAQ,CAAC,KAAK;YAC7B,cAAc,EAAE,QAAQ,CAAC,MAAM;YAC/B,QAAQ,EAAE,KAAK,CAAC,eAAe,CAAC,iBAAiB;YACjD,SAAS,EAAE,KAAK,CAAC,eAAe,CAAC,kBAAkB;SACtD,CAAC;IACN,CAAC;CACJ;AA7OD,0CA6OC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import koffi from 'koffi';
|
|
2
|
+
declare module 'koffi' {
|
|
3
|
+
/**
|
|
4
|
+
* Zero-copy view into native memory. Introduced in 2.11, but not in the type hints yet.
|
|
5
|
+
* @param ptr Pointer returned by mmap / malloc / etc.
|
|
6
|
+
* @param length Number of bytes to expose
|
|
7
|
+
* @returns A Node-style ArrayBuffer backed by that memory
|
|
8
|
+
*/
|
|
9
|
+
function view(ptr: unknown, length: number): ArrayBuffer;
|
|
10
|
+
}
|
|
11
|
+
export declare const O_CREAT = 512;
|
|
12
|
+
export declare const O_RDWR = 2;
|
|
13
|
+
export declare const PROT_READ = 1;
|
|
14
|
+
export declare const PROT_WRITE = 2;
|
|
15
|
+
export declare const MAP_SHARED = 1;
|
|
16
|
+
export declare class LibcWrapper {
|
|
17
|
+
private _shm_open;
|
|
18
|
+
private _ftruncate;
|
|
19
|
+
private _close;
|
|
20
|
+
private _mmap;
|
|
21
|
+
constructor(libc: koffi.IKoffiLib);
|
|
22
|
+
shmOpen(name: string, flags: number, mode: number): number;
|
|
23
|
+
fTruncate(fd: number, length: number): number;
|
|
24
|
+
close(fd: number): number;
|
|
25
|
+
mmapToArrayBuffer(fd: number, size: number): ArrayBuffer;
|
|
26
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.LibcWrapper = exports.MAP_SHARED = exports.PROT_WRITE = exports.PROT_READ = exports.O_RDWR = exports.O_CREAT = void 0;
|
|
7
|
+
const koffi_1 = __importDefault(require("koffi"));
|
|
8
|
+
exports.O_CREAT = 0x0200;
|
|
9
|
+
exports.O_RDWR = 0x0002;
|
|
10
|
+
exports.PROT_READ = 0x1;
|
|
11
|
+
exports.PROT_WRITE = 0x2;
|
|
12
|
+
exports.MAP_SHARED = 0x01;
|
|
13
|
+
class LibcWrapper {
|
|
14
|
+
constructor(libc) {
|
|
15
|
+
this._shm_open = libc.func('int shm_open(const char* name, int oflag, int mode)');
|
|
16
|
+
this._ftruncate = libc.func('int ftruncate(int fd, long length)');
|
|
17
|
+
this._close = libc.func('int close(int fd)');
|
|
18
|
+
this._mmap = libc.func('void* mmap(void* addr, size_t len, int prot, int flags, int fd, long off)');
|
|
19
|
+
}
|
|
20
|
+
shmOpen(name, flags, mode) {
|
|
21
|
+
return this._shm_open(name, flags, mode);
|
|
22
|
+
}
|
|
23
|
+
fTruncate(fd, length) {
|
|
24
|
+
return this._ftruncate(fd, length);
|
|
25
|
+
}
|
|
26
|
+
close(fd) {
|
|
27
|
+
return this._close(fd);
|
|
28
|
+
}
|
|
29
|
+
mmapToArrayBuffer(fd, size) {
|
|
30
|
+
// mmap returns a Buffer *whose internal pointer* is the mapped region
|
|
31
|
+
// eslint-disable-next-line no-bitwise
|
|
32
|
+
const ptrBuf = this._mmap(null, size, exports.PROT_READ | exports.PROT_WRITE, exports.MAP_SHARED, fd, 0);
|
|
33
|
+
return koffi_1.default.view(ptrBuf, size);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.LibcWrapper = LibcWrapper;
|
|
37
|
+
//# sourceMappingURL=libcwrapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"libcwrapper.js","sourceRoot":"","sources":["../../../library/classifier/libcwrapper.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAYb,QAAA,OAAO,GAAG,MAAM,CAAC;AACjB,QAAA,MAAM,GAAG,MAAM,CAAC;AAChB,QAAA,SAAS,GAAG,GAAG,CAAC;AAChB,QAAA,UAAU,GAAG,GAAG,CAAC;AACjB,QAAA,UAAU,GAAG,IAAI,CAAC;AAE/B,MAAa,WAAW;IAMpB,YAAY,IAAqB;QAC7B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,qDAAqD,CAAC,CAAC;QAClF,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,oCAAoC,CAAC,CAAC;QAClE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;QAC7C,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,2EAA2E,CAAC,CAAC;IACxG,CAAC;IAED,OAAO,CAAC,IAAY,EAAE,KAAa,EAAE,IAAY;QAC7C,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;IAC7C,CAAC;IAED,SAAS,CAAC,EAAU,EAAE,MAAc;QAChC,OAAO,IAAI,CAAC,UAAU,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;IACvC,CAAC;IAED,KAAK,CAAC,EAAU;QACZ,OAAO,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAC3B,CAAC;IAED,iBAAiB,CAAC,EAAU,EAAE,IAAY;QACtC,sEAAsE;QACtE,sCAAsC;QACtC,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,iBAAS,GAAG,kBAAU,EAAE,kBAAU,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;QACjF,OAAO,eAAK,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACpC,CAAC;CACJ;AA/BD,kCA+BC"}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
export type RunnerErrorResponse = {
|
|
2
|
+
success: false;
|
|
3
|
+
error: string;
|
|
4
|
+
};
|
|
5
|
+
export type RunnerHelloRequest = {
|
|
6
|
+
hello: 1;
|
|
7
|
+
};
|
|
8
|
+
export declare enum RunnerHelloHasAnomaly {
|
|
9
|
+
None = 0,
|
|
10
|
+
KMeans = 1,
|
|
11
|
+
GMM = 2,
|
|
12
|
+
VisualGMM = 3,
|
|
13
|
+
VisualPatchcore = 4
|
|
14
|
+
}
|
|
15
|
+
export declare enum RunnerHelloInferencingEngine {
|
|
16
|
+
None = 255,
|
|
17
|
+
Utensor = 1,
|
|
18
|
+
Tflite = 2,
|
|
19
|
+
Cubeai = 3,
|
|
20
|
+
TfliteFull = 4,
|
|
21
|
+
TensaiFlow = 5,
|
|
22
|
+
TensorRT = 6,
|
|
23
|
+
Drpai = 7,
|
|
24
|
+
TfliteTidl = 8,
|
|
25
|
+
Akida = 9,
|
|
26
|
+
Syntiant = 10,
|
|
27
|
+
OnnxTidl = 11,
|
|
28
|
+
Memryx = 12
|
|
29
|
+
}
|
|
30
|
+
export type RunnerHelloResponseModelParameters = {
|
|
31
|
+
axis_count: number;
|
|
32
|
+
frequency: number;
|
|
33
|
+
has_anomaly: RunnerHelloHasAnomaly;
|
|
34
|
+
/**
|
|
35
|
+
* NOTE: This field is _experimental_. It might change when object tracking
|
|
36
|
+
* is released publicly.
|
|
37
|
+
*/
|
|
38
|
+
has_object_tracking?: boolean;
|
|
39
|
+
input_features_count: number;
|
|
40
|
+
image_input_height: number;
|
|
41
|
+
image_input_width: number;
|
|
42
|
+
image_input_frames: number;
|
|
43
|
+
image_channel_count: number;
|
|
44
|
+
image_resize_mode?: 'none' | 'fit-shortest' | 'fit-longest' | 'squash';
|
|
45
|
+
interval_ms: number;
|
|
46
|
+
label_count: number;
|
|
47
|
+
sensor: number;
|
|
48
|
+
labels: string[];
|
|
49
|
+
model_type: 'classification' | 'object_detection' | 'constrained_object_detection';
|
|
50
|
+
slice_size: undefined | number;
|
|
51
|
+
use_continuous_mode: undefined | boolean;
|
|
52
|
+
inferencing_engine?: undefined | RunnerHelloInferencingEngine;
|
|
53
|
+
thresholds: ({
|
|
54
|
+
id: number;
|
|
55
|
+
type: 'anomaly_gmm';
|
|
56
|
+
min_anomaly_score: number;
|
|
57
|
+
} | {
|
|
58
|
+
id: number;
|
|
59
|
+
type: 'object_detection';
|
|
60
|
+
min_score: number;
|
|
61
|
+
} | {
|
|
62
|
+
id: number;
|
|
63
|
+
type: 'object_tracking';
|
|
64
|
+
keep_grace: number;
|
|
65
|
+
max_observations: number;
|
|
66
|
+
threshold: number;
|
|
67
|
+
})[] | undefined;
|
|
68
|
+
};
|
|
69
|
+
export type RunnerHelloResponseProject = {
|
|
70
|
+
deploy_version: number;
|
|
71
|
+
id: number;
|
|
72
|
+
name: string;
|
|
73
|
+
owner: string;
|
|
74
|
+
};
|
|
75
|
+
export type RunnerHelloResponseInferencingEngine = {
|
|
76
|
+
inferencing_engine?: undefined | RunnerHelloInferencingEngine;
|
|
77
|
+
properties?: undefined | string[];
|
|
78
|
+
};
|
|
79
|
+
export type RunnerHelloResponse = {
|
|
80
|
+
features_shm?: {
|
|
81
|
+
name: string;
|
|
82
|
+
size_bytes: number;
|
|
83
|
+
type: 'float32';
|
|
84
|
+
elements: number;
|
|
85
|
+
};
|
|
86
|
+
features_shm_error?: string;
|
|
87
|
+
model_parameters: RunnerHelloResponseModelParameters;
|
|
88
|
+
project: RunnerHelloResponseProject;
|
|
89
|
+
inferencing_engine: RunnerHelloResponseInferencingEngine;
|
|
90
|
+
success: true;
|
|
91
|
+
} | RunnerErrorResponse;
|
|
92
|
+
export type RunnerClassifyRequest = {
|
|
93
|
+
classify: number[];
|
|
94
|
+
} | {
|
|
95
|
+
classify_shm: {
|
|
96
|
+
elements: number;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
export type RunnerClassifyContinuousRequest = {
|
|
100
|
+
classify_continuous: number[];
|
|
101
|
+
} | {
|
|
102
|
+
classify_continuous_shm: {
|
|
103
|
+
elements: number;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
export type RunnerClassifyResponseSuccess = {
|
|
107
|
+
result: {
|
|
108
|
+
classification?: {
|
|
109
|
+
[k: string]: number;
|
|
110
|
+
};
|
|
111
|
+
bounding_boxes?: {
|
|
112
|
+
label: string;
|
|
113
|
+
value: number;
|
|
114
|
+
x: number;
|
|
115
|
+
y: number;
|
|
116
|
+
width: number;
|
|
117
|
+
height: number;
|
|
118
|
+
}[];
|
|
119
|
+
/**
|
|
120
|
+
* NOTE: This field is _experimental_. It might change when object tracking
|
|
121
|
+
* is released publicly.
|
|
122
|
+
*/
|
|
123
|
+
object_tracking?: {
|
|
124
|
+
object_id: number;
|
|
125
|
+
label: string;
|
|
126
|
+
value: number;
|
|
127
|
+
x: number;
|
|
128
|
+
y: number;
|
|
129
|
+
width: number;
|
|
130
|
+
height: number;
|
|
131
|
+
}[];
|
|
132
|
+
visual_anomaly_grid?: {
|
|
133
|
+
label: string;
|
|
134
|
+
value: number;
|
|
135
|
+
x: number;
|
|
136
|
+
y: number;
|
|
137
|
+
width: number;
|
|
138
|
+
height: number;
|
|
139
|
+
}[];
|
|
140
|
+
visual_anomaly_max?: number;
|
|
141
|
+
visual_anomaly_mean?: number;
|
|
142
|
+
anomaly?: number;
|
|
143
|
+
};
|
|
144
|
+
timing: {
|
|
145
|
+
dsp: number;
|
|
146
|
+
classification: number;
|
|
147
|
+
anomaly: number;
|
|
148
|
+
};
|
|
149
|
+
info?: string;
|
|
150
|
+
};
|
|
151
|
+
export type RunnerClassifyResponse = ({
|
|
152
|
+
success: true;
|
|
153
|
+
} & RunnerClassifyResponseSuccess) | RunnerErrorResponse;
|
|
154
|
+
export type RunnerSetThresholdRequest = {
|
|
155
|
+
set_threshold: {
|
|
156
|
+
id: number;
|
|
157
|
+
min_anomaly_score: number;
|
|
158
|
+
} | {
|
|
159
|
+
id: number;
|
|
160
|
+
min_score: number;
|
|
161
|
+
} | {
|
|
162
|
+
id: number;
|
|
163
|
+
keep_grace: number;
|
|
164
|
+
max_observations: number;
|
|
165
|
+
threshold: number;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
export type RunnerSetThresholdResponse = {
|
|
169
|
+
success: true;
|
|
170
|
+
} | RunnerErrorResponse;
|
|
171
|
+
export type ModelInformation = {
|
|
172
|
+
project: RunnerHelloResponseProject;
|
|
173
|
+
modelParameters: RunnerHelloResponseModelParameters & {
|
|
174
|
+
sensorType: 'unknown' | 'accelerometer' | 'microphone' | 'camera' | 'positional';
|
|
175
|
+
};
|
|
176
|
+
inferencingEngine: RunnerHelloResponseInferencingEngine;
|
|
177
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RunnerHelloInferencingEngine = exports.RunnerHelloHasAnomaly = void 0;
|
|
4
|
+
var RunnerHelloHasAnomaly;
|
|
5
|
+
(function (RunnerHelloHasAnomaly) {
|
|
6
|
+
RunnerHelloHasAnomaly[RunnerHelloHasAnomaly["None"] = 0] = "None";
|
|
7
|
+
RunnerHelloHasAnomaly[RunnerHelloHasAnomaly["KMeans"] = 1] = "KMeans";
|
|
8
|
+
RunnerHelloHasAnomaly[RunnerHelloHasAnomaly["GMM"] = 2] = "GMM";
|
|
9
|
+
RunnerHelloHasAnomaly[RunnerHelloHasAnomaly["VisualGMM"] = 3] = "VisualGMM";
|
|
10
|
+
RunnerHelloHasAnomaly[RunnerHelloHasAnomaly["VisualPatchcore"] = 4] = "VisualPatchcore";
|
|
11
|
+
})(RunnerHelloHasAnomaly = exports.RunnerHelloHasAnomaly || (exports.RunnerHelloHasAnomaly = {}));
|
|
12
|
+
var RunnerHelloInferencingEngine;
|
|
13
|
+
(function (RunnerHelloInferencingEngine) {
|
|
14
|
+
RunnerHelloInferencingEngine[RunnerHelloInferencingEngine["None"] = 255] = "None";
|
|
15
|
+
RunnerHelloInferencingEngine[RunnerHelloInferencingEngine["Utensor"] = 1] = "Utensor";
|
|
16
|
+
RunnerHelloInferencingEngine[RunnerHelloInferencingEngine["Tflite"] = 2] = "Tflite";
|
|
17
|
+
RunnerHelloInferencingEngine[RunnerHelloInferencingEngine["Cubeai"] = 3] = "Cubeai";
|
|
18
|
+
RunnerHelloInferencingEngine[RunnerHelloInferencingEngine["TfliteFull"] = 4] = "TfliteFull";
|
|
19
|
+
RunnerHelloInferencingEngine[RunnerHelloInferencingEngine["TensaiFlow"] = 5] = "TensaiFlow";
|
|
20
|
+
RunnerHelloInferencingEngine[RunnerHelloInferencingEngine["TensorRT"] = 6] = "TensorRT";
|
|
21
|
+
RunnerHelloInferencingEngine[RunnerHelloInferencingEngine["Drpai"] = 7] = "Drpai";
|
|
22
|
+
RunnerHelloInferencingEngine[RunnerHelloInferencingEngine["TfliteTidl"] = 8] = "TfliteTidl";
|
|
23
|
+
RunnerHelloInferencingEngine[RunnerHelloInferencingEngine["Akida"] = 9] = "Akida";
|
|
24
|
+
RunnerHelloInferencingEngine[RunnerHelloInferencingEngine["Syntiant"] = 10] = "Syntiant";
|
|
25
|
+
RunnerHelloInferencingEngine[RunnerHelloInferencingEngine["OnnxTidl"] = 11] = "OnnxTidl";
|
|
26
|
+
RunnerHelloInferencingEngine[RunnerHelloInferencingEngine["Memryx"] = 12] = "Memryx";
|
|
27
|
+
})(RunnerHelloInferencingEngine = exports.RunnerHelloInferencingEngine || (exports.RunnerHelloInferencingEngine = {}));
|
|
28
|
+
//# sourceMappingURL=linux-impulse-runner-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linux-impulse-runner-types.js","sourceRoot":"","sources":["../../../library/classifier/linux-impulse-runner-types.ts"],"names":[],"mappings":";;;AASA,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAC7B,iEAAQ,CAAA;IACR,qEAAU,CAAA;IACV,+DAAO,CAAA;IACP,2EAAa,CAAA;IACb,uFAAmB,CAAA;AACvB,CAAC,EANW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAMhC;AAED,IAAY,4BAcX;AAdD,WAAY,4BAA4B;IACpC,iFAAU,CAAA;IACV,qFAAW,CAAA;IACX,mFAAU,CAAA;IACV,mFAAU,CAAA;IACV,2FAAc,CAAA;IACd,2FAAc,CAAA;IACd,uFAAY,CAAA;IACZ,iFAAS,CAAA;IACT,2FAAc,CAAA;IACd,iFAAS,CAAA;IACT,wFAAa,CAAA;IACb,wFAAa,CAAA;IACb,oFAAW,CAAA;AACf,CAAC,EAdW,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAcvC"}
|
|
@@ -1,120 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
KMeans = 1,
|
|
4
|
-
GMM = 2,
|
|
5
|
-
VisualGMM = 3
|
|
6
|
-
}
|
|
7
|
-
export declare enum RunnerHelloInferencingEngine {
|
|
8
|
-
None = 255,
|
|
9
|
-
Utensor = 1,
|
|
10
|
-
Tflite = 2,
|
|
11
|
-
Cubeai = 3,
|
|
12
|
-
TfliteFull = 4,
|
|
13
|
-
TensaiFlow = 5,
|
|
14
|
-
TensorRT = 6,
|
|
15
|
-
Drpai = 7,
|
|
16
|
-
TfliteTidl = 8,
|
|
17
|
-
Akida = 9,
|
|
18
|
-
Syntiant = 10,
|
|
19
|
-
OnnxTidl = 11,
|
|
20
|
-
Memryx = 12
|
|
21
|
-
}
|
|
22
|
-
export type RunnerHelloResponseModelParameters = {
|
|
23
|
-
axis_count: number;
|
|
24
|
-
frequency: number;
|
|
25
|
-
has_anomaly: RunnerHelloHasAnomaly;
|
|
26
|
-
/**
|
|
27
|
-
* NOTE: This field is _experimental_. It might change when object tracking
|
|
28
|
-
* is released publicly.
|
|
29
|
-
*/
|
|
30
|
-
has_object_tracking?: boolean;
|
|
31
|
-
input_features_count: number;
|
|
32
|
-
image_input_height: number;
|
|
33
|
-
image_input_width: number;
|
|
34
|
-
image_input_frames: number;
|
|
35
|
-
image_channel_count: number;
|
|
36
|
-
image_resize_mode?: 'none' | 'fit-shortest' | 'fit-longest' | 'squash';
|
|
37
|
-
interval_ms: number;
|
|
38
|
-
label_count: number;
|
|
39
|
-
sensor: number;
|
|
40
|
-
labels: string[];
|
|
41
|
-
model_type: 'classification' | 'object_detection' | 'constrained_object_detection';
|
|
42
|
-
slice_size: undefined | number;
|
|
43
|
-
use_continuous_mode: undefined | boolean;
|
|
44
|
-
inferencing_engine?: undefined | RunnerHelloInferencingEngine;
|
|
45
|
-
thresholds: ({
|
|
46
|
-
id: number;
|
|
47
|
-
type: 'anomaly_gmm';
|
|
48
|
-
min_anomaly_score: number;
|
|
49
|
-
} | {
|
|
50
|
-
id: number;
|
|
51
|
-
type: 'object_detection';
|
|
52
|
-
min_score: number;
|
|
53
|
-
} | {
|
|
54
|
-
id: number;
|
|
55
|
-
type: 'object_tracking';
|
|
56
|
-
keep_grace: number;
|
|
57
|
-
max_observations: number;
|
|
58
|
-
threshold: number;
|
|
59
|
-
})[] | undefined;
|
|
60
|
-
};
|
|
61
|
-
export type RunnerHelloResponseProject = {
|
|
62
|
-
deploy_version: number;
|
|
63
|
-
id: number;
|
|
64
|
-
name: string;
|
|
65
|
-
owner: string;
|
|
66
|
-
};
|
|
67
|
-
export type RunnerClassifyResponseSuccess = {
|
|
68
|
-
result: {
|
|
69
|
-
classification?: {
|
|
70
|
-
[k: string]: number;
|
|
71
|
-
};
|
|
72
|
-
bounding_boxes?: {
|
|
73
|
-
label: string;
|
|
74
|
-
value: number;
|
|
75
|
-
x: number;
|
|
76
|
-
y: number;
|
|
77
|
-
width: number;
|
|
78
|
-
height: number;
|
|
79
|
-
}[];
|
|
80
|
-
/**
|
|
81
|
-
* NOTE: This field is _experimental_. It might change when object tracking
|
|
82
|
-
* is released publicly.
|
|
83
|
-
*/
|
|
84
|
-
object_tracking?: {
|
|
85
|
-
object_id: number;
|
|
86
|
-
label: string;
|
|
87
|
-
value: number;
|
|
88
|
-
x: number;
|
|
89
|
-
y: number;
|
|
90
|
-
width: number;
|
|
91
|
-
height: number;
|
|
92
|
-
}[];
|
|
93
|
-
visual_anomaly_grid?: {
|
|
94
|
-
label: string;
|
|
95
|
-
value: number;
|
|
96
|
-
x: number;
|
|
97
|
-
y: number;
|
|
98
|
-
width: number;
|
|
99
|
-
height: number;
|
|
100
|
-
}[];
|
|
101
|
-
visual_anomaly_max?: number;
|
|
102
|
-
visual_anomaly_mean?: number;
|
|
103
|
-
anomaly?: number;
|
|
104
|
-
};
|
|
105
|
-
timing: {
|
|
106
|
-
dsp: number;
|
|
107
|
-
classification: number;
|
|
108
|
-
anomaly: number;
|
|
109
|
-
};
|
|
110
|
-
info?: string;
|
|
111
|
-
};
|
|
112
|
-
export type ModelInformation = {
|
|
113
|
-
project: RunnerHelloResponseProject;
|
|
114
|
-
modelParameters: RunnerHelloResponseModelParameters & {
|
|
115
|
-
sensorType: 'unknown' | 'accelerometer' | 'microphone' | 'camera' | 'positional';
|
|
116
|
-
};
|
|
117
|
-
};
|
|
1
|
+
import { ModelInformation, RunnerClassifyResponseSuccess } from './linux-impulse-runner-types';
|
|
2
|
+
export * from './linux-impulse-runner-types';
|
|
118
3
|
export declare class LinuxImpulseRunner {
|
|
119
4
|
private _path;
|
|
120
5
|
private _runner;
|
|
@@ -123,20 +8,35 @@ export declare class LinuxImpulseRunner {
|
|
|
123
8
|
private _id;
|
|
124
9
|
private _stopped;
|
|
125
10
|
private _socket;
|
|
11
|
+
private _shm;
|
|
12
|
+
private _verbose;
|
|
13
|
+
private _shmBehavior;
|
|
14
|
+
private _valgrind;
|
|
15
|
+
private _stdout;
|
|
126
16
|
/**
|
|
127
17
|
* Start a new impulse runner
|
|
128
18
|
* @param path Path to the runner's executable
|
|
129
19
|
*/
|
|
130
|
-
constructor(path: string
|
|
20
|
+
constructor(path: string, opts?: {
|
|
21
|
+
valgrind?: boolean;
|
|
22
|
+
verbose?: boolean;
|
|
23
|
+
shmBehavior?: 'auto' | 'always' | 'never';
|
|
24
|
+
throwOnShmInitFailed?: boolean;
|
|
25
|
+
});
|
|
131
26
|
/**
|
|
132
27
|
* Initialize the runner
|
|
133
28
|
* This returns information about the model
|
|
134
29
|
*/
|
|
135
30
|
init(modelPath?: string): Promise<ModelInformation>;
|
|
31
|
+
/**
|
|
32
|
+
* Whether we should warm up the GPU for this model
|
|
33
|
+
* @param modelInfo Model information returned from EIM (hello message response)
|
|
34
|
+
*/
|
|
35
|
+
shouldWarmGpu(modelInfo: ModelInformation): boolean;
|
|
136
36
|
/**
|
|
137
37
|
* Stop the classification process
|
|
138
38
|
*/
|
|
139
|
-
stop(): Promise<
|
|
39
|
+
stop(): Promise<string>;
|
|
140
40
|
/**
|
|
141
41
|
* Get information about the model, this is only available
|
|
142
42
|
* after the runner has been initialized
|
|
@@ -153,7 +53,7 @@ export declare class LinuxImpulseRunner {
|
|
|
153
53
|
* @param data An array of numbers, already formatted according to the rules in
|
|
154
54
|
* https://docs.edgeimpulse.com/docs/running-your-impulse-locally-1
|
|
155
55
|
*/
|
|
156
|
-
classifyContinuous(data: number[]): Promise<RunnerClassifyResponseSuccess>;
|
|
56
|
+
classifyContinuous(data: number[], timeout?: number): Promise<RunnerClassifyResponseSuccess>;
|
|
157
57
|
setLearnBlockThreshold(obj: {
|
|
158
58
|
id: number;
|
|
159
59
|
type: 'anomaly_gmm';
|