@eyepop.ai/eyepop 1.14.4 → 1.15.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/dist/eyepop.index.d.mts +167 -163
- package/dist/eyepop.index.d.ts +167 -163
- package/dist/eyepop.index.js +75 -681
- package/dist/eyepop.index.js.map +1 -1
- package/dist/eyepop.index.mjs +75 -681
- package/dist/eyepop.index.mjs.map +1 -1
- package/dist/eyepop.min.js +1 -1
- package/package.json +1 -1
package/dist/eyepop.index.d.mts
CHANGED
|
@@ -99,6 +99,162 @@ interface PredictedKeyPoint extends Point3d, PredictedClass {
|
|
|
99
99
|
visible: boolean | undefined;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
+
interface WorkerSession extends Session {
|
|
103
|
+
readonly popId: string;
|
|
104
|
+
readonly baseUrl: string | undefined;
|
|
105
|
+
readonly pipelineId: string | undefined;
|
|
106
|
+
readonly sandboxId: string | undefined;
|
|
107
|
+
authenticationHeaders(): any;
|
|
108
|
+
}
|
|
109
|
+
interface LiveMedia {
|
|
110
|
+
ingressId(): string;
|
|
111
|
+
stream(): Promise<MediaStream>;
|
|
112
|
+
close(): Promise<void>;
|
|
113
|
+
}
|
|
114
|
+
declare enum VideoMode {
|
|
115
|
+
STREAM = "stream",
|
|
116
|
+
BUFFER = "buffer"
|
|
117
|
+
}
|
|
118
|
+
interface IngressEvent {
|
|
119
|
+
readonly ingressId: string;
|
|
120
|
+
readonly event: 'stream-ready' | 'stream-not-ready';
|
|
121
|
+
}
|
|
122
|
+
interface FileSource {
|
|
123
|
+
readonly file: File;
|
|
124
|
+
readonly videoMode?: VideoMode | undefined;
|
|
125
|
+
}
|
|
126
|
+
interface StreamSource {
|
|
127
|
+
readonly stream: ReadableStream<Uint8Array> | Blob | BufferSource;
|
|
128
|
+
readonly mimeType: string;
|
|
129
|
+
readonly size?: number | undefined;
|
|
130
|
+
readonly videoMode?: VideoMode | undefined;
|
|
131
|
+
}
|
|
132
|
+
interface PathSource {
|
|
133
|
+
readonly path: string;
|
|
134
|
+
readonly mimeType?: string | undefined;
|
|
135
|
+
readonly videoMode?: VideoMode | undefined;
|
|
136
|
+
}
|
|
137
|
+
interface LiveSource {
|
|
138
|
+
readonly ingressId: string;
|
|
139
|
+
}
|
|
140
|
+
interface UrlSource {
|
|
141
|
+
readonly url: string;
|
|
142
|
+
}
|
|
143
|
+
type Source = FileSource | StreamSource | PathSource | LiveSource | UrlSource;
|
|
144
|
+
interface ResultStream extends AsyncIterable<Prediction> {
|
|
145
|
+
cancel(): void;
|
|
146
|
+
}
|
|
147
|
+
type SourcesEntry = {
|
|
148
|
+
readonly authority: string;
|
|
149
|
+
readonly manifest: string;
|
|
150
|
+
};
|
|
151
|
+
declare enum ModelFormat {
|
|
152
|
+
TensorFlowLite = "TensorFlowLite",
|
|
153
|
+
TensorFlowGraphDef = "TensorFlowGraphDef",
|
|
154
|
+
ONNX = "ONNX",
|
|
155
|
+
TorchScript = "TorchScript",
|
|
156
|
+
TorchScriptCpu = "TorchScriptCpu",
|
|
157
|
+
TorchScriptCuda = "TorchScriptCuda"
|
|
158
|
+
}
|
|
159
|
+
declare enum ModelPrecisionType {
|
|
160
|
+
float32 = "float32",
|
|
161
|
+
float16 = "float16",
|
|
162
|
+
int32 = "int32",
|
|
163
|
+
int8 = "int8",
|
|
164
|
+
uint8 = "uint8"
|
|
165
|
+
}
|
|
166
|
+
interface ModelInstanceDef {
|
|
167
|
+
id?: string;
|
|
168
|
+
model_folder_url?: string;
|
|
169
|
+
model_id?: string;
|
|
170
|
+
dataset?: string;
|
|
171
|
+
version?: string;
|
|
172
|
+
format?: ModelFormat;
|
|
173
|
+
type?: ModelPrecisionType;
|
|
174
|
+
}
|
|
175
|
+
declare enum PopComponentType {
|
|
176
|
+
FORWARD = "forward",
|
|
177
|
+
INFERENCE = "inference",
|
|
178
|
+
TRACING = "tracing",
|
|
179
|
+
CONTOUR_FINDER = "contour_finder",
|
|
180
|
+
COMPONENT_FINDER = "component_finder"
|
|
181
|
+
}
|
|
182
|
+
declare enum ForwardOperatorType {
|
|
183
|
+
FULL = "full",
|
|
184
|
+
CROP = "crop",
|
|
185
|
+
CROP_WITH_FULL_FALLBACK = "crop_with_full_fallback"
|
|
186
|
+
}
|
|
187
|
+
interface PopCrop {
|
|
188
|
+
maxItems?: number;
|
|
189
|
+
boxPadding?: number;
|
|
190
|
+
orientationTargetAngle?: number;
|
|
191
|
+
}
|
|
192
|
+
interface PopForwardOperator {
|
|
193
|
+
type: ForwardOperatorType;
|
|
194
|
+
includeClasses?: string[];
|
|
195
|
+
crop?: PopCrop;
|
|
196
|
+
}
|
|
197
|
+
interface PopForward {
|
|
198
|
+
operator?: PopForwardOperator;
|
|
199
|
+
targets: PopComponent[];
|
|
200
|
+
}
|
|
201
|
+
interface BaseComponent {
|
|
202
|
+
type: PopComponentType;
|
|
203
|
+
forward?: PopForward;
|
|
204
|
+
}
|
|
205
|
+
interface ForwardComponent extends BaseComponent {
|
|
206
|
+
}
|
|
207
|
+
declare enum InferenceType {
|
|
208
|
+
IMAGE_CLASSIFICATION = "image_classification",
|
|
209
|
+
OBJECT_DETECTION = "object_detection",
|
|
210
|
+
KEY_POINTS = "key_points",
|
|
211
|
+
OCR = "ocr",
|
|
212
|
+
MESH = "mesh",
|
|
213
|
+
FEATURE_VECTOR = "feature_vector",
|
|
214
|
+
SEMANTIC_SEGMENTATION = "semantic_segmentation",
|
|
215
|
+
SEGMENTATION = "segmentation"
|
|
216
|
+
}
|
|
217
|
+
interface InferenceComponent extends BaseComponent {
|
|
218
|
+
inferenceTypes: InferenceType[];
|
|
219
|
+
hidden?: boolean;
|
|
220
|
+
modelUuid?: string;
|
|
221
|
+
model?: string;
|
|
222
|
+
categoryName?: string;
|
|
223
|
+
confidenceThreshold?: number;
|
|
224
|
+
targetFps?: string;
|
|
225
|
+
}
|
|
226
|
+
interface TracingComponent extends BaseComponent {
|
|
227
|
+
reidModelUuid?: string;
|
|
228
|
+
reidModel?: string;
|
|
229
|
+
maxAgeSeconds?: number;
|
|
230
|
+
iouThreshold?: number;
|
|
231
|
+
simThreshold?: number;
|
|
232
|
+
}
|
|
233
|
+
declare enum ContourType {
|
|
234
|
+
ALL_PIXELS = "all_pixels",
|
|
235
|
+
POLYGON = "polygon",
|
|
236
|
+
CONVEX_HULL = "convex_hull",
|
|
237
|
+
HOUGH_CIRCLES = "hough_circles",
|
|
238
|
+
CIRCLE = "circle",
|
|
239
|
+
TRIANGLE = "triangle",
|
|
240
|
+
RECTANGLE = "rectangle"
|
|
241
|
+
}
|
|
242
|
+
interface ContourFinderComponent extends BaseComponent {
|
|
243
|
+
contourType: ContourType;
|
|
244
|
+
areaThreshold?: number;
|
|
245
|
+
}
|
|
246
|
+
interface ComponentFinderComponent extends BaseComponent {
|
|
247
|
+
dilate?: number;
|
|
248
|
+
erode?: number;
|
|
249
|
+
keepSource?: boolean;
|
|
250
|
+
componentClassLabel?: string;
|
|
251
|
+
}
|
|
252
|
+
type PopComponent = ForwardComponent | InferenceComponent | TracingComponent | ContourFinderComponent | ComponentFinderComponent;
|
|
253
|
+
interface Pop {
|
|
254
|
+
components: PopComponent[];
|
|
255
|
+
postTransform?: string;
|
|
256
|
+
}
|
|
257
|
+
|
|
102
258
|
interface Auth0Options {
|
|
103
259
|
domain: string;
|
|
104
260
|
clientId: string;
|
|
@@ -131,6 +287,15 @@ interface LocalAuth {
|
|
|
131
287
|
isLocal: true;
|
|
132
288
|
}
|
|
133
289
|
type Authentication = undefined | SecretKeyAuth | SessionAuth | OAuth2Auth | LocalAuth;
|
|
290
|
+
interface HttpClient {
|
|
291
|
+
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
292
|
+
close(): Promise<void>;
|
|
293
|
+
isFullDuplex(): boolean;
|
|
294
|
+
}
|
|
295
|
+
interface PlatformSupport {
|
|
296
|
+
createHttpClient?: (logger: Logger) => Promise<HttpClient>;
|
|
297
|
+
resolvePath: (source: PathSource, logger: Logger) => Promise<StreamSource>;
|
|
298
|
+
}
|
|
134
299
|
interface Options {
|
|
135
300
|
auth?: Authentication | undefined;
|
|
136
301
|
/**
|
|
@@ -141,12 +306,7 @@ interface Options {
|
|
|
141
306
|
eyepopUrl?: string;
|
|
142
307
|
jobQueueLength?: number;
|
|
143
308
|
logger?: Logger | undefined;
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
interface HttpClient {
|
|
147
|
-
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
148
|
-
close(): Promise<void>;
|
|
149
|
-
isFullDuplex(): boolean;
|
|
309
|
+
platformSupport?: PlatformSupport;
|
|
150
310
|
}
|
|
151
311
|
|
|
152
312
|
/** Semaphores are initialized with a number of permits that get aquired and released
|
|
@@ -268,162 +428,6 @@ interface WorkerOptions extends Options {
|
|
|
268
428
|
isLocalMode?: boolean;
|
|
269
429
|
}
|
|
270
430
|
|
|
271
|
-
interface WorkerSession extends Session {
|
|
272
|
-
readonly popId: string;
|
|
273
|
-
readonly baseUrl: string | undefined;
|
|
274
|
-
readonly pipelineId: string | undefined;
|
|
275
|
-
readonly sandboxId: string | undefined;
|
|
276
|
-
authenticationHeaders(): any;
|
|
277
|
-
}
|
|
278
|
-
interface LiveMedia {
|
|
279
|
-
ingressId(): string;
|
|
280
|
-
stream(): Promise<MediaStream>;
|
|
281
|
-
close(): Promise<void>;
|
|
282
|
-
}
|
|
283
|
-
declare enum VideoMode {
|
|
284
|
-
STREAM = "stream",
|
|
285
|
-
BUFFER = "buffer"
|
|
286
|
-
}
|
|
287
|
-
interface IngressEvent {
|
|
288
|
-
readonly ingressId: string;
|
|
289
|
-
readonly event: 'stream-ready' | 'stream-not-ready';
|
|
290
|
-
}
|
|
291
|
-
interface FileSource {
|
|
292
|
-
readonly file: File;
|
|
293
|
-
readonly videoMode?: VideoMode | undefined;
|
|
294
|
-
}
|
|
295
|
-
interface StreamSource {
|
|
296
|
-
readonly stream: ReadableStream<Uint8Array> | Blob | BufferSource;
|
|
297
|
-
readonly mimeType: string;
|
|
298
|
-
readonly size?: number | undefined;
|
|
299
|
-
readonly videoMode?: VideoMode | undefined;
|
|
300
|
-
}
|
|
301
|
-
interface PathSource {
|
|
302
|
-
readonly path: string;
|
|
303
|
-
readonly mimeType?: string | undefined;
|
|
304
|
-
readonly videoMode?: VideoMode | undefined;
|
|
305
|
-
}
|
|
306
|
-
interface LiveSource {
|
|
307
|
-
readonly ingressId: string;
|
|
308
|
-
}
|
|
309
|
-
interface UrlSource {
|
|
310
|
-
readonly url: string;
|
|
311
|
-
}
|
|
312
|
-
type Source = FileSource | StreamSource | PathSource | LiveSource | UrlSource;
|
|
313
|
-
interface ResultStream extends AsyncIterable<Prediction> {
|
|
314
|
-
cancel(): void;
|
|
315
|
-
}
|
|
316
|
-
type SourcesEntry = {
|
|
317
|
-
readonly authority: string;
|
|
318
|
-
readonly manifest: string;
|
|
319
|
-
};
|
|
320
|
-
declare enum ModelFormat {
|
|
321
|
-
TensorFlowLite = "TensorFlowLite",
|
|
322
|
-
TensorFlowGraphDef = "TensorFlowGraphDef",
|
|
323
|
-
ONNX = "ONNX",
|
|
324
|
-
TorchScript = "TorchScript",
|
|
325
|
-
TorchScriptCpu = "TorchScriptCpu",
|
|
326
|
-
TorchScriptCuda = "TorchScriptCuda"
|
|
327
|
-
}
|
|
328
|
-
declare enum ModelPrecisionType {
|
|
329
|
-
float32 = "float32",
|
|
330
|
-
float16 = "float16",
|
|
331
|
-
int32 = "int32",
|
|
332
|
-
int8 = "int8",
|
|
333
|
-
uint8 = "uint8"
|
|
334
|
-
}
|
|
335
|
-
interface ModelInstanceDef {
|
|
336
|
-
id?: string;
|
|
337
|
-
model_folder_url?: string;
|
|
338
|
-
model_id?: string;
|
|
339
|
-
dataset?: string;
|
|
340
|
-
version?: string;
|
|
341
|
-
format?: ModelFormat;
|
|
342
|
-
type?: ModelPrecisionType;
|
|
343
|
-
}
|
|
344
|
-
declare enum PopComponentType {
|
|
345
|
-
FORWARD = "forward",
|
|
346
|
-
INFERENCE = "inference",
|
|
347
|
-
TRACING = "tracing",
|
|
348
|
-
CONTOUR_FINDER = "contour_finder",
|
|
349
|
-
COMPONENT_FINDER = "component_finder"
|
|
350
|
-
}
|
|
351
|
-
declare enum ForwardOperatorType {
|
|
352
|
-
FULL = "full",
|
|
353
|
-
CROP = "crop",
|
|
354
|
-
CROP_WITH_FULL_FALLBACK = "crop_with_full_fallback"
|
|
355
|
-
}
|
|
356
|
-
interface PopCrop {
|
|
357
|
-
maxItems?: number;
|
|
358
|
-
boxPadding?: number;
|
|
359
|
-
orientationTargetAngle?: number;
|
|
360
|
-
}
|
|
361
|
-
interface PopForwardOperator {
|
|
362
|
-
type: ForwardOperatorType;
|
|
363
|
-
includeClasses?: string[];
|
|
364
|
-
crop?: PopCrop;
|
|
365
|
-
}
|
|
366
|
-
interface PopForward {
|
|
367
|
-
operator?: PopForwardOperator;
|
|
368
|
-
targets: PopComponent[];
|
|
369
|
-
}
|
|
370
|
-
interface BaseComponent {
|
|
371
|
-
type: PopComponentType;
|
|
372
|
-
forward?: PopForward;
|
|
373
|
-
}
|
|
374
|
-
interface ForwardComponent extends BaseComponent {
|
|
375
|
-
}
|
|
376
|
-
declare enum InferenceType {
|
|
377
|
-
IMAGE_CLASSIFICATION = "image_classification",
|
|
378
|
-
OBJECT_DETECTION = "object_detection",
|
|
379
|
-
KEY_POINTS = "key_points",
|
|
380
|
-
OCR = "ocr",
|
|
381
|
-
MESH = "mesh",
|
|
382
|
-
FEATURE_VECTOR = "feature_vector",
|
|
383
|
-
SEMANTIC_SEGMENTATION = "semantic_segmentation",
|
|
384
|
-
SEGMENTATION = "segmentation"
|
|
385
|
-
}
|
|
386
|
-
interface InferenceComponent extends BaseComponent {
|
|
387
|
-
inferenceTypes: InferenceType[];
|
|
388
|
-
hidden?: boolean;
|
|
389
|
-
modelUuid?: string;
|
|
390
|
-
model?: string;
|
|
391
|
-
categoryName?: string;
|
|
392
|
-
confidenceThreshold?: number;
|
|
393
|
-
targetFps?: string;
|
|
394
|
-
}
|
|
395
|
-
interface TracingComponent extends BaseComponent {
|
|
396
|
-
reidModelUuid?: string;
|
|
397
|
-
reidModel?: string;
|
|
398
|
-
maxAgeSeconds?: number;
|
|
399
|
-
iouThreshold?: number;
|
|
400
|
-
simThreshold?: number;
|
|
401
|
-
}
|
|
402
|
-
declare enum ContourType {
|
|
403
|
-
ALL_PIXELS = "all_pixels",
|
|
404
|
-
POLYGON = "polygon",
|
|
405
|
-
CONVEX_HULL = "convex_hull",
|
|
406
|
-
HOUGH_CIRCLES = "hough_circles",
|
|
407
|
-
CIRCLE = "circle",
|
|
408
|
-
TRIANGLE = "triangle",
|
|
409
|
-
RECTANGLE = "rectangle"
|
|
410
|
-
}
|
|
411
|
-
interface ContourFinderComponent extends BaseComponent {
|
|
412
|
-
contourType: ContourType;
|
|
413
|
-
areaThreshold?: number;
|
|
414
|
-
}
|
|
415
|
-
interface ComponentFinderComponent extends BaseComponent {
|
|
416
|
-
dilate?: number;
|
|
417
|
-
erode?: number;
|
|
418
|
-
keepSource?: boolean;
|
|
419
|
-
componentClassLabel?: string;
|
|
420
|
-
}
|
|
421
|
-
type PopComponent = ForwardComponent | InferenceComponent | TracingComponent | ContourFinderComponent | ComponentFinderComponent;
|
|
422
|
-
interface Pop {
|
|
423
|
-
components: PopComponent[];
|
|
424
|
-
postTransform?: string;
|
|
425
|
-
}
|
|
426
|
-
|
|
427
431
|
interface ModelRef {
|
|
428
432
|
id: string;
|
|
429
433
|
folderUrl: string;
|
|
@@ -941,4 +945,4 @@ declare namespace EyePop {
|
|
|
941
945
|
function dataEndpoint(opts?: DataOptions): DataEndpoint;
|
|
942
946
|
}
|
|
943
947
|
|
|
944
|
-
export { AbstractJob, type Annotation, AnnotationType, ArtifactType, type Asset, type AssetImport, AssetStatus, type Auth0Options, type Authentication, type AutoAnnotateParams, type AutoAnnotatePrompt, AutoAnnotateTask, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type Contour, type ContourFinderComponent, ContourType, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetCreate, type DatasetHeroAssetUpdate, type DatasetParent, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, Endpoint, EndpointState, ExportedBy, EyePop, EyepopLineDecoder, type FileSource, type ForwardComponent, ForwardOperatorType, type InferenceComponent, InferenceType, type IngressEvent, type LiveMedia, type LiveSource, LoadFromJob, LoadLiveIngressJob, type LocalAuth, type Mask, type Model, type ModelCreate, type ModelExport, ModelExportStatus, ModelFormat, type ModelInstanceDef, type ModelMetrics, ModelPrecisionType, type ModelSample, ModelStatus, ModelTask, type ModelTrainingProgress, ModelTrainingStage, ModelType, type ModelUpdate, type OAuth2Auth, type OnChangeEvent, type Options, type PathSource, type Point2d, type Point3d, type Pop, type PopComponent, PopComponentType, type PopCrop, type PopForward, type PopForwardOperator, type PredictedClass, type PredictedKeyPoint, type PredictedKeyPoints, type PredictedMesh, type PredictedObject, type PredictedText, type Prediction, type QcAiHubExportParams, type ResultStream, type Roi, type SecretKeyAuth, Semaphore, type Session, type SessionAuth, type Source, type SourceParams, type SourcesEntry, Stream, type StreamEvent, type StreamSource, type StreamTime, type TracingComponent, TranscodeMode, TransientPopId, UploadJob, type UrlSource, UserReview, VideoMode, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, EyePop as default, readableStreamFromString };
|
|
948
|
+
export { AbstractJob, type Annotation, AnnotationType, ArtifactType, type Asset, type AssetImport, AssetStatus, type Auth0Options, type Authentication, type AutoAnnotateParams, type AutoAnnotatePrompt, AutoAnnotateTask, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type Contour, type ContourFinderComponent, ContourType, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetCreate, type DatasetHeroAssetUpdate, type DatasetParent, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, Endpoint, EndpointState, ExportedBy, EyePop, EyepopLineDecoder, type FileSource, type ForwardComponent, ForwardOperatorType, type HttpClient, type InferenceComponent, InferenceType, type IngressEvent, type LiveMedia, type LiveSource, LoadFromJob, LoadLiveIngressJob, type LocalAuth, type Mask, type Model, type ModelCreate, type ModelExport, ModelExportStatus, ModelFormat, type ModelInstanceDef, type ModelMetrics, ModelPrecisionType, type ModelSample, ModelStatus, ModelTask, type ModelTrainingProgress, ModelTrainingStage, ModelType, type ModelUpdate, type OAuth2Auth, type OnChangeEvent, type Options, type PathSource, type PlatformSupport, type Point2d, type Point3d, type Pop, type PopComponent, PopComponentType, type PopCrop, type PopForward, type PopForwardOperator, type PredictedClass, type PredictedKeyPoint, type PredictedKeyPoints, type PredictedMesh, type PredictedObject, type PredictedText, type Prediction, type QcAiHubExportParams, type ResultStream, type Roi, type SecretKeyAuth, Semaphore, type Session, type SessionAuth, type Source, type SourceParams, type SourcesEntry, Stream, type StreamEvent, type StreamSource, type StreamTime, type TracingComponent, TranscodeMode, TransientPopId, UploadJob, type UrlSource, UserReview, VideoMode, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, EyePop as default, readableStreamFromString };
|