@eyepop.ai/eyepop 1.5.4 → 1.5.6
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/README.md +2 -2
- package/dist/eyepop.index.d.mts +21 -1
- package/dist/eyepop.index.d.ts +21 -1
- package/dist/eyepop.index.js +24 -0
- package/dist/eyepop.index.js.map +1 -1
- package/dist/eyepop.index.mjs +22 -0
- package/dist/eyepop.index.mjs.map +1 -1
- package/dist/eyepop.min.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -212,7 +212,7 @@ const example_video_url = 'https://demo-eyepop-videos.s3.amazonaws.com/test1_vlo
|
|
|
212
212
|
(async() => {
|
|
213
213
|
const endpoint = await EyePop.workerEndpoint().connect()
|
|
214
214
|
try {
|
|
215
|
-
let results = await endpoint.process({url:
|
|
215
|
+
let results = await endpoint.process({url: example_video_url})
|
|
216
216
|
for await (let result of results) {
|
|
217
217
|
console.log(result)
|
|
218
218
|
}
|
|
@@ -232,7 +232,7 @@ const example_video_url = 'https://demo-eyepop-videos.s3.amazonaws.com/test1_vlo
|
|
|
232
232
|
(async() => {
|
|
233
233
|
const endpoint = EyePop.workerEndpoint().connect()
|
|
234
234
|
try {
|
|
235
|
-
let results = await endpoint.process({url:
|
|
235
|
+
let results = await endpoint.process({url: example_video_url})
|
|
236
236
|
for await (let result of results) {
|
|
237
237
|
console.log(result)
|
|
238
238
|
if (result['seconds'] >= 10.0) {
|
package/dist/eyepop.index.d.mts
CHANGED
|
@@ -573,6 +573,24 @@ declare enum ModelStatus {
|
|
|
573
573
|
interface ModelMetrics {
|
|
574
574
|
cpr?: number[][3];
|
|
575
575
|
}
|
|
576
|
+
declare enum ModelExportStatus {
|
|
577
|
+
in_progress = "in_progress",
|
|
578
|
+
finished = "finished",
|
|
579
|
+
error = "error"
|
|
580
|
+
}
|
|
581
|
+
declare enum ExportedBy {
|
|
582
|
+
eyepop = "eyepop",
|
|
583
|
+
qc_ai_hub = "qc_ai_hub"
|
|
584
|
+
}
|
|
585
|
+
interface QcAiHubExportParams {
|
|
586
|
+
device_name: string;
|
|
587
|
+
}
|
|
588
|
+
interface ModelExport {
|
|
589
|
+
format: ModelFormat;
|
|
590
|
+
exported_by: ExportedBy;
|
|
591
|
+
export_params?: QcAiHubExportParams[];
|
|
592
|
+
status: ModelExportStatus;
|
|
593
|
+
}
|
|
576
594
|
interface Model {
|
|
577
595
|
uuid: string;
|
|
578
596
|
name: string;
|
|
@@ -587,6 +605,7 @@ interface Model {
|
|
|
587
605
|
updated_at: Date;
|
|
588
606
|
dataset_uuid: string;
|
|
589
607
|
dataset_version: number;
|
|
608
|
+
exports?: ModelExport[];
|
|
590
609
|
}
|
|
591
610
|
interface ModelCreate {
|
|
592
611
|
name: string;
|
|
@@ -689,6 +708,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
689
708
|
deleteModel(model_uuid: string): Promise<void>;
|
|
690
709
|
trainModel(model_uuid: string): Promise<Model>;
|
|
691
710
|
publishModel(model_uuid: string): Promise<Model>;
|
|
711
|
+
exportModel(model_uuid: string, export_by: ExportedBy, params: QcAiHubExportParams[]): Promise<void>;
|
|
692
712
|
addAccountEventHandler(eventHandler: OnChangeEvent): void;
|
|
693
713
|
removeAccountEventHandler(eventHandler: OnChangeEvent): void;
|
|
694
714
|
addDatasetEventHandler(dataset_uuid: string, eventHandler: OnChangeEvent): void;
|
|
@@ -825,4 +845,4 @@ declare namespace EyePop {
|
|
|
825
845
|
function dataEndpoint(opts?: DataOptions): DataEndpoint;
|
|
826
846
|
}
|
|
827
847
|
|
|
828
|
-
export { AbstractJob, type Annotation, AnnotationType, type Asset, type AssetImport, AssetStatus, type Auth0Options, type Authentication, type AutoAnnotateParams, 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 DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, Endpoint, EndpointState, EyePop, type FileSource, type ForwardComponent, ForwardOperatorType, type InferenceComponent, InferenceType, type IngressEvent, type LiveMedia, type LiveSource, LoadFromJob, LoadLiveIngressJob, type Mask, type Model, type ModelCreate, ModelFormat, type ModelInstanceDef, type ModelMetrics, ModelPrecisionType, type ModelSample, ModelStatus, 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 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, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, EyePop as default };
|
|
848
|
+
export { AbstractJob, type Annotation, AnnotationType, type Asset, type AssetImport, AssetStatus, type Auth0Options, type Authentication, type AutoAnnotateParams, 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 DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, Endpoint, EndpointState, ExportedBy, EyePop, type FileSource, type ForwardComponent, ForwardOperatorType, type InferenceComponent, InferenceType, type IngressEvent, type LiveMedia, type LiveSource, LoadFromJob, LoadLiveIngressJob, type Mask, type Model, type ModelCreate, type ModelExport, ModelExportStatus, ModelFormat, type ModelInstanceDef, type ModelMetrics, ModelPrecisionType, type ModelSample, ModelStatus, 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, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, EyePop as default };
|
package/dist/eyepop.index.d.ts
CHANGED
|
@@ -573,6 +573,24 @@ declare enum ModelStatus {
|
|
|
573
573
|
interface ModelMetrics {
|
|
574
574
|
cpr?: number[][3];
|
|
575
575
|
}
|
|
576
|
+
declare enum ModelExportStatus {
|
|
577
|
+
in_progress = "in_progress",
|
|
578
|
+
finished = "finished",
|
|
579
|
+
error = "error"
|
|
580
|
+
}
|
|
581
|
+
declare enum ExportedBy {
|
|
582
|
+
eyepop = "eyepop",
|
|
583
|
+
qc_ai_hub = "qc_ai_hub"
|
|
584
|
+
}
|
|
585
|
+
interface QcAiHubExportParams {
|
|
586
|
+
device_name: string;
|
|
587
|
+
}
|
|
588
|
+
interface ModelExport {
|
|
589
|
+
format: ModelFormat;
|
|
590
|
+
exported_by: ExportedBy;
|
|
591
|
+
export_params?: QcAiHubExportParams[];
|
|
592
|
+
status: ModelExportStatus;
|
|
593
|
+
}
|
|
576
594
|
interface Model {
|
|
577
595
|
uuid: string;
|
|
578
596
|
name: string;
|
|
@@ -587,6 +605,7 @@ interface Model {
|
|
|
587
605
|
updated_at: Date;
|
|
588
606
|
dataset_uuid: string;
|
|
589
607
|
dataset_version: number;
|
|
608
|
+
exports?: ModelExport[];
|
|
590
609
|
}
|
|
591
610
|
interface ModelCreate {
|
|
592
611
|
name: string;
|
|
@@ -689,6 +708,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
689
708
|
deleteModel(model_uuid: string): Promise<void>;
|
|
690
709
|
trainModel(model_uuid: string): Promise<Model>;
|
|
691
710
|
publishModel(model_uuid: string): Promise<Model>;
|
|
711
|
+
exportModel(model_uuid: string, export_by: ExportedBy, params: QcAiHubExportParams[]): Promise<void>;
|
|
692
712
|
addAccountEventHandler(eventHandler: OnChangeEvent): void;
|
|
693
713
|
removeAccountEventHandler(eventHandler: OnChangeEvent): void;
|
|
694
714
|
addDatasetEventHandler(dataset_uuid: string, eventHandler: OnChangeEvent): void;
|
|
@@ -825,4 +845,4 @@ declare namespace EyePop {
|
|
|
825
845
|
function dataEndpoint(opts?: DataOptions): DataEndpoint;
|
|
826
846
|
}
|
|
827
847
|
|
|
828
|
-
export { AbstractJob, type Annotation, AnnotationType, type Asset, type AssetImport, AssetStatus, type Auth0Options, type Authentication, type AutoAnnotateParams, 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 DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, Endpoint, EndpointState, EyePop, type FileSource, type ForwardComponent, ForwardOperatorType, type InferenceComponent, InferenceType, type IngressEvent, type LiveMedia, type LiveSource, LoadFromJob, LoadLiveIngressJob, type Mask, type Model, type ModelCreate, ModelFormat, type ModelInstanceDef, type ModelMetrics, ModelPrecisionType, type ModelSample, ModelStatus, 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 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, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, EyePop as default };
|
|
848
|
+
export { AbstractJob, type Annotation, AnnotationType, type Asset, type AssetImport, AssetStatus, type Auth0Options, type Authentication, type AutoAnnotateParams, 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 DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, Endpoint, EndpointState, ExportedBy, EyePop, type FileSource, type ForwardComponent, ForwardOperatorType, type InferenceComponent, InferenceType, type IngressEvent, type LiveMedia, type LiveSource, LoadFromJob, LoadLiveIngressJob, type Mask, type Model, type ModelCreate, type ModelExport, ModelExportStatus, ModelFormat, type ModelInstanceDef, type ModelMetrics, ModelPrecisionType, type ModelSample, ModelStatus, 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, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, EyePop as default };
|
package/dist/eyepop.index.js
CHANGED
|
@@ -8664,11 +8664,13 @@ __export(eyepop_exports, {
|
|
|
8664
8664
|
DataEndpoint: () => DataEndpoint,
|
|
8665
8665
|
Endpoint: () => Endpoint,
|
|
8666
8666
|
EndpointState: () => EndpointState,
|
|
8667
|
+
ExportedBy: () => ExportedBy,
|
|
8667
8668
|
EyePop: () => EyePop,
|
|
8668
8669
|
ForwardOperatorType: () => ForwardOperatorType,
|
|
8669
8670
|
InferenceType: () => InferenceType,
|
|
8670
8671
|
LoadFromJob: () => LoadFromJob,
|
|
8671
8672
|
LoadLiveIngressJob: () => LoadLiveIngressJob,
|
|
8673
|
+
ModelExportStatus: () => ModelExportStatus,
|
|
8672
8674
|
ModelFormat: () => ModelFormat,
|
|
8673
8675
|
ModelPrecisionType: () => ModelPrecisionType,
|
|
8674
8676
|
ModelStatus: () => ModelStatus,
|
|
@@ -10888,6 +10890,17 @@ var ModelStatus = /* @__PURE__ */ ((ModelStatus2) => {
|
|
|
10888
10890
|
ModelStatus2["published"] = "published";
|
|
10889
10891
|
return ModelStatus2;
|
|
10890
10892
|
})(ModelStatus || {});
|
|
10893
|
+
var ModelExportStatus = /* @__PURE__ */ ((ModelExportStatus2) => {
|
|
10894
|
+
ModelExportStatus2["in_progress"] = "in_progress";
|
|
10895
|
+
ModelExportStatus2["finished"] = "finished";
|
|
10896
|
+
ModelExportStatus2["error"] = "error";
|
|
10897
|
+
return ModelExportStatus2;
|
|
10898
|
+
})(ModelExportStatus || {});
|
|
10899
|
+
var ExportedBy = /* @__PURE__ */ ((ExportedBy2) => {
|
|
10900
|
+
ExportedBy2["eyepop"] = "eyepop";
|
|
10901
|
+
ExportedBy2["qc_ai_hub"] = "qc_ai_hub";
|
|
10902
|
+
return ExportedBy2;
|
|
10903
|
+
})(ExportedBy || {});
|
|
10891
10904
|
var ModelTrainingStage = /* @__PURE__ */ ((ModelTrainingStage2) => {
|
|
10892
10905
|
ModelTrainingStage2["waiting"] = "waiting";
|
|
10893
10906
|
ModelTrainingStage2["scheduling"] = "scheduling";
|
|
@@ -11320,6 +11333,15 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11320
11333
|
method: "POST"
|
|
11321
11334
|
});
|
|
11322
11335
|
}
|
|
11336
|
+
async exportModel(model_uuid, export_by, params) {
|
|
11337
|
+
if (export_by != "qc_ai_hub" /* qc_ai_hub */) {
|
|
11338
|
+
return Promise.reject(`Unexpected export_by ${export_by}, must be 'qc_ai_hub'`);
|
|
11339
|
+
}
|
|
11340
|
+
await this.request(`/models/${model_uuid}/exports/qc_ai_hub`, {
|
|
11341
|
+
method: "POST",
|
|
11342
|
+
body: JSON.stringify(params)
|
|
11343
|
+
});
|
|
11344
|
+
}
|
|
11323
11345
|
addAccountEventHandler(eventHandler) {
|
|
11324
11346
|
this._account_event_handlers.push(eventHandler);
|
|
11325
11347
|
}
|
|
@@ -11561,11 +11583,13 @@ var eyepop_default = EyePop;
|
|
|
11561
11583
|
DataEndpoint,
|
|
11562
11584
|
Endpoint,
|
|
11563
11585
|
EndpointState,
|
|
11586
|
+
ExportedBy,
|
|
11564
11587
|
EyePop,
|
|
11565
11588
|
ForwardOperatorType,
|
|
11566
11589
|
InferenceType,
|
|
11567
11590
|
LoadFromJob,
|
|
11568
11591
|
LoadLiveIngressJob,
|
|
11592
|
+
ModelExportStatus,
|
|
11569
11593
|
ModelFormat,
|
|
11570
11594
|
ModelPrecisionType,
|
|
11571
11595
|
ModelStatus,
|